From cce6aadeb6273056524dd27719b8fb0c014ba83e Mon Sep 17 00:00:00 2001 From: Liuxiaozhen12 Date: Fri, 16 Jul 2021 16:16:29 +0800 Subject: [PATCH 1/2] Change tidb_memory_usage_alarm_ratio scope to instance --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 7c2ba3d92a43a..e94978440426c 100644 --- a/system-variables.md +++ b/system-variables.md @@ -944,7 +944,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified ### tidb_memory_usage_alarm_ratio -- Scope: SESSION +- Scope: `INSTANCE` - Default value: `0.8` - TiDB triggers an alarm when the percentage of the memory it takes exceeds a certain threshold. For the detailed usage description of this feature, see [`memory-usage-alarm-ratio`](/tidb-configuration-file.md#memory-usage-alarm-ratio-new-in-v409). - You can set the initial value of this variable by configuring [`memory-usage-alarm-ratio`](/tidb-configuration-file.md#memory-usage-alarm-ratio-new-in-v409). From 323869e3f249b1e22bc9f9fb09ae92325a1f16a5 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Fri, 16 Jul 2021 17:56:39 +0800 Subject: [PATCH 2/2] Update system-variables.md --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index e94978440426c..2a9e594f5cd22 100644 --- a/system-variables.md +++ b/system-variables.md @@ -944,7 +944,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified ### tidb_memory_usage_alarm_ratio -- Scope: `INSTANCE` +- Scope: INSTANCE - Default value: `0.8` - TiDB triggers an alarm when the percentage of the memory it takes exceeds a certain threshold. For the detailed usage description of this feature, see [`memory-usage-alarm-ratio`](/tidb-configuration-file.md#memory-usage-alarm-ratio-new-in-v409). - You can set the initial value of this variable by configuring [`memory-usage-alarm-ratio`](/tidb-configuration-file.md#memory-usage-alarm-ratio-new-in-v409).