Alibaba Cloud performs maintenance on ApsaraDB for MongoDB instances at irregular intervals to keep them stable and up to date. A maintenance window defines the time period during which Alibaba Cloud can perform these operations. Set the window to a period when your workload is lightest to minimize disruption to your application.
How it works
When the maintenance window begins, the instance enters the Maintaining Instance state. In this state:
-
Data access and query operations (including performance monitoring) continue normally.
-
Account management, database management, and IP address whitelist configuration remain available.
-
Change operations — upgrade, downgrade, and restart — are temporarily unavailable in the console.
During the window, one or two brief transient connections may occur. The instance returns to its normal state immediately after each transient connection. Make sure your application is configured to reconnect automatically.
Before the maintenance window starts, Alibaba Cloud sends SMS and email notifications to the contacts in your account.
Prerequisites
Before you begin, ensure that you have:
-
An ApsaraDB for MongoDB instance (Replica Set or Sharded Cluster)
-
Access to the ApsaraDB for MongoDB console
Set a maintenance window
-
Log on to the ApsaraDB for MongoDB console.
-
In the navigation pane on the left, click Replica Set Instances or Sharded Cluster Instances based on the instance type.
-
In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances based on your instance type.
-
In the upper-left corner, select the resource group and region where your instance is located.
-
Click the instance ID, or click
in the Actions column and select Manage. -
In the Specification Information section, click Edit next to Maintenance Window.
-
In the drop-down list, select a maintenance window.
NoteThe maintenance window uses the same time zone as the computer you use to access the console.
-
Click OK.
Usage notes
-
Off-peak hours: Set the window during a period when your traffic is low, such as late at night or on weekends, to reduce the impact on your application.
-
Automatic reconnection: Transient connections are expected during maintenance. Verify that your application's connection logic includes retry or reconnection handling before the maintenance window occurs.
-
Notifications: SMS and email alerts are sent before maintenance starts. Make sure the contact information in your Alibaba Cloud account is current so you receive these alerts.