OCF_HEARTBEAT_MEDIAT(7)
π ocf_heartbeat_mediationzone(7) β the MediationZone pico resource agent, explained by your favorite cluster bestie π«Ά
okay so. bestie. listen. this is the manual page for ocf_heartbeat_mediationzone, and it lives in the OCF resource agents section of the manual. it's giving "niche but powerful" and honestly? we're obsessed. π
It's a resource agent β the little helper that teaches Pacemaker how to babysit a MediationZone thing. Let's get into it. β¨
πΈ NAME πΈ
ocf_heartbeat_mediationzone β literally just here to manage a MediationZone pico process. that's it, that's the job. π
β¨ SYNOPSIS β¨
mediationzone [start | stop | monitor | meta-data | validate-all]
those are your moves, bestie. pick one. π¦
π DESCRIPTION π
so the mediationzone resource agent manages MediationZone pico processes β and MediationZone is by DigitalRoute, for the record β as active/passive cluster resources. iconic behavior honestly. π
One resource per pico. one pico, one resource, no sharing, we don't do that here. π ββοΈ
The order matters, okay? The platform VIP has to start first, then the platform container, and then any other containers (ui, ec, etc.). it's a whole lineup. think of it as the main character arriving before the entourage. π«
Now the important part β set <yellow>meta priority=100</yellow> on the platform resource. Why? Because the platform is the most critical pico β literally every other pico depends on it. π So in a split-brain situation, Pacemaker fences the lower-priority node first, which means the platform node survives. slay. protective. π‘οΈ
β οΈ but bestie, heads up: the cluster property priority-fencing-delay must be greater than 0 for this to actually take effect. if it's 0, none of that protection kicks in. no cap. π
π SUPPORTED PARAMETERS π
these are the knobs you get to turn. turn them responsibly. ποΈ
os_userβ the OS user that owns the MediationZone installation and runs themzshcommands. this is optional, it's a string, and it defaults to"mzadmin". π€mz_homeβ path to the MediationZone installation directory. it gets passed tomzshasMZ_HOME, andmzshis expected to be sitting atMZ_HOME/bin/mzsh. optional, string, default"/opt/mz". πjava_homeβ path to the JDK or JRE that MediationZone uses. optional, string, default"/usr/lib/jvm/java-17-openjdk". βpico_nameβ the name of the MediationZone pico you want to manage. the known names with default ports areplatform(port9000) andui(port9001). for any other pico name + port combo, you gotta setpico_portexplicitly. optional, string, default"platform". π·οΈpico_portβ the port the pico web server listens on. it's used to clear TIME-WAIT connections before startup (yes, really, that's a thing π« ). it defaults to9000forplatformand9001forui. you must set it explicitly when you're managing a different pico type, or when the default port has been changed in the container configuration. optional, integer, no default. πmzsh_timeoutβ the max time in seconds to wait for a singlemzshcall (that'sstatus,shutdown,kill, and the pre-startkillthat runs before startup). must be 10 or higher. and here's the tea: the stop action chainsshutdownthenkillon failure, so worst-case stop time is 2 Γmzsh_timeout. ifmzsh_timeoutis too short, bothshutdownandkilltime out and the stop action fails β and then Pacemaker fences the node to recover. π also, set the stop operation timeout on the cluster resource to at least 2 Γmzsh_timeout+ 60s. optional, integer, default30. β±οΈmonitor_retriesβ how many times the monitor action retriesmzsh statusafter an initial failure before reporting the pico as not running or failed. this applies only to the monitor action β start and stop are not affected, okay? a value of0disables retries. bump it up if transient status failures are causing unwanted restarts in your environment. must be 0 or higher. optional, integer, default1. π
π SUPPORTED ACTIONS π
this resource agent supports the following actions (operations), and yes, each one has a suggested minimum timeout so you don't leave it hanging: β³
startβ starts the resource. suggested minimum timeout: 360s. πstopβ stops the resource. suggested minimum timeout: 360s. πmonitorβ performs a detailed status check. suggested minimum timeout: 90s, suggested interval: 60s. πvalidate-allβ performs a validation of the resource configuration. suggested minimum timeout: 30s. βmeta-dataβ retrieves resource agent metadata (internal use only). suggested minimum timeout: 5s. ποΈmethodsβ suggested minimum timeout: 5s. π§ͺusageβ suggested minimum timeout: 5s. π
π§ EXAMPLE CRM SHELL π§
here's an example config for a mediationzone resource using the crm(8) shell. steal it, it's cute:
primitive p_mediationzone ocf:heartbeat:mediationzone \
op monitor timeout="90s" interval="60s"
π EXAMPLE PCS π
and here's the same vibe but for pcs(8):
pcs resource create p_mediationzone ocf:heartbeat:mediationzone \
op monitor timeout="90s" interval="60s"
π¦ SEE ALSO π¦
- http://clusterlabs.org/ β go look, it's the clusterlabs home base π
π AUTHOR π
ClusterLabs contributors β and if you want to know about individual authors, go check the resource agent source, it's all in there. π«Ά
and that's the page!! π version resource-agents UNKNOWN, dated 10/01/2026 β mwah, sending you cluster-safe kisses, go forth and keep that platform pico alive πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms