#[non_exhaustive]pub struct AutomaticResources {
pub min_replica_count: i32,
pub max_replica_count: i32,
/* private fields */
}deployment-resource-pool-service or endpoint-service or feature-online-store-admin-service or index-endpoint-service or model-garden-service only.Expand description
A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration. Each Model supporting these resources documents its specific guidelines.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_replica_count: i32Immutable. The minimum number of replicas this DeployedModel will be always deployed on. If traffic against it increases, it may dynamically be deployed onto more replicas up to max_replica_count, and as traffic decreases, some of these extra replicas may be freed. If the requested value is too large, the deployment will error.
max_replica_count: i32Immutable. The maximum number of replicas this DeployedModel may be deployed on when the traffic against it increases. If the requested value is too large, the deployment will error, but if deployment succeeds then the ability to scale the model to that many replicas is guaranteed (barring service outages). If traffic against the DeployedModel increases beyond what its replicas at maximum may handle, a portion of the traffic will be dropped. If this value is not provided, a no upper bound for scaling under heavy traffic will be assume, though Vertex AI may be unable to scale beyond certain replica number.
Implementations§
Source§impl AutomaticResources
impl AutomaticResources
pub fn new() -> Self
Sourcepub fn set_min_replica_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_replica_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of min_replica_count.
Sourcepub fn set_max_replica_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_replica_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_replica_count.
Trait Implementations§
Source§impl Clone for AutomaticResources
impl Clone for AutomaticResources
Source§fn clone(&self) -> AutomaticResources
fn clone(&self) -> AutomaticResources
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more