Health state


Job details

Name: Health state
Platform: Sqlserver
Category: Cluster and Replication
Description: Checks groups health state.
Long description: Checks groups health state.
Version: 1.2
Default schedule: 1,6,11,16,21,26,31,36,41,46,51,56 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[ maj_version > ‘2005′ & hasengine=‘YES’ & alwayson_active=‘YES’ & engine_edition = ‘Microsoft SQL Server’ & eng_inst_priv = 0]

Parameters

Name Default value Description
ignore groups List of alwayson groups (separated by comma) which will be ignored. You can use % (percent sign) to represent wild card characters.

Job Summary

SELECT group_name, db_name, health_state, reason, replica_server_name, hist_date FROM dbw_alwayson_health_states_tab;

Technical Description

Dependencies

Scheduled Execution

Execution Environment

Output and Presentation

Group Name Database Name Health State Reason Date
Group 1 DB1 HEALTHY No issues 2023-01-01 00:00:00
Group 2 DB2 NOT HEALTHY Synchronization lag 2023-01-01 00:05:00

Upgrades and Maintenance

Additional Considerations

Overall, “ms_health_states_job” is an essential component in a robust SQL Server maintenance plan, facilitating high availability and ease of maintenance by monitoring the health states of critical server components.