From f1620d81042f585e06eebb6c8ccd23bfc462b726 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 ea7a58394fdaa..8f11b506820c3 100644 --- a/system-variables.md +++ b/system-variables.md @@ -945,7 +945,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 99844610035d54a1e209aa845ddfa962c81511f9 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 8f11b506820c3..d73463b606f53 100644 --- a/system-variables.md +++ b/system-variables.md @@ -945,7 +945,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).