From d5d5f60a3d3686821ca6e233e0bfc2f7a06aec9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 22 Jun 2021 12:45:05 +0200 Subject: [PATCH] tidb-configuration-file: add graceful-wait-before-shutdown Closes: #5823 Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- tidb-configuration-file.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 77ad159aaa06d..1eb024f12e1ba 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -170,6 +170,12 @@ The TiDB configuration file supports more options than command-line parameters. + Default value: `true` + When this configuration value is `true`, the maximum length of a single `ENUM` element and a single `SET` element is 255 characters, which is compatible with [MySQL 8.0](https://dev.mysql.com/doc/refman/8.0/en/string-type-syntax.html). When this configuration value is `false`, there is no limit on the length of a single element, which is compatible with TiDB (earlier than v5.0). +#### `graceful-wait-before-shutdown` New in v5.0 + +- Specifies the number of seconds that TiDB waits when you shut down the server, which allows the clients to disconnect. +- Default value: `0` +- When TiDB is waiting for shutdown (in the grace period), the HTTP status will indicate a failure, which allows the load balancers to reroute traffic. + ## Log Configuration items related to log.