pub struct ContainerAutoscaling {
pub min: u32,
pub desired: u32,
pub max: u32,
pub target_cpu_percent: Option<f64>,
pub target_memory_percent: Option<f64>,
pub target_http_in_flight_per_replica: Option<u32>,
pub max_http_p95_latency_ms: Option<f64>,
}Expand description
Autoscaling configuration for stateless containers.
Fields§
§min: u32Minimum replicas (always running)
desired: u32Initial desired replicas at container creation
max: u32Maximum replicas under load
target_cpu_percent: Option<f64>Target CPU utilization percentage for scaling (default: 70%)
target_memory_percent: Option<f64>Target memory utilization percentage for scaling (default: 80%)
target_http_in_flight_per_replica: Option<u32>Target in-flight HTTP requests per replica
max_http_p95_latency_ms: Option<f64>Maximum acceptable p95 HTTP latency in milliseconds
Trait Implementations§
Source§impl Clone for ContainerAutoscaling
impl Clone for ContainerAutoscaling
Source§fn clone(&self) -> ContainerAutoscaling
fn clone(&self) -> ContainerAutoscaling
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 ContainerAutoscaling
impl Debug for ContainerAutoscaling
Source§impl<'de> Deserialize<'de> for ContainerAutoscaling
impl<'de> Deserialize<'de> for ContainerAutoscaling
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
Source§impl PartialEq for ContainerAutoscaling
impl PartialEq for ContainerAutoscaling
Source§impl Serialize for ContainerAutoscaling
impl Serialize for ContainerAutoscaling
impl StructuralPartialEq for ContainerAutoscaling
Auto Trait Implementations§
impl Freeze for ContainerAutoscaling
impl RefUnwindSafe for ContainerAutoscaling
impl Send for ContainerAutoscaling
impl Sync for ContainerAutoscaling
impl Unpin for ContainerAutoscaling
impl UnsafeUnpin for ContainerAutoscaling
impl UnwindSafe for ContainerAutoscaling
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