pub struct ScalingConfig {
pub pools: BTreeMap<String, ScalePool>,
}Expand description
ScalingConfig (stateless, scaling)
- Organizes canisters into worker groups (e.g. “oracle”).
- Workers are interchangeable and handle transient tasks (no tenant assignment).
- Scaling is about throughput, not capacity.
- Hence:
WorkerManager → pools → WorkerSpec → WorkerPolicy.
Fields§
§pools: BTreeMap<String, ScalePool>Trait Implementations§
Source§impl Clone for ScalingConfig
impl Clone for ScalingConfig
Source§fn clone(&self) -> ScalingConfig
fn clone(&self) -> ScalingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalingConfig
impl Debug for ScalingConfig
Source§impl Default for ScalingConfig
impl Default for ScalingConfig
Source§fn default() -> ScalingConfig
fn default() -> ScalingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScalingConfig
impl<'de> Deserialize<'de> for ScalingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScalingConfig
impl RefUnwindSafe for ScalingConfig
impl Send for ScalingConfig
impl Sync for ScalingConfig
impl Unpin for ScalingConfig
impl UnwindSafe for ScalingConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more