ClusterClientSettings
Defined in: src/cluster/ClusterClient.ts:50
Properties
Section titled “Properties”askTimeoutMs?
Section titled “askTimeoutMs?”
readonlyoptionalaskTimeoutMs?:number
Defined in: src/cluster/ClusterClient.ts:68
Default ask timeout (ms). Default: 5_000.
clientIdentity?
Section titled “clientIdentity?”
readonlyoptionalclientIdentity?:object
Defined in: src/cluster/ClusterClient.ts:66
Host + port the client claims as its identity. The cluster uses this
to route cluster-client-reply frames back over the right connection.
Use a host:port that uniquely identifies this client instance — random
defaults are fine because the cluster only needs it for connection
routing, not for actual networking back to the client.
readonlyhost:string
readonlyport:number
contactPoints
Section titled “contactPoints”
readonlycontactPoints: readonlystring[]
Defined in: src/cluster/ClusterClient.ts:56
Cluster nodes to dial. Each is a host:port or <system>@host:port
string — the same shape Cluster.join accepts for seeds. Tried in
order; on dial failure the next is attempted.
readonlyoptionallog?:Logger
Defined in: src/cluster/ClusterClient.ts:72
Custom logger; default: ConsoleLogger at WARN.
systemName?
Section titled “systemName?”
readonlyoptionalsystemName?:string
Defined in: src/cluster/ClusterClient.ts:58
Synthetic system name embedded in the client’s hello. Default: ‘cluster-client’.
readonlyoptionaltls?:TlsTransportSettings
Defined in: src/cluster/ClusterClient.ts:70
Optional TLS config — must match the cluster’s.