autoscaling

How do I execute UserData content in a Windows EC2 instance

跟風遠走 提交于 2019-12-12 16:56:37
问题 I'm having a lot of trouble trying to get a Cloud Formation template running correctly with auto scaling. I have the following resource: "LaunchConfig" : { "Type" : "AWS::AutoScaling::LaunchConfiguration", "Properties" : { "KeyName" : { "Fn::FindInMap" : [ "EnvironmentToKeyName", { "Ref" : "Environment" }, "KeyName" ] }, "ImageId" : { "Fn::FindInMap" : [ "AWSRegionToAMI", { "Ref" : "AWS::Region" }, "AMI" ] }, "SecurityGroups" : [ "neat_spi" ], "InstanceType" : { "Ref" : "InstanceType" },

AWS EC2 Autoscaling: Defining a master instance, which is never terminated

て烟熏妆下的殇ゞ 提交于 2019-12-12 15:27:34
问题 I am using EC2 with autoscaling and loadbalancing to host my webapp. To guarantee consistency between the EC2 instances, I only want to allow access to the administration interface from one instance, so all write operations are executed on this instance. The other instaces then periodically download copies of the changed files. So here's my question: Can I have a designated "Master" Instance, in my autoscaling group, which is slightly different (runs script for uploading files which were

Google Container Engine - How to auto-scale an instance group based on HTTP load?

半世苍凉 提交于 2019-12-12 04:59:08
问题 In Google Container Engine, when using an L7 ingress, what’s the correct way to auto-scale an instance group based on HTTP load? When I try to enable auto-scaling for my instance group, I get the warning that I must add the instance group the L7 ingress’ backend service. However, the backend service is already using a k8-ig group, which I cannot enable auto-scaling for. 回答1: Autoscaling based on HTTP load is not currently supported through the Ingress. You can of course grow the size of you

Auto-scaling label fontsize in Xamarin

我是研究僧i 提交于 2019-12-11 15:49:13
问题 <Label x:Name="mainLabel" Grid.Row="0" Grid.Column="0" FontSize="50" Grid.ColumnSpan="3" Grid.RowSpan="2" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" /> I am making a phone dialing interface and i have a label that outputs the numbers that are pressed. Question : How can I make the font size of the label decreases and increases depending on the numbers typed so that it will fit on the label? I tried googling all day but all the samples are outdated. I am using the

how to auto scale AWS target group?

夙愿已清 提交于 2019-12-11 04:16:19
问题 In AWS console how to insert ec2 instance from auto scaling group into a target group? I need this to auto scale my application load balancer. 回答1: use aws-cli attach-load-balancer-target-groups aws auto scaling group ui will update after that. 来源: https://stackoverflow.com/questions/38948913/how-to-auto-scale-aws-target-group

Assigning static IPs to auto scaled EC2 instance

半城伤御伤魂 提交于 2019-12-11 02:15:35
问题 We have a 3rd party integration which needs the EC2 instance IP to be whitelisted. The 3rd party whitelists the IP on their server and then only the EC2 instance can communicate with them. In the case of single instance this works. However when auto scaling kicks in, we would end up in more than 1 instance. These new instances automatically get new IPs for every autoscale action. Is it possible for us to ask AWS to assign IPs from a say a set of 4 predefined Elastic IPs? ( Assumption is that

Autoscale based on SQS queue size

白昼怎懂夜的黑 提交于 2019-12-11 01:32:15
问题 I have put together these commands to autoscale EC2 instances based on SQS queue size. I have run all commands and my queue is at 10 messages and a single instance hasn't been launched. I am trying to figure out, what SQS queue my cloudwatch alarms are listening to? Also any help to indentify the issus is appreciated! ### Create Autoscaling Policy ### aws autoscaling create-launch-configuration --launch-configuration-name my-lc --image-id ami-551c6d30 --instance-type m1.small aws autoscaling

Memory usage metric identifier Google Compute Engine

白昼怎懂夜的黑 提交于 2019-12-10 21:12:29
问题 I have installed the monitoring agent in my instance group disk. I need to autoscale instances based on memory usage, however when I am going to configure the target metric in GCE web console I miss the memory usage metric identifier. Which is the missing identifier or how can I autoscale my group based on memory usage? 来源: https://stackoverflow.com/questions/32896048/memory-usage-metric-identifier-google-compute-engine

Bluemix Load Balancer Algorithm

吃可爱长大的小学妹 提交于 2019-12-10 14:29:56
问题 What algorithm is used to balance HTTP load among several instances running on Bluemix? It seems I can use auto-scaling service to scale horizontally, and want to know what algorithm is used when balancing the load. 回答1: Cloud Foundry uses round-robin load balancing to distribute requests across the running instances of your app. 来源: https://stackoverflow.com/questions/30651427/bluemix-load-balancer-algorithm

Is there any way to send a http request to all instances in a AWS ELB? [closed]

折月煮酒 提交于 2019-12-10 10:55:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I will make an array of Varnish servers using Amazon Auto Scaling. With that, I'll have to send a purge request to all servers that are as healthy on the load balancer. It is possible? What is the easiest way to do? Should I use API? 回答1: That's fairly straightforward using awscli / API. Get healthy instance IDs