---
title: "writing_throttling_trigger_percentage - OceanBase Database AI V4.6.2 | OceanBase 文档中心"
description: writing_throttling_trigger_percentage 功能描述 writing_throttling_trigger_percentage 用于设置触发写入限速的 MemStore 已使用内存占 MemStore 内存上限的百分比阈值。当 MemStore 内存的使用率达到该阈值时，触发写入限速…
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*inJjSpyNOjUAAAAAHtAAAAgAeiGDAQ/original) OceanBase Database AIV 4.6.2

# writing_throttling_trigger_percentage

更新时间：2026-08-13 19:27:48

[编辑](https://github.com/oceanbase/oceanbase-database-ai/edit/V4.6.2/zh-CN/700.reference/800.configuration-items-and-system-variables/100.system-configuration-items/400.tenant-level-configuration-items/8500.writing_throttling_trigger_percentage.md)  

## 功能描述

`writing_throttling_trigger_percentage` 用于设置触发写入限速的 MemStore 已使用内存占 MemStore 内存上限的百分比阈值。当 MemStore 内存的使用率达到该阈值时，触发写入限速。

## 权限要求

- 查询配置项

  `sys` 租户和所有用户租户均可以使用 `SHOW PARAMETERS` 语句或视图 `GV$OB_PARAMETERS` 查询该配置项。
 - 修改配置项

  `sys` 租户和用户租户都可修改该配置项。

## 属性说明

| **属性** | **描述** |
| --- | --- |
| 参数类型 | Int |
| 默认值 | 60 |
| 取值范围 | [1, 100] |
| 是否可修改 | 是，支持通过 `ALTER SYSTEM SET` 语句修改。 |
| 是否重启 OBServer 节点生效 | 否，设置后立即生效。 |

## 使用说明

- OceanBase Database AI 使用 MemStore 来存储最近写入的数据。为了避免内存溢出，系统提供了两个重要的保护机制：

     - 冻结机制：将内存中的数据持久化到磁盘，以释放内存空间。
     - 限流机制：当内存压力过大时，降低写入速度，为释放内存争取时间。

  这两个机制通过两个租户级配置项来控制触发时机：[freeze_trigger_percentage](https://www.oceanbase.com/docs/common-oceanbase-database-ai-1000000006781057)（冻结阈值）和 `writing_throttling_trigger_percentage`（限流阈值）。

  为了避免因过早限流而导致的性能下降，要求 `writing_throttling_trigger_percentage` 的值必须大于 [freeze_trigger_percentage](https://www.oceanbase.com/docs/common-oceanbase-database-ai-1000000006781057) 的值。
 - 当 MemStore 已使用的内存达到该阈值时，触发写入限速。当该配置项的值为 100 时，表示关闭写入限速机制。

## 配置示例

设置当 MemStore 已使用内存占 MemStore 内存上限的 60% 时，触发写入限速。

```shell
obclient> ALTER SYSTEM SET writing_throttling_trigger_percentage = 60;

```

## 相关文档

[租户内存写满](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005682916)

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
