From 1eca5bd6637d1c25d1e97da44cd42c7dd182ea32 Mon Sep 17 00:00:00 2001 From: chengshiwen Date: Wed, 28 Aug 2024 23:59:39 +0800 Subject: [PATCH] chore: fix indent and typo in config.sample.toml and meta.config.sample.toml --- etc/config.sample.toml | 100 ++++++++++++++++++------------------ etc/meta.config.sample.toml | 74 ++++++++++++++------------ 2 files changed, 90 insertions(+), 84 deletions(-) diff --git a/etc/config.sample.toml b/etc/config.sample.toml index a983dbd..c77f23f 100644 --- a/etc/config.sample.toml +++ b/etc/config.sample.toml @@ -5,7 +5,7 @@ # field and the default value used. Uncommenting a line and changing the value # will change the value used at runtime when the process is restarted. -# Once every 24 hours InfluxDB Cluster will report usage data in log output +# Once every 24 hours InfluxDB Cluster will report usage data in the log output. # The data includes a random ID, os, arch, version, the number of series and other # usage data. No data from user databases is ever transmitted. # Change this option to true to disable reporting. @@ -50,7 +50,7 @@ # Automatically create a default retention policy when creating a database. # retention-autocreate = true - # If log messages are printed for the meta service + # Whether log messages are printed for the meta service. # logging-enabled = true ### @@ -283,7 +283,7 @@ ### Controls the system self-monitoring, statistics and diagnostics. ### ### The internal database for monitoring data is created automatically if -### if it does not already exist. The target retention within this database +### it does not already exist. The target retention within this database ### is called 'monitor' and is also created with a retention period of 7 days ### and a replication factor of 1, if it does not exist. In all cases the ### this retention policy is configured as the default for the database. @@ -409,7 +409,7 @@ # The maximum duration for a write to wait in the queue to be processed. # Setting this to 0 or setting max-concurrent-write-limit to 0 disables the limit. - # enqueued-write-timeout = "30s" + # enqueued-write-timeout = 30000000000 # User supplied HTTP response headers # @@ -635,15 +635,9 @@ # Controls whether queries are logged to the self-monitoring data store. # query-stats-enabled = false - # interval for how often continuous queries will be checked if they need to run + # Interval for how often continuous queries will be checked whether they need to run. # run-interval = "1s" -### -### [tls] -### -### Global configuration settings for TLS in InfluxDB. -### - ### ### [hinted-handoff] ### @@ -651,44 +645,44 @@ ### [hinted-handoff] -# Determines whether hinted handoff is enabled. -# enabled = true + # Determines whether hinted handoff is enabled. + # enabled = true -# The directory where the hinted handoff queues are stored. -dir = "/var/lib/influxdb/hh" + # The directory where the hinted handoff queues are stored. + dir = "/var/lib/influxdb/hh" -# The default maximum size of all hinted handoff queues in bytes. -# max-size = "10g" + # The default maximum size of all hinted handoff queues in bytes. + # max-size = "10g" -# The default maximum amount of time that a hinted handoff write can stay in the queue. -# After this time, the write will be purged. -# max-age = "168h0m0s" + # The default maximum amount of time that a hinted handoff write can stay in the queue. + # After this time, the write will be purged. + # max-age = "168h0m0s" -# The maximum number of concurrent queued writes to process at a time. -# retry-concurrency = 20 + # The maximum number of concurrent queued writes to process at a time. + # retry-concurrency = 20 -# The default rate that hinted handoffs will be retried. The rate is in bytes per second -# and applies across all nodes when retried. A value of 0 disables the rate limit. -# retry-rate-limit = 0 + # The default rate that hinted handoffs will be retried. The rate is in bytes per second + # and applies across all nodes when retried. A value of 0 disables the rate limit. + # retry-rate-limit = 0 -# The default amount of time the system waits before attempting to flush hinted handoff -# queues. With each failure of a hinted handoff write, this retry interval increases -# exponentially until it reaches the maximum. -# retry-interval = "1s" + # The default amount of time the system waits before attempting to flush hinted handoff + # queues. With each failure of a hinted handoff write, this retry interval increases + # exponentially until it reaches the maximum. + # retry-interval = "1s" -# The maximum the hinted handoff retry interval will ever be. -# retry-max-interval = "10s" + # The maximum the hinted handoff retry interval will ever be. + # retry-max-interval = "10s" -# The amount of time the system waits before attempting to purge hinted handoff data due -# to age or inactive nodes. -# purge-interval = "1m0s" + # The amount of time the system waits before attempting to purge hinted handoff data due + # to age or inactive nodes. + # purge-interval = "1m0s" -# Maximum number of bytes to write to a shard in a single request -# batch-size = 512000 + # Maximum number of bytes to write to a shard in a single request + # batch-size = 512000 -# Maximum number of writes into the hinted-handoff queue that can be pending. -# This is writes incoming to the hh queue, not outbound from the queue. -# max-writes-pending = 1024 + # Maximum number of writes into the hinted-handoff queue that can be pending. + # This is writes incoming to the hh queue, not outbound from the queue. + # max-writes-pending = 1024 ### ### [anti-entropy] @@ -698,21 +692,27 @@ dir = "/var/lib/influxdb/hh" ### default. [anti-entropy] -# Determines whether the service is enabled. -# enabled = false + # Determines whether the service is enabled. + # enabled = false + + # The interval of time when anti-entropy checks run on each data node. + # check-interval = "5m" -# The interval of time when anti-entropy checks run on each data node. -# check-interval = "5m" + # The maximum number of shards that a single data node will copy or repair + # concurrently. + # max-fetch = 10 -# The maximum number of shards that a single data node will copy or repair -# concurrently. -# max-fetch = 10 + # How many concurrent sync operations should be performed. + # max-sync = 1 -# How many concurrent sync operations should be performed. -# max-sync = 1 + # When set to true, missing shards will be automatically repaired. + # auto-repair-missing = true -# When set to true, missing shards will be automatically repaired. -# auto-repair-missing = true +### +### [tls] +### +### Global configuration settings for TLS in InfluxDB. +### [tls] # Determines the available set of cipher suites. See https://golang.org/pkg/crypto/tls/#pkg-constants diff --git a/etc/meta.config.sample.toml b/etc/meta.config.sample.toml index 5fa107f..cb4ee66 100644 --- a/etc/meta.config.sample.toml +++ b/etc/meta.config.sample.toml @@ -5,13 +5,13 @@ # field and the default value used. Uncommenting a line and changing the value # will change the value used at runtime when the process is restarted. -# Once every 24 hours InfluxDB Cluster will report usage data in log output +# Once every 24 hours InfluxDB Cluster will report usage data in the log output. # The data includes a random ID, os, arch, version, the number of series and other # usage data. No data from user databases is ever transmitted. # Change this option to true to disable reporting. # reporting-disabled = false -# The TCP bind address to use for cluster-internal services. +# The TCP bind address to use for the cluster-internal meta services. # bind-address = ":8091" # Hostname advertised by this host for remote addresses. This must be resolvable by all @@ -28,7 +28,7 @@ # Directory where cluster meta data is stored. dir = "/var/lib/influxdb/meta" - # The default address for meta node communication + # The default address for raft, cluster, snapshot, etc. # bind-address = ":8089" # The default address to bind the API to. @@ -119,36 +119,42 @@ ### [logging] -# Determines which log encoder to use for logs. Available options -# are auto, logfmt, and json. auto will use a more user-friendly -# output format if the output terminal is a TTY, but the format is not as -# easily machine-readable. When the output is a non-TTY, auto will use -# logfmt. -# format = "auto" - -# Determines which level of logs will be emitted. The available levels -# are error, warn, info, and debug. Logs that are equal to or above the -# specified level will be emitted. -# level = "info" - -# Suppresses the logo output that is printed when the program is started. -# The logo is always suppressed if STDOUT is not a TTY. -# suppress-logo = false + # Determines which log encoder to use for logs. Available options + # are auto, logfmt, and json. auto will use a more user-friendly + # output format if the output terminal is a TTY, but the format is not as + # easily machine-readable. When the output is a non-TTY, auto will use + # logfmt. + # format = "auto" + + # Determines which level of logs will be emitted. The available levels + # are error, warn, info, and debug. Logs that are equal to or above the + # specified level will be emitted. + # level = "info" + + # Suppresses the logo output that is printed when the program is started. + # The logo is always suppressed if STDOUT is not a TTY. + # suppress-logo = false + +### +### [tls] +### +### Global configuration settings for TLS in InfluxDB. +### [tls] -# Determines the available set of cipher suites. See https://golang.org/pkg/crypto/tls/#pkg-constants -# for a list of available ciphers, which depends on the version of Go (use the query -# SHOW DIAGNOSTICS to see the version of Go used to build InfluxDB). If not specified, uses -# the default settings from Go's crypto/tls package. -# ciphers = [ -# "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305", -# "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", -# ] - -# Minimum version of the tls protocol that will be negotiated. If not specified, uses the -# default settings from Go's crypto/tls package. -# min-version = "tls1.2" - -# Maximum version of the tls protocol that will be negotiated. If not specified, uses the -# default settings from Go's crypto/tls package. -# max-version = "tls1.3" + # Determines the available set of cipher suites. See https://golang.org/pkg/crypto/tls/#pkg-constants + # for a list of available ciphers, which depends on the version of Go (use the query + # SHOW DIAGNOSTICS to see the version of Go used to build InfluxDB). If not specified, uses + # the default settings from Go's crypto/tls package. + # ciphers = [ + # "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305", + # "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", + # ] + + # Minimum version of the tls protocol that will be negotiated. If not specified, uses the + # default settings from Go's crypto/tls package. + # min-version = "tls1.2" + + # Maximum version of the tls protocol that will be negotiated. If not specified, uses the + # default settings from Go's crypto/tls package. + # max-version = "tls1.3"