diff --git a/programs/server/config.xml b/programs/server/config.xml
index 8ec49d804bd..41590acd0d2 100644
--- a/programs/server/config.xml
+++ b/programs/server/config.xml
@@ -267,7 +267,7 @@
- 4096
+
10
diff --git a/programs/server/config.yaml.example b/programs/server/config.yaml.example
index 5b0330df572..8b47e54c6ed 100644
--- a/programs/server/config.yaml.example
+++ b/programs/server/config.yaml.example
@@ -136,11 +136,12 @@ interserver_http_port: 9009
# Allow multiple servers to listen on the same address:port. This is not recommended.
# listen_reuse_port: 0
-# listen_backlog: 64
-max_connections: 4096
+# listen_backlog: 4096
+
+# max_connections: 4096
# For 'Connection: keep-alive' in HTTP 1.1
-keep_alive_timeout: 3
+keep_alive_timeout: 10
# gRPC protocol (see src/Server/grpc_protos/clickhouse_grpc.proto for the API)
# grpc_port: 9100
diff --git a/src/Core/ServerSettings.cpp b/src/Core/ServerSettings.cpp
index 4bea23d4e90..a67ed458bec 100644
--- a/src/Core/ServerSettings.cpp
+++ b/src/Core/ServerSettings.cpp
@@ -59,7 +59,7 @@ namespace DB
DECLARE(UInt64, restore_threads, 16, "The maximum number of threads to execute RESTORE requests.", 0) \
DECLARE(Bool, shutdown_wait_backups_and_restores, true, "If set to true ClickHouse will wait for running backups and restores to finish before shutdown.", 0) \
DECLARE(Double, cannot_allocate_thread_fault_injection_probability, 0, "For testing purposes.", 0) \
- DECLARE(Int32, max_connections, 1024, "Max server connections.", 0) \
+ DECLARE(Int32, max_connections, 4096, "Max server connections.", 0) \
DECLARE(UInt32, asynchronous_metrics_update_period_s, 1, "Period in seconds for updating asynchronous metrics.", 0) \
DECLARE(Bool, asynchronous_metrics_enable_heavy_metrics, false, "Enable the calculation of heavy asynchronous metrics.", 0) \
DECLARE(UInt32, asynchronous_heavy_metrics_update_period_s, 120, "Period in seconds for updating heavy asynchronous metrics.", 0) \