ClusterClientOptionsType
Esta página aún no está disponible en tu idioma.
ClusterClientOptionsType =
object
Defined in: src/cluster/ClusterClientOptions.ts:7
Plain options-object shape accepted by a ClusterClient.
Properties
Section titled “Properties”askTimeoutMs?
Section titled “askTimeoutMs?”
readonlyoptionalaskTimeoutMs?:number
Defined in: src/cluster/ClusterClientOptions.ts:25
Default ask timeout (ms). Default: 5_000.
clientIdentity?
Section titled “clientIdentity?”
readonlyoptionalclientIdentity?:object
Defined in: src/cluster/ClusterClientOptions.ts:23
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:ReadonlyArray<string>
Defined in: src/cluster/ClusterClientOptions.ts:13
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.
logger?
Section titled “logger?”
readonlyoptionallogger?:Logger
Defined in: src/cluster/ClusterClientOptions.ts:29
Custom logger; default: ConsoleLogger at WARN.
systemName?
Section titled “systemName?”
readonlyoptionalsystemName?:string
Defined in: src/cluster/ClusterClientOptions.ts:15
Synthetic system name embedded in the client’s hello. Default: ‘cluster-client’.
readonlyoptionaltls?:TlsTransportOptionsType
Defined in: src/cluster/ClusterClientOptions.ts:27
Optional TLS config — must match the cluster’s.
