pub struct ScaleRequest {
pub name: String,
pub actor_type: ActorTypeId,
pub total: u64,
pub config: Vec<u8>,
pub live_nodes: Vec<NodeId>,
}Expand description
A request to drive a group to a cluster-wide instance count on the leader
(/actor/scale, cross-node-actors, supervisor-leader). Sent when scale_cluster is called on a
follower: the leader owns cluster-wide placement, so the follower forwards
the intent (with the committed voter set it observed) rather than planning
locally. The target reconstructs each placement via the actor_type
factory, exactly like a SpawnRequest.
Fields§
§name: StringThe group name to scale.
actor_type: ActorTypeIdThe actor’s type tag; every hosting node must have a factory for it.
total: u64Desired cluster-wide instance count (one worker per node, one-worker-per-vps).
config: Vec<u8>postcard-encoded A::Config used to construct new instances.
live_nodes: Vec<NodeId>The live/voter node set the requester observed (committed Raft membership), against which the plan is computed.
Trait Implementations§
Source§impl Clone for ScaleRequest
impl Clone for ScaleRequest
Source§fn clone(&self) -> ScaleRequest
fn clone(&self) -> ScaleRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more