autoscaling

How do I force a CloudFormation stack to update when the parameter is updated?

泄露秘密 提交于 2019-12-18 16:48:35
问题 I am running a AWS CloudFormation stack that takes in some parameters and launches EC2 instances along with other AWS resources. The parameters are fed into the user data of the EC2 instance and based on that changes are made dynamically to the web application residing on the EC2 instance. UserData: Fn::Base64: Fn::Join: - "" - - "#!/bin/bash \n" - "sh website-conf/website_mysql_config.sh " - " -c \"" - Ref: "CompanyName" As shown in the example above, CompanyName is one of the many

Windows Azure and dynamic elasticity

安稳与你 提交于 2019-12-18 04:55:16
问题 Is there a way do do dynamic elasticity in Windows Azure? If my workers begin to get overloaded, or queues start to get too full, or too many workers have no work to do, is there a way to dynamically add or remove workers through code or is that just done manually (requires human intervention) right now? Does anyone know of any plans to add that if its not currently available? 回答1: There's a Service Management API, and you can use that to scale your application (from code running in Windows

Azure Autoscaling works locally but not when deployed

强颜欢笑 提交于 2019-12-17 20:01:57
问题 Problem I am trying to deploy a worker role which will autoscale a few target sites. I am able to run the autoscaler locally and it works (I installed the certificates on my machine). However, it won't autoscale once I deploy it to Azure as a cloud app. (However, the worker role is running because I can see my non-autoscaling processes working in the same worker role.) What I tried I have followed the Deploying the Autoscaling Application Block instructions. Added the "CN=Windows Azure Tools"

Kubernetes pod cpu usage calculation method for HPA

佐手、 提交于 2019-12-14 01:32:51
问题 Can someone explain how the cpu usage is calculated inside pods with multiple containers for use with an Horizontal Pod Autoscaler? Is it the mean value and how is this calculated? For example: If we have 2 containers: Container1 requests 0.5 cpu and uses 0 cpu Container2 requests 1 cpu and uses 2 cpu If we calculate both seperatly and take the mean: (0% + 200%)/2 = 100% usage? If we take the sums and take the mean: 2/1.5 = 133% usage? Or is my logic way off? 回答1: As of kubernetes 1.9 HPA

Kubernetes autoscaler - NotTriggerScaleUp' pod didn't trigger scale-up (it wouldn't fit if a new node is added)

杀马特。学长 韩版系。学妹 提交于 2019-12-13 04:35:15
问题 I'd like to run a 'job' per node, one pod on a node at a time. I've scheduled a bunch of jobs I have a whole bunch of pending pods now I'd like these pending pods to now trigger a node scaling up event (which does NOT happen) Very much like this issue (made by myself): Kubernetes reports "pod didn't trigger scale-up (it wouldn't fit if a new node is added)" even though it would? However in this case it should indeed fit on a new node. How can I diagnose why Kubernetes has determined that a

How to set auto-scaling for kubernetes by using Azure Pipelines and WebApp for Container?

只谈情不闲聊 提交于 2019-12-13 03:53:19
问题 As WebApp for Container can set Single, Multiple and Kubernetes Docker. However, I could only set Single Docker by using Deploying to WebApp for Container in Task of Azure Pipelines' Release. Since I can set auto-scaling rule with ServiceBus message count, how can I set to use Kubernetes in Deploying to WebApp for Container in Azure Pipelines' Release? Reference Question before 来源: https://stackoverflow.com/questions/54394414/how-to-set-auto-scaling-for-kubernetes-by-using-azure-pipelines-and

Method to provide incremental name to ec2 instances created using auto scaling group in aws

瘦欲@ 提交于 2019-12-13 03:43:51
问题 I am configuring an auto scaling group in aws to create ec2 servers. I want to add incremental value to the name tag when a new instance is created by the auto scaling group (Example server-01, server-02 etc.) Is there any method to add name tag to resource created using auto scaling group as mentioned above. 回答1: You could do this with a Lambda, responding to a life-cycle event. The Lambda would call DescribeAutoScalingGroups to find the instance(s) belonging to the ASG, and update those

add node to existing aerospike cluster using autoscale

早过忘川 提交于 2019-12-12 20:22:58
问题 can i add aerospike cluster under aws autoscale? Like . my initial autoscale group size will 3, if more traffic comes in and if cpu utilization is greater then 80% then it will add another instance into the cluster. do you think it is possible? and does it has any disadvantage or will create any problem in cluster? 回答1: There's an Amazon CloudFormation script at aerospike/aws-cloudformation that gives an example of how to launch such a cluster. However, the point of autoscale is to grow

How to deploy a Java webapp on Amazon EC2 so that you can efficiently use autoscaling?

时间秒杀一切 提交于 2019-12-12 18:16:35
问题 I'm trying to get my head around a simple WebApp Java deployment case on Amazon Web Services. I have manually deployed on a single EC2 instance, manually installing Java, Tomcat, MySql on a vanilla RedHat image -- as if I owned the hardware. Now I'm trying to set up an auto scalable, easy-to-manage, production proof environment: 1 -> n Tomcat instances with a standard Java WebApp deployed, 1 MYSQL database with 1 schema and a few tables (not much), the webapp connects to it. I understand that

Determine if instance is a part of some AutoScaling Group in AWS

情到浓时终转凉″ 提交于 2019-12-12 17:17:03
问题 Is it possible to determine from instance if it's a member of AutoScaling Group in AWS? Thanks in advance! 回答1: You can run this command on an EC2 Linux instance to check if the current instance is in an AutoScaling group. You will need to check if the returned value is empty to determine if it is in an AutoScaling group or not. aws autoscaling describe-auto-scaling-instances --instance-ids `curl --silent http://169.254.169.254/latest/meta-data/instance-id 2>&1` Note, you will have to have