autoscaling

Amazon EC2 AutoScaling CPUUtilization Alarm- INSUFFICIENT DATA

拜拜、爱过 提交于 2019-12-06 20:58:06
问题 So I've been using Boto in Python to try and configure autoscaling based on CPUUtilization, more or less exactly as specified in this example: http://boto.readthedocs.org/en/latest/autoscale_tut.html However both alarms in CloudWatch just report: State Details: State changed to 'INSUFFICIENT_DATA' at 2012/11/12 16:30 UTC. Reason: Unchecked: Initial alarm creation Auto scaling is working fine but the alarms aren't picking up any CPUUtilization data at all. Any ideas for things I can try? Edit:

How to vertically scale google cloud instance without stopping running app

▼魔方 西西 提交于 2019-12-06 13:35:55
问题 I have a Node.js app that provides a service which cannot be interrupted. However the load to the app varies overtime and to save cost I would like the vm instance machine type to autoscale in function of the load (ie when over 80% CPU utilisation, scale up from 1 vCPU(3.75 GB memory, n1-standard-1) to 2vCPU(7.5 GB memory, n1-standard-2)) Is this possible? PS: I have looked at using the container engine and kubernetes but due to how the app operates, the app cannot be replicated to multiple

Y-axis autoscaling with x-range sliders in plotly

拟墨画扇 提交于 2019-12-06 02:13:33
问题 Afaik, y-axis cant be made to auto scale when using x-range sliders. Y range is chosen with respect to the y values of the whole x range and does not change after zooming-in. This is especially annoying with candlestick charts in volatile periods. When you zoom-in using x-range slider, you essentially get flat candlesticks as their fluctuations only cover a very small part of the initial range. After doing some research it seems that some progress has been made here: https://github.com/plotly

System not scaling to support concurrent users

被刻印的时光 ゝ 提交于 2019-12-06 01:14:44
I'm having a problem with scaling the number of concurrent users on my system. From my tests, scaling the number of concurrent users seems to directly increase the duration of a request in a linear relationship. I am running a Java Web Application deployed on a (virtual) Ubuntu Quad Core machine with 16Gb RAM. I am using Apache Tomcat 7 and a MySQl 5.5 Database. Tomcat and MySQL are using the default settings - I have not configured them in any way. I am using Apache Benchmark to run a number of tests which ultimately create a SQL query to return one row of data, where the response size is

EC2 spot instance termination notice when downscaling

↘锁芯ラ 提交于 2019-12-05 21:53:32
I need to run a clean up script every time my spot instance is scheduled for termination. I have two reasons for termination: A price for spot instance exceeds my bid Downscaling caused by scaling policies of autoscaling group (based on average cluster cpu usage in 5 mins, random instance is terminated). I did like the simple script below I found on this blog. It covers first case and gives me 2 minutes to clean up before shutdown. Is there an easy way to get such 2-minute notification for second case? May be the warning will be available via same url? #!/bin/bash while true do if [ -z $(curl

Is there any tool for GKE nodes autoscaling base on total pods requested in kubernetes?

我只是一个虾纸丫 提交于 2019-12-05 12:33:26
When I resize a replication controller using kubectl, if the cluster does not have enough resource, there will have one or more pods always in pending. Is there has any tool will auto resize GKE cluster when the resource is running out? I had a similar requirement (for the Go build system): wanted to know when scheduled vs. available CPU or memory was > 1, and scale out nodes when that was true (or, more accurately, when it was ~.8). There's not a built-in metric, but as you suggest you can do it with a custom metric. This was all done in Go, but it will give you the basic idea: Create the

Some requests fails during autoscaling in kubernetes

ⅰ亾dé卋堺 提交于 2019-12-05 11:31:44
I set up a k8s cluster on microk8s and I ported my application to it. I also added a horizontal auto-scaler which adds pods based on the cpu load. The auto-scaler works fine and it adds pods when there is load beyond the target and when I remove the load after some time it will kill the pods. The problem is I noticed at the exact same moments that the auto-scaler is creating new pods some of the requests fail: POST Response Code : 200 POST Response Code : 200 POST Response Code : 200 POST Response Code : 200 POST Response Code : 200 POST Response Code : 502 java.io.IOException: Server returned

List out auto scaling group names with a specific application tag using boto3

北城以北 提交于 2019-12-05 06:35:17
问题 I was trying to fetch auto scaling groups with Application tag value as 'CCC'. The list is as below, gweb prd-dcc-eap-w2 gweb prd-dcc-emc gweb prd-dcc-ems CCC dev-ccc-wer CCC dev-ccc-gbg CCC dev-ccc-wer The script I coded below gives output which includes one ASG without CCC tag. #!/usr/bin/python import boto3 client = boto3.client('autoscaling',region_name='us-west-2') response = client.describe_auto_scaling_groups() ccc_asg = [] all_asg = response['AutoScalingGroups'] for i in range(len(all

Amazon EC2 AutoScaling CPUUtilization Alarm- INSUFFICIENT DATA

本小妞迷上赌 提交于 2019-12-05 01:06:47
So I've been using Boto in Python to try and configure autoscaling based on CPUUtilization, more or less exactly as specified in this example: http://boto.readthedocs.org/en/latest/autoscale_tut.html However both alarms in CloudWatch just report: State Details: State changed to 'INSUFFICIENT_DATA' at 2012/11/12 16:30 UTC. Reason: Unchecked: Initial alarm creation Auto scaling is working fine but the alarms aren't picking up any CPUUtilization data at all. Any ideas for things I can try? Edit: The instance itself reports CPU utilisation data, just not when I try and create an alarm in

How to vertically scale google cloud instance without stopping running app

假装没事ソ 提交于 2019-12-04 19:33:54
I have a Node.js app that provides a service which cannot be interrupted. However the load to the app varies overtime and to save cost I would like the vm instance machine type to autoscale in function of the load (ie when over 80% CPU utilisation, scale up from 1 vCPU(3.75 GB memory, n1-standard-1) to 2vCPU(7.5 GB memory, n1-standard-2)) Is this possible? PS: I have looked at using the container engine and kubernetes but due to how the app operates, the app cannot be replicated to multiple pods and continue working You can only change the machine type of a stopped instance and an instance is