1. 程式人生 > >Reboot an Auto Scaling Group Instance

Reboot an Auto Scaling Group Instance

Put the instance into the Standby state

To reboot an instance in an Auto Scaling group, you can put the instance into the Standby state, because Amazon EC2 Auto Scaling doesn’t perform health checks on instances in the Standby state. Choose this option if you need the Auto Scaling group to manage the instance throughout, because an Auto Scaling group still manages instances in a Standby state.

Follow these steps to put the instance into a Standby state, reboot the instance, and then return the instance to service:

  1. In the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
  2. Select the group of the instance that you want to reboot. On the Instances
    view, select the desired instance.
  3. Choose Actions, then choose Set to Standby. On the Set to Standby page, choose Set to Standby.
  4. In the navigation pane, under Instances, choose Instances. Note: Optionally, you can choose Add a new instance to the Auto Scaling group to balance the load
    to maintain the group capacity.
  5. Select the instance you set to the Standby state. Choose Actions, choose Instance State, and then choose Reboot.
  6. Select the instance again, and then choose the Status Checks view. Confirm that your System Status Checks and Instance Status Checks are passing.
  7. In the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
  8. Select the group of the instance you set to the Standby state.
  9. Select the instance that you rebooted. Choose Actions, and then choose Set to InService. On the Set to InService page, choose Set to InService.

Detach the instance from the group

You can detach an instance from an Auto Scaling group to manage the instance independently. Choose this option when you want to manage an instance independently of its Auto Scaling group. After you reboot the instance, you can attach the instance to an Auto Scaling group again, or you can leave the instance unattached.

Follow these steps to detach the instance from the Auto Scaling group, reboot the instance, and then attach the instance to the group again:

  1. In the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
  2. Select the group of the instance that you want to reboot. On the Instances view, select the instance.
  3. Choose Actions, then choose Detach.
  4. On the Detach Instance page, choose Detach Instance. Note: Optionally, you can choose Add a new instance to the Auto Scaling group to balance the load to replace the instance you’re detaching.
  5. In the navigation pane, under Instances, choose Instances.
  6. Select the instance you detached. Choose Actions, choose Instance State, and then choose Reboot.
  7. Select the instance, and then choose the Status Checks view. Confirm that the System Status Checks and Instance Status Checks are passing.
  8. Select the instance, choose Actions, choose Instance Settings, and then choose Attach to Auto Scaling Group.
  9. For Attach to Auto Scaling Group, under Attach an instance to, choose an existing Auto Scaling group. Select or search for the group that you detached the instance from. Then, choose Attach.

Suspend the health check process

You can suspend the health check process for your Auto Scaling group to reboot instances without Amazon EC2 Auto Scaling terminating the instances.

Warning: Suspending a process affects all instances in an Auto Scaling group. Until you resume the process, Amazon EC2 Auto Scaling won't replace any unhealthy instances. If you need Amazon EC2 Auto Scaling to perform health checks on remaining instances, choose one of the previous options.

Follow these steps to suspend the health check process for your group, reboot an instance, and then resume the health check process for the group:

  1. In the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
  2. Select the group of the instance that you want to reboot.
  3. On the Details view, choose Edit.
  4. Under Suspended Processes, select HealthCheck. Then, choose Save.
  5. In the navigation pane, under Instances, and then choose Instances. Note: Optionally, you can choose Add a new instance to the Auto Scaling group to balance the load to maintain the group capacity.
  6. Select the instance that you set to the Standby state. Choose Actions, choose Instance State, and then choose Reboot.
  7. Select the instance, and then choose the Status Checks view. Confirm that the System Status Checks and Instance Status Checks are passing.
  8. In the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
  9. Select the group of the instance that you want to reboot.
  10. On the Details view, choose Edit. Under Suspended Processes, remove HealthCheck, and then choose Save.

相關推薦

Reboot an Auto Scaling Group Instance

Put the instance into the Standby state To reboot an instance in an Auto Scaling group, you can put the instance into the Standby st

Ask HN: How fast is an AWS auto scaling group?

I have been struggling to find an answer to this simple question. What is the rate at which new instances can be created in an autoscaling group?Let's say

Auto Scaling Group Rolling Updates

SuspendProcesses During a rolling update, you must suspend Auto Scaling processes to avoid making unexpected changes to the group. If an unexpe

Auto Scaling Group Scale Down

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Automatically Attach a Second ENI to an Instance Launched Through Auto Scaling

import boto3 import botocore from datetime import datetime ec2_client = boto3.client('ec2') asg_client = boto3.client('autoscaling') def lamb

Why did Auto Scaling Terminate an Instance

Use the instance’s description in the Activity History view to determine further steps. Before proceeding, find the description and

Use Auto Scaling to Improve the Fault Tolerance of an Application Behind a Load Balancer

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Auto Scaling Terminate Unhealthy Instance

First, note the state of the instance in Amazon EC2 Auto Scaling: Sign in to the Amazon EC2 console. In the navigation

彈性伸縮Auto Scaling產品全面升級,輕松應對業務負載變化

冗余 穩定性 阿裏 server 反饋 公鑰 一段時間 采集 總數 摘要:?彈性伸縮是阿裏雲上非常受歡迎的一個雲服務編排產品,它能夠根據用戶的策略定義和業務需求變化,動態調整彈性計算資源,在有效支撐業務負載變化的同時保持最合理經濟的基礎設施費用開支。基於廣大用戶的反饋和建議

canal分庫配置group-instance.xml

group-instance.xml介紹: 主要針對需要進行多庫合併時,可以將多個物理instance合併為一個邏輯instance,提供客戶端訪問。 場景:分庫業務。 比如產品資料拆分了4個庫,每個庫會有一個instance,如果不用group,業務上要消費資料時,需要啟動4個客戶端,分別

Auto Scaling Production Services on Titus

Auto Scaling Production Services on TitusOver the past three years, Netflix has been investing in container technology. A large part of this investment has

Scryer: Netflix’s Predictive Auto Scaling Engine

Scryer: Netflix’s Predictive Auto Scaling EngineTo deliver the best possible experience to Netflix customers around the world, it is critical for us to mai

Install SSM Agent on an Amazon EC2 Linux Instance

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Create an AWS DMS Replication Instance

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Auto Scaling Troubleshooting

Based on the scaling issues you're seeing, perform the following checks on your Amazon EC2 Auto Scaling configurations: My Amazon E

Troubleshoot Auto Scaling Using CodeDeploy and CloudWatch

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Fleet Management Made Easy with Auto Scaling

If your application runs on Amazon EC2 instances, then you have what’s referred to as a ‘fleet’. This is true even if your fleet is just a single

Auto Scaling in Amazon EMR

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Auto Scaling Delay Termination

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

API calls to Auto Scaling are throttled

To prevent or mitigate “Rate Exceeded” errors and throttling, try these solutions: Validate “describe” calls Excessive “d