Skip to content

Commit 84d1017

Browse files
Merge pull request #300211 from rdeltcheva/az-events-az-upd
Expand azure-events-az explanation
2 parents 6b2e6f7 + 59a9bf2 commit 84d1017

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

articles/sap/workloads/get-started.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ In the SAP workload documentation space, you can find the following areas:
5555

5656
## Change Log
5757

58+
- May 21, 2025: Change in [Set up Pacemaker on RHEL in Azure](./high-availability-guide-rhel-pacemaker.md) and [Set up Pacemaker on SLES in Azure](./high-availability-guide-suse-pacemaker.md) to expand the explanation how azure-events-az works.
5859
- April 29, 2025: Updated the ENSA2 order constraint in the RHEL pacemaker setup in [High availability for SAP NetWeaver on VMs on RHEL with NFS on Azure Files](./high-availability-guide-rhel-nfs-azure-files.md), [Azure Virtual Machines HA for SAP NetWeaver on RHEL with Azure NetApp Files for SAP applications](./high-availability-guide-rhel-netapp-files.md), [Azure Virtual Machines high availability for SAP NetWeaver on Red Hat Enterprise Linux](./high-availability-guide-rhel.md), and [High availability for SAP NetWeaver on Azure VMs on Red Hat Enterprise Linux for SAP applications multi-SID](./high-availability-guide-rhel-multi-sid.md).
5960
- April 9, 2025: Add timeout and fail action to IP resource configuration for SAP HANA in [High availability for SAP HANA on Azure VMs on SUSE Linux Enterprise Server](./sap-hana-high-availability.md) and [High availability for SAP HANA scale-out system with HSR on SUSE Linux Enterprise Server](./sap-hana-high-availability-scale-out-hsr-suse.md)
6061
- March 31, 2025: Updated Azure NetApp Files Application Volume Group guidelines for SAP HANA in [FAQs for Virtual Machine Scale Set for SAP workload](./virtual-machine-scale-set-sap-faq.md)

articles/sap/workloads/high-availability-guide-rhel-pacemaker.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,11 +907,13 @@ The monitoring and fencing operations are deserialized. As a result, if there's
907907

908908
## Configure Pacemaker for Azure scheduled events
909909

910-
Azure offers [scheduled events](/azure/virtual-machines/linux/scheduled-events). Scheduled events are sent via the metadata service and allow time for the application to prepare for such events.
910+
Azure offers [scheduled events](/azure/virtual-machines/linux/scheduled-events). Scheduled events are provided via the metadata service and allow time for the application to prepare for such events.
911911

912-
The Pacemaker resource agent `azure-events-az` monitors for scheduled Azure events. If events are detected and the resource agent determines that another cluster node is available, it sets a cluster health attribute.
912+
Resource agent [azure-events-az](https://github.com/ClusterLabs/resource-agents/pull/1161) monitors for scheduled Azure events. If events are detected and the resource agent determines that another cluster node is available, it sets a node-level health attribute `#health-azure` to `-1000000`.
913913

914-
When the cluster health attribute is set for a node, the location constraint triggers and all resources with names that don't start with `health-` are migrated away from the node with the scheduled event. After the affected cluster node is free of running cluster resources, the scheduled event is acknowledged and can execute its action, such as a restart.
914+
When this special cluster health attribute is set for a node, the node is considered unhealthy by the cluster and all resources are migrated away from the affected node. The location constraint ensures resources with name starting with ‘health-‘ are excluded, as the agent needs to run in this unhealthy state. Once the affected cluster node is free of running cluster resources, scheduled event can execute its action, such as restart, without risk to running resources.
915+
916+
The `#heath-azure` attribute is set back to `0` on pacemaker startup once all events have been processed, marking the node as healthy again.
915917

916918
1. **[A]** Make sure that the package for the `azure-events-az` agent is already installed and up to date.
917919

articles/sap/workloads/high-availability-guide-suse-pacemaker.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: sap-on-azure
88
ms.subservice: sap-vm-workloads
99
ms.topic: article
1010
ms.custom: devx-track-azurepowershell, linux-related-content
11-
ms.date: 08/26/2024
11+
ms.date: 05/21/2025
1212
ms.author: radeltch
1313
---
1414

@@ -1000,7 +1000,13 @@ sudo crm configure property stonith-timeout=900
10001000
10011001
## Configure Pacemaker for Azure scheduled events
10021002
1003-
Azure offers [scheduled events](/azure/virtual-machines/linux/scheduled-events). Scheduled events are provided via the metadata service and allow time for the application to prepare for such events. Resource agent [azure-events-az](https://github.com/ClusterLabs/resource-agents/pull/1161) monitors for scheduled Azure events. If events are detected and the resource agent determines that another cluster node is available, it sets a cluster health attribute. When the cluster health attribute is set for a node, the location constraint triggers and all resources, whose name doesn't start with "health-" are migrated away from the node with scheduled event. Once the affected cluster node is free of running cluster resources, scheduled event is acknowledged and can execute its action, such as restart.
1003+
Azure offers [scheduled events](/azure/virtual-machines/linux/scheduled-events). Scheduled events are provided via the metadata service and allow time for the application to prepare for such events.
1004+
1005+
Resource agent [azure-events-az](https://github.com/ClusterLabs/resource-agents/pull/1161) monitors for scheduled Azure events. If events are detected and the resource agent determines that another cluster node is available, it sets a node-level health attribute `#health-azure` to `-1000000`.
1006+
1007+
When this special cluster health attribute is set for a node, the node is considered unhealthy by the cluster and all resources are migrated away from the affected node. The location constraint ensures resources with name starting with ‘health-‘ are excluded, as the agent needs to run in this unhealthy state. Once the affected cluster node is free of running cluster resources, scheduled event can execute its action, such as restart, without risk to running resources.
1008+
1009+
The `#heath-azure` attribute is set back to `0` on pacemaker startup once all events have been processed, marking the node as healthy again.
10041010
10051011
> [!IMPORTANT]
10061012
> Previously, this document described the use of resource agent [azure-events](https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/azure-events.in). New resource agent [azure-events-az](https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/azure-events-az.in) fully supports Azure environments deployed in different availability zones.

0 commit comments

Comments
 (0)