Skip to content

ClusterClientSettings

Defined in: src/cluster/ClusterClient.ts:50

readonly optional askTimeoutMs?: number

Defined in: src/cluster/ClusterClient.ts:68

Default ask timeout (ms). Default: 5_000.


readonly optional clientIdentity?: 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.

readonly host: string

readonly port: number


readonly contactPoints: readonly string[]

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.


readonly optional log?: Logger

Defined in: src/cluster/ClusterClient.ts:72

Custom logger; default: ConsoleLogger at WARN.


readonly optional systemName?: string

Defined in: src/cluster/ClusterClient.ts:58

Synthetic system name embedded in the client’s hello. Default: ‘cluster-client’.


readonly optional tls?: TlsTransportSettings

Defined in: src/cluster/ClusterClient.ts:70

Optional TLS config — must match the cluster’s.