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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ShardedDaemonProcess():
ShardedDaemonProcess
Returns
Section titled “Returns”ShardedDaemonProcess
Methods
Section titled “Methods”init()
Section titled “init()”
staticinit<T>(system,cluster,settings):ShardedDaemonProcessHandle<T>
Defined in: src/cluster/sharding/ShardedDaemonProcess.ts:70
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”system
Section titled “system”cluster
Section titled “cluster”settings
Section titled “settings”ShardedDaemonProcessSettings<T>