Stop & Start Instance

TOC

Feature Overview

Provides the temporary stop and restart functions for instances, applicable for resource scheduling, maintenance, cost-saving, and other scenarios. Stopping an instance will retain all configurations and data but release the compute resources.

Prerequisites

Stopping an instance requires the instance to be in Processing, Running, Abnormal, or Unknown status.

Starting an instance requires the instance to be in Stopping or Stopped status.

Notes

To ensure data safety, it is recommended to perform a full backup before stopping the instance.

  1. Stopping an instance will terminate all database connections.
  2. PVC containing MySQL data will be retained.
  3. After restarting, it is necessary to verify the completeness of the MGR topology.

Procedure

CLI
Web Console

Stop Instance

kubectl patch mysql ${name} -n ${namespace} --type='merge' -p '{"spec":{"pause":true}}'

Start Instance

kubectl patch mysql ${name} -n ${namespace} --type='merge' -p '{"spec":{"pause":false}}'