AlwaysOn Policies for Operational Issues with AlwaysOn Availability Groups (SQL Server)
The AlwaysOn Availability Groups health model evaluates a set of predefined policy based management (PBM) policies. You can use theses for viewing the health of an availability group and its availability replicas and databases in SQL Server 2012.
In this Topic:
The following table summarizes the predefined policies.
|
Policy name |
Issue |
Category* |
Facet |
|---|---|---|---|
|
WSFC Cluster State |
Critical |
Instance of SQL Server |
|
|
Availability Group Online State |
Critical |
Availability group |
|
|
Availability Group Automatic Failover Readiness |
Critical |
Availability group |
|
|
Availability Replicas Data Synchronization State |
Warning |
Availability group |
|
|
Synchronous Replicas Data Synchronization State |
Warning |
Availability group |
|
|
Availability Replicas Role State |
Warning |
Availability group |
|
|
Availability Replicas Connection State |
Warning |
Availability group |
|
|
Availability Replica Role State |
Critical |
Availability replica |
|
|
Availability Replica Connection State |
Critical |
Availability replica |
|
|
Availability Replica Join State |
Warning |
Availability replica |
|
|
Availability Replica Data Synchronization State |
Data synchronization state of some availability database is not healthy . |
Warning |
Availability replica |
|
Availability Database Suspension State |
Warning |
Availability database |
|
|
Availability Database Join State |
Warning |
Availability database |
|
|
Availability Database Data Synchronization State |
Data synchronization state of availability database is not healthy . |
Warning |
Availability database |
Important
|
|---|
|
* For AlwaysOn policies, the category names are used as IDs. Changing the name of an AlwaysOn category would break its health-evaluation functionality. Therefore, do not modify the names of AlwaysOn categories. |
The AlwaysOn Dashboard gives you an at-a-glance view of the health of an availability group. The AlwaysOn Dashboard includes the following features:
-
Enables you to easily display details about a given availability group, its availability replicas, and its databases.
-
Displays visual indications of key states to help database administrators make quick operational decisions.
-
Provides launch points for troubleshooting scenarios.
-
For a given operational issue, populates the Policy Evaluation Result dialog box with information about specific AlwaysOn health policy violations and with links to remediation help.
-
Provides an health extended event viewer to show previous events for AlwaysOn-specific issues.
-
If failing over the availability group is a possible remediation for an issue, provides a launch point for the links Fail Over Availability Group Wizard. This wizard takes a database administrator through the manual failover process.
Extending the AlwaysOn Availability Groups health model is simply a matter of creating your own user-defined policies and putting them into certain categories based on the type of object that you are monitoring. After you a alter few settings, the AlwaysOn dashboard will automatically evaluate your own user-defined policies, as well as the AlwaysOn predefined policies.
A user-defined policy can use any of the available PBM facets, including those used by the AlwaysOn predefined policies (see Predefined Policies and Issues, earlier in this topic). The Server facet provides the following properties for monitoring AlwaysOn Availability Groups health: (IsHadrEnabled and HadrManagerStatus). The Server facet also provides properties the following policies for monitoring the WSFC cluster configuration: ClusterQuorumType, and ClusterQuorumState.
For more information, see The AlwaysOn Health Model Part 2 -- Extending the Health Model (a SQL Server AlwaysOn Team blog).