ClusterBootstrapOptions
Это содержимое пока не доступно на вашем языке.
Defined in: src/cluster/ClusterBootstrap.ts:18
Options accepted by Cluster.bootstrap. Everything is
optional except name; sensible defaults turn the call into a
single-line hello-cluster.
Properties
Section titled “Properties”awaitReady?
Section titled “awaitReady?”
readonlyoptionalawaitReady?:number|boolean
Defined in: src/cluster/ClusterBootstrap.ts:107
Wait for this node’s SelfUp event before resolving.
true(default) — wait up to 5 000 ms.false/0— return immediately.- a number — wait at most that many ms.
On timeout the returned promise still resolves — the cluster keeps trying in the background. Set a custom value when seed contact is slow (e.g. K8s pod start lag).
config?
Section titled “config?”
readonlyoptionalconfig?:ConfigObject|Config
Defined in: src/cluster/ClusterBootstrap.ts:27
configFile?
Section titled “configFile?”
readonlyoptionalconfigFile?:string
Defined in: src/cluster/ClusterBootstrap.ts:28
discovery?
Section titled “discovery?”
readonlyoptionaldiscovery?:"config"|SeedProvider|"dns"|"kubernetes"| {providers: readonlySeedProvider[]; } |"auto"
Defined in: src/cluster/ClusterBootstrap.ts:76
Discovery strategy. Values:
'auto'(default) — env-driven autoDiscovery chain.'kubernetes' | 'dns' | 'config'— pin to a single provider, still configured from env vars.- a
SeedProviderinstance — use as-is. { providers: [...] }— assemble a custom aggregate chain.
Ignored when seeds is set.
downing?
Section titled “downing?”
readonlyoptionaldowning?:DowningProvider
Defined in: src/cluster/ClusterBootstrap.ts:87
failureDetector?
Section titled “failureDetector?”
readonlyoptionalfailureDetector?:Partial<FailureDetectorSettings>
Defined in: src/cluster/ClusterBootstrap.ts:85
gossipIntervalMs?
Section titled “gossipIntervalMs?”
readonlyoptionalgossipIntervalMs?:number
Defined in: src/cluster/ClusterBootstrap.ts:86
readonlyoptionalhost?:string
Defined in: src/cluster/ClusterBootstrap.ts:48
Bind host. Default resolution order:
opts.hostprocess.env.POD_IP(Kubernetes)process.env.HOSTNAME'0.0.0.0'
logger?
Section titled “logger?”
readonlyoptionallogger?:Logger
Defined in: src/cluster/ClusterBootstrap.ts:25
Optional logger / log level / config overrides — forwarded to ActorSystem.create.
logLevel?
Section titled “logLevel?”
readonlyoptionallogLevel?:LogLevel
Defined in: src/cluster/ClusterBootstrap.ts:26
readonlyname:string
Defined in: src/cluster/ClusterBootstrap.ts:22
ActorSystem name.
persistence?
Section titled “persistence?”
readonlyoptionalpersistence?:object
Defined in: src/cluster/ClusterBootstrap.ts:29
journal?
Section titled “journal?”
readonlyoptionaljournal?:Journal
snapshotStore?
Section titled “snapshotStore?”
readonlyoptionalsnapshotStore?:SnapshotStore
readonlyoptionalport?:number
Defined in: src/cluster/ClusterBootstrap.ts:54
Bind port. Default: process.env.CLUSTER_PORT (when present and
a finite integer), otherwise 2552.
receptionist?
Section titled “receptionist?”
readonlyoptionalreceptionist?:boolean
Defined in: src/cluster/ClusterBootstrap.ts:94
Auto-start the Receptionist extension so service-key
lookups (Find, Subscribe) work without explicit wiring.
Default: true.
roles?
Section titled “roles?”
readonlyoptionalroles?:string[]
Defined in: src/cluster/ClusterBootstrap.ts:84
seeds?
Section titled “seeds?”
readonlyoptionalseeds?: readonlystring[]
Defined in: src/cluster/ClusterBootstrap.ts:63
Explicit seed list. When set, discovery is ignored and the
cluster contacts exactly these addresses.
shutdownOnSignals?
Section titled “shutdownOnSignals?”
readonlyoptionalshutdownOnSignals?:boolean| readonlySignals[]
Defined in: src/cluster/ClusterBootstrap.ts:37
Whether the bootstrap helper installs SIGTERM + SIGINT
handlers that call the returned shutdown() once. Set
to a list of signals to customise, or to false to disable.
Default: ['SIGTERM', 'SIGINT'].
transport?
Section titled “transport?”
readonlyoptionaltransport?:Transport
Defined in: src/cluster/ClusterBootstrap.ts:57
Transport override. Default: TcpTransport.