> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cn/elastic-compute/load-balancing/manage-a-load-balancer.md).

# 管理负载均衡器

## 绑定弹性 IPv4

弹性公网 IPv4 作为负载均衡器的 VIP（虚拟 IP），即负载均衡器的外部访问地址。当您有较高的流量和容量需求时，可以为负载均衡器绑定多个弹性 IPv4 地址。

{% hint style="info" %} <mark style="color:blue;">**注意**</mark>

<mark style="color:blue;">只能绑定与负载均衡器位于同一地区的弹性 IP。</mark>
{% endhint %}

在负载均衡器列表页，前往 **Actions** > **Bind Elastic IPv4**；或在详情页，前往 **Information** > **Network configuration** > **Bind Elastic IPv4**。

勾选所需 IP，点击 **Confirm**。如果没有可用的弹性 IP，请点击 **New Elastic IPv4** 进行创建。

如需解绑 IP，请前往详情页，**Information** > **Network configuration** > **Public IP Address** > **Actions** > **Unbind**。

***

## 变更安全组

当负载均衡器的**流量访问需求**发生变化时，您需要变更其关联的安全组。

在负载均衡器列表页，前往 **Actions** > **Change Security Group**。

选择所需的安全组。如果没有合适的安全组，请点击 **New Security Group** 进行创建。

***

## 查看性能

当遇到访问问题、流量突增、配置变更，或在容量和成本规划期间，您应当查看负载均衡器的性能指标。

点击负载均衡器名称进入详情页。

### 监听器指标

选择全部监听器或指定监听器，并自定义时间范围，查看以下性能指标。

**并发连接数（次/分钟）** 表示某一时刻的活跃连接数量。用于识别连接饱和、长连接或容量扩展需求。

**CPS（每秒新建连接数 / 次/秒）** 衡量新建连接的速率。用于检测流量突增、突发工作负载增加或异常连接行为。

**网络吞吐量** 显示负载均衡实例在一小时内处理的实时入站和出站带宽总速率，单位为 bps（比特/秒）。用于评估负载均衡器是否接近吞吐量上限。

**数据传输量** 表示负载均衡实例在所选时间范围内处理的入站和出站数据传输总量，单位为 GB。主要用于流量分析和计费评估。

### 网络指标

选择全部弹性 IP 或指定 IP，并自定义时间范围，查看以下性能指标。

**带宽** 反映公网 IP 地址每秒的入站和出站字节数。用于判断带宽是否充足或是否需要提升。

**数据包传输量** 跟踪公网 IP 地址每秒接收的入站数据包数和发送的出站数据包数。有助于诊断网络质量问题，例如数据包突发或小包流量导致的低效问题。

***

## 删除负载均衡器

如果您不再需要某台负载均衡器，可以手动将其删除。

在负载均衡器列表页，前往 **Actions** > **Delete**。输入"Delete"或"delete"确认删除。

所有附属资源将被解除关联。监听器、转发规则及其他配置将被永久清除且无法恢复，请谨慎操作。

对于弹性 IP，您可以选择一个或多个弹性 IP 同时删除。

{% hint style="info" %} <mark style="color:blue;">**注意**</mark>

* <mark style="color:blue;">删除后，负载均衡器将在 24 小时后自动释放，在此期间可一键恢复。</mark>
* <mark style="color:blue;">您也可以随时手动将其永久删除。</mark>
  {% endhint %}


---

# 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.console.zenlayer.com/welcome/cn/elastic-compute/load-balancing/manage-a-load-balancer.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.
