mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
Set Cassandra connect timeout, not just regular timeout (#12903)
This commit is contained in:
parent
4d4b37bf82
commit
8f7dafec91
3 changed files with 6 additions and 1 deletions
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.ConnectTimeout = c.connectTimeout
|
||||
clusterConfig.SocketKeepalive = c.socketKeepAlive
|
||||
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.
|
||||
|
||||
- `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
|
||||
which will prioritize and use hosts which are in the local datacenter before
|
||||
|
|
|
|||
Loading…
Reference in a new issue