From 7bbc81e577c7bbd117849c41ac73d6437d7b1641 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 d8cfd538deccb..1a40b93e14a4b 100644 --- a/system-variables.md +++ b/system-variables.md @@ -883,7 +883,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 dc3202e621791ba500c705c02aa3e7ae5b6a7e1c 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 1a40b93e14a4b..4a7df731d502d 100644 --- a/system-variables.md +++ b/system-variables.md @@ -883,7 +883,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).