Updated on 2024-05-30 GMT+08:00

Changing a Maintenance Window

The default maintenance window is 10:00–14:00 but you can change it if needed. To prevent service interruption, set the maintenance window to off-peak hours. Before calling this API:

Precautions

  • This function for setting an maintenance window is still in the open beta test (OBT) phase. To use it, contact customer service.
  • You can configure a maintenance window only for restarting a DB instance, changing an instance class, or upgrading the minor version of a DB instance.
  • The specification change and patch upgrade that have been performed during the maintenance period cannot be performed immediately. The instance can be restarted immediately.
  • You can cancel a task to be executed.
  • Changing the maintenance window will not affect the timing that has already been scheduled.
  • The maintenance window cannot overlap the time window configured for backups. Otherwise, scheduled tasks may fail.
  • During the maintenance window, the scheduled task is scanned and executed every 10 minutes. If the task is delivered near the end of the maintenance period, the task may fail to be scanned and the execution is canceled.

Changing a Maintenance Window

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Mongo API.
  3. On the Instances page, click the instance whose specifications you want to change. The Basic Information page is displayed.
  4. On the DB Information page, locate Maintenance Window and click Change.

    Figure 1 Changing the maintenance time window

  5. On the Change Maintainable Window page, select the maintenance time period as needed, and then click OK.

    Supported time periods: 02:00-06:00, 06:00-10:00, 10:00-14:00, 14:00-18:00, 18:00-22:00, and 22:00-02:00
    Figure 2 Changing a maintenance window

  6. Check the result.

    On the DB Information page, you can view the changed maintenance window.

Canceling a Scheduled Task

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Mongo API.
  3. On the Task Center page, locate a scheduled task, and click Cancel in the Operation column.

    Figure 3 Canceling a task

  4. View the result.

    On the Task Center page, you can view the result. After the task is cancelled, its status changes to Cancelled.