> For the complete documentation index, see [llms.txt](https://docs.spotmaxtech.com/maxbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spotmaxtech.com/maxbook/maxgroup-shuo-ming-wen-dang/kuai-su-ru-men/gong-neng-yan-zheng/e-li-yun.md).

# 阿里云

首先创建一个弹性伸缩组，如下图自动创建3个实例

![](/files/-M-3REqRtKpUNLYgzK9F)

利用阿里云的监控进行调试测试，阿里云控制台页面，选择“云监控”，点击调试

![](/files/-M-3QGgSwfSXKoKhaYYt)

输入要回收的实例ID，例如：i-bp1emy14ktx2mhb3q186，点击“确认”后，max\_group会接收中断消息

![](/files/-M-3SA7SOSyAAG9Ioh6q)

中断实例将被detach出伸缩组，并且创建一个新的实例进行替换

![](/files/-M-3TUQ4X21WDDot-G-2)

如果弹性伸缩组填写了“伸缩组内期望实例数”，按照[阿里云文档描述](https://yq.aliyun.com/articles/727372?spm=5176.2020520114.0.0.51b8558aT22hMI)，当手动添加实例时，“伸缩组内期望实例数”会被修改，但max\_group会智能的判断，配置为修改之前的“伸缩组内期望实例数”的值。

![](/files/-M-3ZeTXe5JTQllT-y6f)

实例i-bp1emy14ktx2mhb3q186，被detach伸缩组，等待回收，此时该实例不受伸缩组规则约束

![](/files/-M-3U0pEjwAJcWm-0M1c)

在实际使用中，如果实例被回收，阿里云会提前5分钟发送中断信息，当max\_group接收到信息，就会立刻创建新的实例，并加入到该伸缩组，当实例被回收后，阿里云会触发检测实例数是否大于等于设置的期望值，如果少于期望值，会进行ESC自动补偿机制，保证其实例期望数量的值。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.spotmaxtech.com/maxbook/maxgroup-shuo-ming-wen-dang/kuai-su-ru-men/gong-neng-yan-zheng/e-li-yun.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
