> For the complete documentation index, see [llms.txt](https://docs.dataimpulse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dataimpulse.com/dataimpulse-documentation-zh-cn/liu-liang-xian-zhi.md).

# 流量限制

设置代理套餐在所选期间内可使用的最大流量。控制支出，并在无超额使用风险的情况下共享套餐。

#### 如何设置

1. 打开你的计划并转到 **资源 → 管理流量限制**.
2. 选择一个 **周期**：1 小时、24 小时、7 天或 30 天。
3. 输入 **流量限制** （以 GB 为单位，仅限整数）。
4. 选择一个 **操作** 用于达到限制时：
   * **邮件通知**：你会收到一封邮件，而计划会继续运行。
   * **暂停使用**：计划会停止运行，直到再次有流量可用。
   * **暂停使用并邮件通知**：计划会停止运行，并且你会收到一封邮件。
5. 点击 **保存配置**.

要移除限制，请点击 **清除配置**.

#### 周期的工作方式：滚动窗口

该限制基于滚动窗口，而不是按日历计算。它不会在固定时间重置（例如午夜或每月 1 日）。在任何时刻，我们都会统计你在 **过去** 1 小时 / 24 小时 / 7 天 / 30 天内的使用量，起点为当前时刻。

{% hint style="info" %}
你使用的每 1 GB，会在你使用后的正好一个周期后恢复。
{% endhint %}

**示例：** 每 24 小时限额 5 GB，并启用暂停使用。

| 当                  | 过去 24 小时内已使用              | 状态          |
| ------------------ | ------------------------- | ----------- |
| 周一 09:00，你使用了 2 GB | 2 GB                      | 运行中，剩余 3 GB |
| 周一 15:00，你使用了 3 GB | 5 GB                      | 已暂停         |
| 周二 09:00           | 3 GB（周一 09:00 的 2 GB 已过期） | 运行中，可用 2 GB |
| 周二 15:00           | 0 GB                      | 完整 5 GB 可用  |

如果你一次性用完全部限额，那么完整限额会在一个周期后恢复。

**为什么使用滚动窗口：** 对于日历式限制，你可以在 23:59 用完全部限额，然后又在 00:01 再次使用。使用滚动窗口时，在任意长度的周期内，你都不可能超过自己的限额。

#### 当达到限制时

* **暂停使用：** 请求会返回错误 `USER_RATE_LIMIT_EXCEEDED`。随着流量恢复，计划会自动重新开始运行。如果你需要更快恢复访问，请提高限制或清除配置。
* **邮件通知：** 不会停止任何操作。该邮件只会告诉你已达到限制。

#### 补充说明

* 该限制仅适用于一个计划，不是你的整个账户。
* 更改会在大约 1 分钟内生效。
* 该限制不会增加流量。如果你的计划余额先用完，计划仍然会停止运行。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.dataimpulse.com/dataimpulse-documentation-zh-cn/liu-liang-xian-zhi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
