Class DedicatedResources (0.4.0)

DedicatedResources(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A description of resources that are dedicated to a DeployedModel, and that need a higher degree of manual configuration.


machine_spec `.machine_resources.MachineSpec`
Required. Immutable. The specification of a single machine used by the prediction.
min_replica_count int
Required. Immutable. The minimum number of machine replicas this DeployedModel will be always deployed on. If traffic against it increases, it may dynamically be deployed onto more replicas, and as traffic decreases, some of these extra replicas may be freed. Note: if ``machine_spec.accelerator_count`` is above 0, currently the model will be always deployed precisely on ``min_replica_count``.
max_replica_count int
Immutable. The maximum number of replicas this DeployedModel may be deployed on when the traffic against it increases. If 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, will use ``min_replica_count`` as the default value.


builtins.object > proto.message.Message > DedicatedResources