Skip to content

ShardedDaemonProcessSettings

Defined in: src/cluster/sharding/ShardedDaemonProcess.ts:19

T

readonly behaviorFor: (daemonIndex) => Props<T>

Defined in: src/cluster/sharding/ShardedDaemonProcess.ts:25

Props factory — gets the daemon’s stable index (0..numDaemons-1).

number

Props<T>


readonly optional livenessIntervalMs?: number

Defined in: src/cluster/sharding/ShardedDaemonProcess.ts:37

Period (ms) at which a “liveness ping” wakes every daemon index even when no cluster topology event has fired. Acts as a safety net for the event-driven path (LeaderChanged / MemberRemoved) — if a wake was missed (e.g. brief partition right at the failover moment), the heartbeat ensures the daemons still get re-materialized.

Default: 30_000 (30 s). Set to 0 to disable.


readonly name: string

Defined in: src/cluster/sharding/ShardedDaemonProcess.ts:21

Logical name used for the shard type; must be unique per daemon set.


readonly numDaemons: number

Defined in: src/cluster/sharding/ShardedDaemonProcess.ts:23

Total number of daemons to keep running cluster-wide.


readonly optional role?: string

Defined in: src/cluster/sharding/ShardedDaemonProcess.ts:27

Optional role — only members carrying the role host daemons.