diff --git a/docs/en/operations/server-configuration-parameters/settings.md b/docs/en/operations/server-configuration-parameters/settings.md index 2c3f8be79b3..1a7ee172c7e 100644 --- a/docs/en/operations/server-configuration-parameters/settings.md +++ b/docs/en/operations/server-configuration-parameters/settings.md @@ -214,7 +214,7 @@ Max consecutive resolving failures before dropping a host from ClickHouse DNS ca Type: UInt32 -Default: 1024 +Default: 10 ## index_mark_cache_policy diff --git a/src/Core/ServerSettings.h b/src/Core/ServerSettings.h index 34a6296fb55..de0fff35389 100644 --- a/src/Core/ServerSettings.h +++ b/src/Core/ServerSettings.h @@ -75,7 +75,7 @@ namespace DB \ M(Bool, disable_internal_dns_cache, false, "Disable internal DNS caching at all.", 0) \ M(Int32, dns_cache_update_period, 15, "Internal DNS cache update period in seconds.", 0) \ - M(UInt32, dns_max_consecutive_failures, 1024, "Max DNS resolve failures of a hostname before dropping the hostname from ClickHouse DNS cache.", 0) \ + M(UInt32, dns_max_consecutive_failures, 10, "Max DNS resolve failures of a hostname before dropping the hostname from ClickHouse DNS cache.", 0) \ \ M(UInt64, max_table_size_to_drop, 50000000000lu, "If size of a table is greater than this value (in bytes) than table could not be dropped with any DROP query.", 0) \ M(UInt64, max_partition_size_to_drop, 50000000000lu, "Same as max_table_size_to_drop, but for the partitions.", 0) \