Skip to content

Commit a4f6b3c

Browse files
committed
Update default value from ClusterConfig.ConnectTimeout
It's default of 11 seconds is ok for regular scenaior, but when cluster is under preasure it can take longer. Let's increase it to 1 minute, which is enough to init connection and run all the queries.
1 parent e358030 commit a4f6b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ func NewCluster(hosts ...string) *ClusterConfig {
412412
Hosts: hosts,
413413
CQLVersion: "3.0.0",
414414
Timeout: 11 * time.Second,
415-
ConnectTimeout: 11 * time.Second,
415+
ConnectTimeout: 60 * time.Second,
416416
ReadTimeout: 11 * time.Second,
417417
WriteTimeout: 11 * time.Second,
418418
Port: 9042,

0 commit comments

Comments
 (0)