autoscaling

How to retrieve the cloud foundry oauth token from a devops deploy stage for setting up auto scaling?

孤人 提交于 2020-01-06 06:08:51
问题 I'm trying to get the cloud foundry oauth-token from a devops pipeline deploy stage: ... cf push $CF_APP ... accessToken=$(cf oauth-token | grep bearer | sed -e s/bearer/Bearer/g) echo accessToken=$accessToken ... # use token in Auto Scaling API call ... curl $createPolicyUrl -X 'PUT' -H 'Content-Type:application/json' \ -H 'Accept:application/json' \ -H "Authorization:$accessToken" \ --data-binary @${policyJson} \ -s -o response.txt -w '%{http_code}\n' The output from the echo command is:

Boto: How do I use the 'tag' parameter of the AutoScalingGroup method?

自古美人都是妖i 提交于 2020-01-05 07:59:46
问题 The following code works. In other words, there is no error returned and a group is created. However, the instances launched by this group will not have a Name tag. AS_GROUP = AutoScalingGroup( group_name=AS_GROUP_NAME, availability_zones=ZONE_LIST, launch_config=LAUNCH_CONFIG_NAME, min_size=GROUP_MIN_SIZE, max_size=GROUP_MAX_SIZE, default_cooldown=DEFAULT_COOLDOWN, desired_capacity=DESIRED_CAPACITY, tag=[Tag( key='Name', value='ASG Minion', propagate_at_launch=True, resource_id=AS_GROUP_NAME

Azure WASABi SecurityNegotiationException

微笑、不失礼 提交于 2020-01-05 07:31:10
问题 I'm running into this exception using Azure auto-scaling WASABi. Could not retrieve the instance count for hosted service with DNS prefix ' DNS Prefix '. Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClientException: The service configuration could not be retrieved from Windows Azure for hosted service with DNS prefix ' DNS Prefix ' in subscription id ' Subscription ID ' and deployment slot 'Staging'. System.ServiceModel.Security

Azure Auto Scaling works but load doesn´t get distributed

戏子无情 提交于 2020-01-05 04:17:05
问题 i have a problem with auto scaling in azure. The scaling process works fine but when a new instance is added it becomes no traffic. My scenario: I have 2 running instances whit a WCF webservice on it. Now i shot from 2 other servers(not azure) data to the webservice. After a while the auto scaling kicks in and a new instance is added. The 2 servers are producing still load on the first 2 azure servers. However the new one doesn´t get any. I thought azure is using round robin for load

Kubernetes pod autoscaling out of sync with Instance Group autoscaling

泪湿孤枕 提交于 2020-01-04 09:27:22
问题 I have a simple wordpress site defined by the ReplicationController and Service below. Once the app is deployed and running happily, I enabled autoscaling on the instance group created by Kubernetes by going to the GCE console and enabling autoscaling with the same settings (max 5, cpu 10). Autoscaling the instances and the pods seem to work decent enough except that they keep going out of sync with each other. The RC autoscaling removes the pods from the CE instances but nothing happens with

Kubernetes pod autoscaling out of sync with Instance Group autoscaling

本小妞迷上赌 提交于 2020-01-04 09:27:21
问题 I have a simple wordpress site defined by the ReplicationController and Service below. Once the app is deployed and running happily, I enabled autoscaling on the instance group created by Kubernetes by going to the GCE console and enabling autoscaling with the same settings (max 5, cpu 10). Autoscaling the instances and the pods seem to work decent enough except that they keep going out of sync with each other. The RC autoscaling removes the pods from the CE instances but nothing happens with

Updating VHD of Azure VM ScaleSet

让人想犯罪 __ 提交于 2020-01-04 05:26:10
问题 I have created a VMSS on Azure using the vhd of my Azure VM. How can I change the source vhd of VMSS to a new vhd ? Get the following error: 回答1: We can use Update-AzureRmVmss and Update-AzureRmVmssInstance to upgrade VMSS instance. If we want to use custom image to upgrades Azure VMSS instances, we should make sure this VMSS create by custom image. If we create VMSS from Azure marketplace, we can’t use custom image to upgrades Azure VMSS instances. Here is my test: 1.I create VMSS by custom

AWS Dynamo not auto-scaling back down

做~自己de王妃 提交于 2020-01-03 08:16:27
问题 Here are the parameters I have set on the table: And here is what I see for the capacity over time. Why is it remaining at 25 write units? Shouldn't it go down to 5 write units (the minimum set)? 回答1: That's because of this note from AWS DynamoDB AutoScaling documentation: Currently, Auto Scaling does not scale down your provisioned capacity if your table’s consumed capacity becomes zero. As a workaround, you can send requests to the table until Auto Scaling scales down to the minimum

AWS CloudWatch Alarm to add capacity to EC2 autoscaling group has been in alarm forever

家住魔仙堡 提交于 2020-01-03 05:44:20
问题 I set a CloudWatch Alarm to add 1 capacity unit to EC2 autoscaling group when memory reservation is > 70%. The Alarm was triggered at the right moment, but it has since been in alarm for 16 hours+ with no change at all in the EC2 autoscaling group. What could possibly be going wrong? Here's my ECS CloudFormation template: ECSCluster: Type: AWS::ECS::Cluster Properties: ClusterName: !Ref EnvironmentName ECSAutoScalingGroup: DependsOn: ECSCluster Type: AWS::AutoScaling::AutoScalingGroup

VMSS with service fabric cluster autoscale

跟風遠走 提交于 2019-12-31 03:36:10
问题 I want to scale out or scale in the service fabric application. For this I have added the autoscalesettings with CPU metric on VM scale set. And in VM scale set, I have the extension section with wadcfg section with counter on CPU metric. And the data is successfully getting emitted to storage account which I have specified.But scale out or scale on options are not getting done with VMSS and service fabric cluster. I have gone through trouble shooting steps which were specified in azure