Questions tagged [autoscaling]

282 questions
0
votes
2 answers

AWS security group for newly launched instances

In AWS, our auto scaling group is launching new instances in different availability zones (for high availability) and these web instances of course require access to database (RDS) service on port 3306. Now, what IP addresses should I allow in my…
0
votes
1 answer

How to use PHP memcached for session storage with Auto Scaling?

I already have memcached installed in my servers and I've modified the default php.ini to: session.save_handler = memcached session.save_path = "127.0.0.1:11211" I'm using Amazon EC2 instances (Ubuntu 16.04 LTS) with Auto Scaling and Load Balancer,…
0
votes
1 answer

How to automatically run Node.js server on Apache with Shell Script

I usually access my application via Putty and do exactly what I show below to let my Node script running in the background: screen cd /var/www/node node app.js I'm using Ubuntu and I have already created an AMI of my instance and now I intend to…
Igor
  • 135
  • 7
0
votes
1 answer

AWS Autoscaling Group: Group termination notice

In an AWS autoscaling group, I can configure notifications for instance launch and terminate actions and error variations of the 2, but is there any way to configure a notification when a group is created / destroyed?
Brett
  • 221
  • 3
  • 11
0
votes
1 answer

How to add an existing VM instance to an instance group to enable autoscaling?

we have two VM instances running in Google Compute Engine. The first one is running NodeJs instances that connect to a mongodb server installed on the second VM instance. Those have CPU higher running most of the time around 70%. I would like to add…
0
votes
1 answer

Autoscaling with Xen or XenServer

I need to learn how to implement autoscaling with a Xen platform or Citrix XenServer, just like it works on AWS. I made a search on Google, but I could not find something about that. If my question is too broad and there's no a simple answer like…
JonDoe297
  • 563
  • 2
  • 8
  • 21
0
votes
1 answer

AWS EC2 Ubuntu startup scripts

I tried to lookup for answer or similar behavior at various site and I dont see anyone facing this issue. That indicates that either I am not doing something correctly or I havent looked much. If you believe this is duplicate question then please…
0
votes
1 answer

EC2 custom AMI in autoscaling group not running user data script

Similar to this question, My user data is: #!/bin/bash echo 'test' > /home/ubuntu/user-script.txt Using a standard Ubuntu AMI, this works fine. I have a custom AMI that I have created by standing up a standard Ubuntu AMI, running an Ansible…
gavD_UK
  • 111
  • 4
0
votes
1 answer

AWS autoscaling triggers

I am going to move a very big wordpress website (in terms of DB) to AWS. And I would like to understand the autoscaling triggers in order to find the best balance between costs and performance. Are there best practices about how to configure…
0
votes
1 answer

EC2: Copied launch configuration causes instances not to start

I have an auto-scaling group which was working fine. I made a copy of the launch configuration and changed an additional attached volume (not the root volume which is in the AMI) from Magnetic/standard to SSD/gp2. I changed the auto-scaling group…
Jayen
  • 1,857
  • 4
  • 16
  • 28
0
votes
0 answers

Entire EBS not being used with AWS EC2 instance?

I found out the entire root partition isn't used with the ami I created, ami 1: /dev/mapper/vg_basecentos6-lv_root 6.5G 2.0G 4.2G 32% / ami 2: /dev/xvde 20G 723M 18G 4% / I've created the ec2 instance t2.micro with 20GB of storage How…
ujjain
  • 3,983
  • 16
  • 53
  • 91
0
votes
1 answer

How do you include your own software in an Amazon AWS EC2 HVM AMI (eieio)?

When creating an Amazon AWS EC2 HVM AMI (TLA!!!!), how do you include your own software, when on the same partition as the root volume, but not necessarily in /usr? (in this way more efficiently use disk space) Turns out this is the default…
0
votes
1 answer

AWS - NGINX+ - Autoscale without having to update upstream configs

I am ready to implement an autoscale server farm for 'webapps' to handle traffic spikes and had a question. The plan is to create an ELB which will forward traffic across multiple availability zones. Right now I am specifying servers individually in…
Mike Purcell
  • 1,708
  • 7
  • 32
  • 54
0
votes
1 answer

AWS autoscaling cooldown

I have 1 instance. If latency more then 1 second for 3 minutes, it will add up another instance. And here the problems arises: after 50 min(because of scaling cooldown) this 2nd instance terminates. And, if load is still high, latency jumps back to…
Eugene
  • 119
  • 5
0
votes
1 answer

Can I define the duration of a spot request for instances launching in an AWS Autoscaling group?

When I define a spot request for an EC2 instance, can I define the duration that I will lease that instance for (e.g. between 1 to 6 hours)? I can't find a way to do it in an autoscaling group.
Ofer Velich
  • 307
  • 1
  • 2
  • 6