mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
Set Cassandra connect timeout, not just regular timeout (#12903)
This commit is contained in:
3
changelog/12903.txt
Normal file
3
changelog/12903.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:improvement
|
||||||
|
db/cassandra: make the connect_timeout config option actually apply to connection timeouts, in addition to non-connection operations
|
||||||
|
```
|
||||||
@@ -189,6 +189,7 @@ func (c *cassandraConnectionProducer) createSession(ctx context.Context) (*gocql
|
|||||||
}
|
}
|
||||||
|
|
||||||
clusterConfig.Timeout = c.connectTimeout
|
clusterConfig.Timeout = c.connectTimeout
|
||||||
|
clusterConfig.ConnectTimeout = c.connectTimeout
|
||||||
clusterConfig.SocketKeepalive = c.socketKeepAlive
|
clusterConfig.SocketKeepalive = c.socketKeepAlive
|
||||||
clusterConfig.SslOpts = c.sslOpts
|
clusterConfig.SslOpts = c.sslOpts
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ vault write database/config/cassandra-example <...other fields> pem_json=@/path/
|
|||||||
|
|
||||||
- `protocol_version` `(int: 2)` – Specifies the CQL protocol version to use.
|
- `protocol_version` `(int: 2)` – Specifies the CQL protocol version to use.
|
||||||
|
|
||||||
- `connect_timeout` `(string: "5s")` – Specifies the connection timeout to use.
|
- `connect_timeout` `(string: "5s")` – Specifies the timeout to use, both for
|
||||||
|
connections and in general.
|
||||||
|
|
||||||
- `local_datacenter` `(string: "")` – If set, enables host selection policy
|
- `local_datacenter` `(string: "")` – If set, enables host selection policy
|
||||||
which will prioritize and use hosts which are in the local datacenter before
|
which will prioritize and use hosts which are in the local datacenter before
|
||||||
|
|||||||
Reference in New Issue
Block a user