Skip to content

Commit cd068b1

Browse files
Merge pull request #269028 from SudheeshGH/docs-editor/concepts-high-availability-1710385968
Update concepts-high-availability.md
2 parents c67ce58 + 09ed4a4 commit cd068b1

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

articles/mysql/flexible-server/concepts-high-availability.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You can choose the availability zone for the primary and the standby replica. Pl
2929

3030
:::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.":::
3131

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.
3333

3434
If there's a failover:
3535
- The standby replica is activated.
@@ -51,7 +51,7 @@ The standby server offers infrastructure redundancy with a separate virtual mach
5151

5252
:::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.":::
5353

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.
5555

5656
If there's a failover:
5757
- The standby replica is activated.
@@ -65,9 +65,9 @@ Automatic backups, both snapshots and log backups, are performed on locally redu
6565

6666
> [!NOTE]
6767
> 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.
7171

7272
## Failover process
7373

@@ -106,15 +106,23 @@ The health monitor component continuously does the following checks
106106
> 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.
107107
108108
## 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.
110110

111111
| **Status** | **Description** |
112112
| :----- | :------ |
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.|
115115
| **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.|
118126

119127
## Limitations
120128

0 commit comments

Comments
 (0)