Questions tagged [autoscaling]

282 questions
1
vote
0 answers

How can I make sure that AWS does not kill tasks before auto scaling kicks in?

I work on an AWS Fargate service which has a health check configured as well as an autoscaling policy set. The application needs about 30 - 45 seconds to start. The application does receive traffic spikes now and then. The autoscaling policy will…
sbrattla
  • 1,578
  • 4
  • 28
  • 52
1
vote
1 answer

Meaning of: supplementalGroups: [ 65534 ]?

I am looking at this yaml apiVersion: apps/v1 kind: Deployment metadata: name: kube-dns-autoscaler namespace: kube-system labels: k8s-app: kube-dns-autoscaler kubernetes.io/cluster-service: "true" spec: selector: matchLabels: …
guettli
  • 3,591
  • 17
  • 72
  • 123
1
vote
0 answers

Scaling based on number of processes running on ec2 instance

I have a use case where multiple python scripts will run in parallel on ec2. They read an SQS queue and perform operations such as download from S3, parse files, split, process, and update database. The scripts run every 5 min. If SQS is empty…
Rohini
  • 55
  • 4
1
vote
1 answer

Terraform ECS Capacity Provider not resulting in new ECS instances on demand

From what I read here ECS capacity providers should (generally) prevent tasks immediately failing on resource limits by putting them in a "Provisioning" state and spinning up a new EC2 instance This means, for example, if you call the RunTask API…
Philip Couling
  • 1,682
  • 1
  • 19
  • 37
1
vote
0 answers

Autoscaling - lifecylehook implementation

I'm trying to implement my first ASG with a lifecycle hook and I am having this issue: LifecycleHandlerFunction: Encountered unsupported property Role The following resource(s) failed to create: [LifecycleHandlerFunction]. Rollback requested by…
1
vote
0 answers

Why is Code Deploy not running in new instances generated from an Auto Scale Group?

I've setup a Code Pipeline where code is being successfully pulled from Github after every commit and then a Build phase runs specs and then a Deploy phase creates a Deployment pointing to amy Application's Deployment Group and the code is…
1
vote
1 answer

What is the best way to attach instance to auto scaling?

This is my first post so hope I will get the answer. I want to create auto scaling on my existing EC2 instance, so I found this approach so hope someone will tell me is it good ( or suggest me how to make it ) So I open my EC2 dashbord Click on my…
1
vote
2 answers

powershell user data script run on restart of the Windows instance

We have windows servers that do application initialization which takes almost 3-4 hours for servers to be online. So to avoid downtime we use autoscaling group lifecycle hooks. Now we want to shut down all the servers at night and start them in the…
0
votes
1 answer

CloudWatch Alarm doesn't show Auto Scaling Groups

I'm trying to trigger an EC2 auto-scaling based on a CloudWatch alarm. I've created the auto scaling group in EC2 - same region and account - but when I try selecting it from the CloudWatch console, nothing shows up. How do I get CloudWatch to…
0
votes
1 answer

Azure VM Scale Set - Scale In during task

This seems like a basic question but I haven't been able to find an answer googling around. How does scale sets know that a particular VM has finished what it's doing and is able to be de-provisioned? From the scale sets FAQ the VMs with the…
timyhac
  • 111
  • 1
0
votes
1 answer

K8S HPA custom Stackdriver - 503 The service is currently unavailable - avoids scaling

We have an horizontal pod auto-scaler (HPA) installed on gke cluster, most of the time the auto-scaler works perfectly fine. but from time to time (mostly on our customer rush hours) the auto scaler is getting error code 503 from stack driver. here…
0
votes
1 answer

Evicted pods not getting removed from the cluster when autoscaling is enabled

I have a cluster created in GCP with autoscaling enabled on the cluster. In my case, few pods are getting evicted from node A due to Memory Pressure and are running on new node B. But the evicted pods are not getting removed. Its still visible when…
0
votes
0 answers

AWS ECS Cluster Autoscaling

I am trying to setup a scaling policy in ECS Cluster, so that EC2 instance that make up ECS cluster and task runnning in ECS Service could scale up and down based on the scalling policy i specified. I had created 2 cloud watch alarm for that, which…
0
votes
1 answer

How to create kubernetes horizontal pod autoscaler with specific name?

I tried to create a kubernetes horizontal pod autoscaler with specific name (ttt), but it didn't work as expected: $ kubectl autoscale deployment hello-web --cpu-percent=50 --min=2 --max=10 --name=ttt horizontalpodautoscaler.autoscaling/hello-web…
Everton
  • 113
  • 6
0
votes
1 answer

AWS autoscaling stack of multiple servers

I have a stack of 2 AWS instances running 3 servers in a chain: (Server 1) Apache2 and PHP-FPM (Server 2) Varnish + Nginx for SSL termination These servers are separate as I expect the Apache Server to be CPU bound, the other server to be memory…
jdog
  • 121
  • 7
  • 29