From 3c23339a656df75a13d6d8b11f1505cfd721ecfc Mon Sep 17 00:00:00 2001 From: masonyc Date: Fri, 13 Oct 2023 11:55:52 +1300 Subject: [PATCH] fix: update config example --- config/datanode.example.toml | 16 ++++++++-------- config/frontend.example.toml | 14 +++++++------- config/metasrv.example.toml | 4 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/config/datanode.example.toml b/config/datanode.example.toml index 4f52380d658f..1125526485d9 100644 --- a/config/datanode.example.toml +++ b/config/datanode.example.toml @@ -13,19 +13,19 @@ rpc_runtime_size = 8 require_lease_before_startup = false [heartbeat] -# Interval for sending heartbeat messages to the Metasrv in milliseconds, 3000 by default. -interval_millis = 3000 +# Interval for sending heartbeat messages to the Metasrv, 3000 milliseconds by default. +interval = "3000ms" # Metasrv client options. [meta_client] # Metasrv address list. metasrv_addrs = ["127.0.0.1:3002"] -# Heartbeat timeout in milliseconds, 500 by default. -heartbeat_timeout_millis = 500 -# Operation timeout in milliseconds, 3000 by default. -timeout_millis = 3000 -# Connect server timeout in milliseconds, 5000 by default. -connect_timeout_millis = 1000 +# Heartbeat timeout, 500 milliseconds by default. +heartbeat_timeout = "500ms" +# Operation timeout, 3 seconds by default. +timeout = "3s" +# Connect server timeout, 1 second by default. +connect_timeout = "1s" # `TCP_NODELAY` option for accepted connections, true by default. tcp_nodelay = true diff --git a/config/frontend.example.toml b/config/frontend.example.toml index e87936551f40..566ed42f9ecf 100644 --- a/config/frontend.example.toml +++ b/config/frontend.example.toml @@ -2,10 +2,10 @@ mode = "distributed" [heartbeat] -# Interval for sending heartbeat task to the Metasrv in milliseconds, 5000 by default. -interval_millis = 5000 -# Interval for retry sending heartbeat task in milliseconds, 5000 by default. -retry_interval_millis = 5000 +# Interval for sending heartbeat task to the Metasrv, 5 seconds by default. +interval = "5s" +# Interval for retry sending heartbeat task, 5 seconds by default. +retry_interval = "5s" # HTTP server options, see `standalone.example.toml`. [http] @@ -59,10 +59,10 @@ enable = true # Metasrv client options, see `datanode.example.toml`. [meta_client] metasrv_addrs = ["127.0.0.1:3002"] -timeout_millis = 3000 +timeout = "3s" # DDL timeouts options. -ddl_timeout_millis = 10000 -connect_timeout_millis = 1000 +ddl_timeout = "10s" +connect_timeout = "1s" tcp_nodelay = true # Log options, see `standalone.example.toml` diff --git a/config/metasrv.example.toml b/config/metasrv.example.toml index deb5ec512d3a..6832573b05a7 100644 --- a/config/metasrv.example.toml +++ b/config/metasrv.example.toml @@ -32,6 +32,6 @@ retry_delay = "500ms" # [datanode] # # Datanode client options. # [datanode.client_options] -# timeout_millis = 10000 -# connect_timeout_millis = 10000 +# timeout = "10s" +# connect_timeout = "10s" # tcp_nodelay = true