OCF_HEARTBEAT_AZURE-EVENTS-AZ(7)

πŸ’– ocf_heartbeat_azure-events-az β€” like, the Azure Scheduled Events monitor 🫢

okay bestie, welcome to the OCF_HEARTBEAT_AZURE() manual page ✨ this one is a resource agent for Pacemaker, and it's genuinely iconic β€” it watches Microsoft Azure for scheduled maintenance events and yeets your resources out of harm's way before Azure does its thing. no cap.


✨ NAME ✨

ocf_heartbeat_azure-events-az β€” the Microsoft Azure Scheduled Events monitoring agent πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

azure-events-az [start | stop | monitor | meta-data | validate-all]

🌸 DESCRIPTION 🌸

so this resource agent? it literally implements a monitor for scheduled (maintenance) events on a Microsoft Azure VM. main character energy fr.

if any relevant events are found, it moves all Pacemaker resources away from the affected node so everything can shut down gracefully. it's giving "protective bestie" 🫢

πŸŽ€ Deployment πŸŽ€

okay so here's the whole deployment vibe, step by step.

Step 1 β€” set the property and the location constraint:

crm configure property node-health-strategy=custom
crm configure location loc_azure_health /'!health-.*'/ rule '#health-azure': defined '#uname'

Step 2 β€” set the #health-azure attribute to 0 (healthy) for every node in the cluster (this example shows node1 only, don't come for me):

crm_attribute --node node1 --name '#health-azure' --update 0

Step 3 β€” configure the RA:

crm configure primitive health-azure-events ocf:heartbeat:azure-events-az params eventTypes="Reboot,Redeploy" verbose=false retry_count=3 retry_wait=20 request_timeout=15 op start start-delay=60s op monitor interval=10s meta failure-timeout=120s
crm configure clone health-azure-events-cln health-azure-events meta allow-unhealthy-nodes=true
for further information on Microsoft Azure Scheduled Events, the original page points you here β€” go read it, iykyk: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/scheduled-events ⭐

πŸ’… SUPPORTED PARAMETERS πŸ’…

  • eventTypes β€” a comma-separated list of event types that this resource agent will handle. possible values are Freeze,Reboot,Redeploy. (optional, string, default "Reboot,Redeploy")
  • verbose β€” set this to true to enable verbose logging. (optional, boolean, default false)
  • retry_count β€” set this to any number bigger than zero to enable retry count. (optional, integer, default 3)
  • retry_wait β€” sets the retry wait time, in seconds. (optional, integer, default 20)
  • request_timeout β€” sets the request timeout, in seconds. (optional, integer, default 15)

πŸ”₯ SUPPORTED ACTIONS πŸ”₯

this resource agent supports the following actions (operations), periodt:

  • start β€” starts the resource. suggested minimum timeout: 10s.
  • stop β€” stops the resource. suggested minimum timeout: 10s.
  • validate-all β€” performs a validation of the resource configuration. suggested minimum timeout: 20s.
  • monitor β€” performs a detailed status check. suggested minimum timeout: 240s. suggested interval: 10s.
  • meta-data β€” retrieves resource agent metadata (internal use only πŸ™ˆ). suggested minimum timeout: 10s.

🧚 EXAMPLE CRM SHELL 🧚

here's an example config for an azure-events-az resource using the crm(8) shell β€” copy it, it's cute:

primitive p_azure-events-az ocf:heartbeat:azure-events-az \
  op monitor timeout="240s" interval="10s"

🌈 EXAMPLE PCS 🌈

and here's the same vibe for a azure-events-az resource using pcs(8):

pcs resource create p_azure-events-az ocf:heartbeat:azure-events-az \
  op monitor timeout="240s" interval="10s"

⭐ SEE ALSO ⭐


πŸ‘‘ AUTHOR πŸ‘‘

ClusterLabs contributors (see the resource agent source for information about individual authors)


okay that's the whole page, bestie πŸ’– this was the OCF_HEARTBEAT_AZURE() manual page β€” that's the source/version line right there at the bottom, and go off, you're basically an Azure monitoring queen now. slay πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from