Skip to content

ShardedDaemonProcess

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

Starts exactly N named daemon actors spread across the cluster. Built on top of ClusterSharding: each daemon becomes an entity, each entity gets its own shard via a 1-to-1 allocation, and rememberEntities ensures the daemons respawn after a node failure.

The allocation strategy defaults to LeastShardAllocationStrategy so daemons spread evenly over nodes. Every daemon index receives a synthetic “wake-up” message at init time which causes the sharding machinery to materialize it on the node the coordinator chose.

new ShardedDaemonProcess(): ShardedDaemonProcess

ShardedDaemonProcess

static init<T>(system, cluster, settings): ShardedDaemonProcessHandle<T>

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

T

ActorSystem

Cluster

ShardedDaemonProcessSettings<T>

ShardedDaemonProcessHandle<T>