Deactivating and Activating a Model Deployment
Activate a deactivated Data Science model deployment or deactivate an active one.
Deactivating a model deployment has the following effects:
- The instances associated with the model deployment shut down.
- Metering and billing of the model deployment instances and load balancer stop.
- The deployment HTTP endpoint becomes unavailable.
- The model deployment metadata is saved.
A deactivated model deployment can be reactivated. The same model HTTP endpoint is available upon reactivation, and requests can be made to that model endpoint.
When a model deployment is in the Inactive state, you can change all of the options at one time and save the changes. The same isn't true when a model deployment is Active. See Editing a Model Deployment.
Use the oci data-science model-deployment activate command and required parameters to activate a model deployment:
oci data-science model-deployment activate --notebook-session-id <model-deployment-id> .-c [<text>].. [OPTIONS]Use the oci data-science model-deployment deactivate command and required parameters to deactivate a model deployment:
oci data-science model-deployment deactivate --notebook-session-id <model-deployment-id> .-c [<text>].. [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Use the ActivateModelDeployment and DeactivateModelDeployment operations to activate or deactivate a model deployment.