From 029a4bec6b11fdfcda10457bacdac0136a9f871a Mon Sep 17 00:00:00 2001 From: Aolin Date: Tue, 14 Mar 2023 18:15:08 +0800 Subject: [PATCH] pd control: add service-gc-safepoint command Signed-off-by: Aolin --- pd-control.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pd-control.md b/pd-control.md index 109bee70f0f34..aec8b63b74081 100644 --- a/pd-control.md +++ b/pd-control.md @@ -916,6 +916,23 @@ Usage: scheduler config balance-hot-region-scheduler set enable-for-tiflash true ``` +### `service-gc-safepoint` + +Use this command to query the current GC safepoint and service GC safepoint. The output is as follows: + +```bash +{ + "service_gc_safe_points": [ + { + "service_id": "gc_worker", + "expired_at": 9223372036854775807, + "safe_point": 439923410637160448 + } + ], + "gc_safe_point": 0 +} +``` + ### `store [delete | cancel-delete | label | weight | remove-tombstone | limit ] [--jq=""]` For a jq formatted output, see [jq-formatted-json-output-usage](#jq-formatted-json-output-usage).