You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/mysql/flexible-server/concepts-high-availability.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ You can choose the availability zone for the primary and the standby replica. Pl
29
29
30
30
:::image type="content" source="./media/concepts-high-availability/1-flexible-server-overview-zone-redundant-ha.png" alt-text="Diagram that shows the architecture for zone-redundant high availability.":::
31
31
32
-
The data and log files are hosted in [zone-redundant storage (ZRS)](../../storage/common/storage-redundancy.md#redundancy-in-the-primary-region). The log files are replicated to the standby server via the storage-level replication available with ZRS and applied to stand by server continuously.
32
+
The data and log files are hosted in [zone-redundant storage (ZRS)](../../storage/common/storage-redundancy.md#redundancy-in-the-primary-region). The standby server reads and replay the log files continuously from the primary server’s storage account, which is protected by storage-level replication.
33
33
34
34
If there's a failover:
35
35
- The standby replica is activated.
@@ -51,7 +51,7 @@ The standby server offers infrastructure redundancy with a separate virtual mach
51
51
52
52
:::image type="content" source="./media/concepts-high-availability/flexible-server-overview-same-zone-ha.png" alt-text="Diagram that shows the architecture for same-zone high availability.":::
53
53
54
-
The data and log files are hosted in [locally redundant storage (LRS)](../../storage/common/storage-redundancy.md#locally-redundant-storage). The log files are replicated to the standby server via the storage-level replication available with LRS and applied to stand by server continuously.
54
+
The data and log files are hosted in [locally redundant storage (LRS)](../../storage/common/storage-redundancy.md#locally-redundant-storage). The standby server reads and replay the log files continuously from the primary server’s storage account, which is protected by storage-level replication.
55
55
56
56
If there's a failover:
57
57
- The standby replica is activated.
@@ -65,9 +65,9 @@ Automatic backups, both snapshots and log backups, are performed on locally redu
65
65
66
66
> [!NOTE]
67
67
> For both zone-redundant and same-zone HA:
68
-
> - If there's a failure, the time needed for the standby replica to take over the role of primary depends on the binary log application on the standby. So we recommend that you use primary keys on all tables to reduce failover time. Failover times are typically between 60 and 120 seconds.
69
-
> - The standby server isn't available for read or write operations. It's a passive standby to enable fast failover.
70
-
> - Always use a fully qualified domain name (FQDN) to connect to your primary server. Avoid using an IP address to connect. If there's a failover, after the primary and standby server roles are switched, a DNS A record might change. That change would prevent the application from connecting to the new primary server if an IP address is used in the connection string.
68
+
> - If there's a failure, the time needed for the standby replica to take over the role of primary depends on the time it takes to replay of binary log from the primary storage account on the standby. So we recommend that you use primary keys on all tables to reduce failover time. Failover times are typically between 60 and 120 seconds.
69
+
- The standby server isn't available for read or write operations. It's a passive standby to enable fast failover.
70
+
- Always use a fully qualified domain name (FQDN) to connect to your primary server. Avoid using an IP address to connect. If there's a failover, after the primary and standby server roles are switched, a DNS A record might change. That change would prevent the application from connecting to the new primary server if an IP address is used in the connection string.
71
71
72
72
## Failover process
73
73
@@ -106,15 +106,23 @@ The health monitor component continuously does the following checks
106
106
> If there are any networking issue between the application and the customer networking endpoint (Private/Public access), either in networking path , on the endpoint or DNS issues in client side, the health check does not monitor this scenario. If you are using private access, make sure that the NSG rules for the VNet does not block the communication to the instance customer networking endpoint on port 3306. For public access make sure that the firewall rules are set and network traffic is allowed on port 3306 (if network path has any other firewalls). The DNS resolution from the client application side also needs to be taken care of.
107
107
108
108
## Monitoring for high availability
109
-
The health of your HA is continuously monitored and reported on the overview page. Here are the replication statuses:
109
+
The **High Availability Status** located in the server’s *High Availability* pane in portal can be used to determine the server’s HA status.
110
110
111
111
|**Status**|**Description**|
112
112
| :----- | :------ |
113
-
|**NotEnabled**|Zone-redundant HA isn't enabled. |
114
-
|**ReplicatingData**| The standby is catching up with the primary server after being created. |
113
+
|**NotEnabled**| HA isn't enabled. |
114
+
|**ReplicatingData**|Standby server is in the process of synchronizing with the primary server at the time of HA server provisioning or when HA option is enabled.|
115
115
|**FailingOver**| The database server is in the process of failing over from the primary to the standby. |
116
-
|**Healthy**| Zone-redundant HA is in a steady state and is healthy. |
117
-
|**RemovingStandby**| A user has deleted the standby replica, and deletion is in process.|
116
+
|**Healthy**| HA option is enabled. |
117
+
|**RemovingStandby**| When the HA option is disabled, and the deletion process is underway.|
118
+
119
+
You can also use the below metrics to monitor the health of the HA server.
120
+
121
+
|Metric display name|Metric|Unit|Description|
122
+
| -------- | -------- | -------- | -------- |
123
+
|HA IO Status|ha_io_running|State|HA IO Status indicates the state of HA replication. Metric value is 1 if the I/O thread is running and 0 if not.|
124
+
|HA SQL Status|ha_sql_running|State|HA SQL Status indicates the state of HA replication. Metric value is 1 if the SQL thread is running and 0 if not.|
125
+
|HA Replication Lag|replication_lag|Seconds|Replication lag is the number of seconds the standby is behind in replaying the transactions received at the primary server.|
0 commit comments