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.

    1. On the Projects list page, select the project that contains the model deployments that you want to work with. If you need help finding the list page or the project, see Listing Projects.
    2. On the project details page, select Model deployments.
      All model deployments in the selected project are displayed in a table.
    3. Find the model deployment that you want to work with.
    4. From the Actions menu (three dots) for the model deployment, select Deactivate or Activate.
  • 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.