OCF_HEARTBEAT_GCP-I(7)
π
OCF_HEARTBEAT_GCP-I(7) β ocf_heartbeat_gcp-ilb β¨
okay so bestie, welcome to the manual page for ocf_heartbeat_gcp-ilb (yes that's the page OCF_HEARTBEAT_GCP-I(7), we're living in the resource-agents cinematic universe rn π¬). Buckle up, it's giving "small agent, big responsibilities." π«Ά
πΈ NAME πΈ
ocf_heartbeat_gcp-ilb β replies to health checks from Google Cloud π
β SYNOPSIS β
gcp-ilb [start | stop | monitor | meta-data | validate-all]
that's it. that's the whole vibe check. π¦
π DESCRIPTION π
so this Resource Agent is basically a little wrapper around /usr/bin/nc or /usr/bin/socat, and its whole job β its main character energy, if you will β is replying to health checks in Google Cloud. π₯
if you want the lore, the official docs live at https://cloud.google.com/load-balancing/docs/health-checks β go read, iykyk. π
β¨ SUPPORTED PARAMETERS β¨
portβ the listening port for health-check probes. default is60000. πͺ
(optional, string, default "60000")
catβ where the netcat binary lives (default:/usr/bin/nc) or where socat lives (default:/usr/bin/socat). if it's present,/usr/bin/socatis used. the recommended binary is socat, and it ships in the following minimum versions if you've got the packageresource-agents:- SLES 12 SP4/SP5:
resource-agents-4.3.018.a7fb5035-3.30.1. - SLES 15/15 SP1:
resource-agents-4.3.0184.6ee15eb2-4.13.1.
- SLES 12 SP4/SP5:
(optional, string, default "nc") π
log_enableβ turns on logging with an external application (accepts"true"or"false"). the defaults are set up to callgcloud logging(peep https://cloud.google.com/sdk/gcloud/reference/logging). π
(optional, string, default "false")
log_cmdβ the external logging command. the defaults are configured to callgcloud logging(see https://cloud.google.com/sdk/gcloud/reference/logging). this parameter should only hold the binary that can actually be validated (e.g.,gcloud). the rest of the command gets built from the extra parameters plus the message being logged, like this:
log_cmd + log_params + "The message being logged" + log_end_params
using the gcloud command for Stackdriver logging, the params would be:
log_cmd=gcloudlog_params=logging write GCPILB"This is a message being sent by the app"log_end_params= (nothing in this case, it's reserved for use with other tools)
which results in this valid command (where GCPILB is the name of the log):
gcloud logging write GCPILB "This is a message being sent by the app"
β οΈ NOTE: only the binary is validated β just for existence, no further checks, none, zero. the assumption here is that only administrators with root access can configure this tool, so likeβ¦ be responsible bestie. π
(optional, string, default "gcloud")
log_paramsβ extra input for the logging application. see the explanation forlog_cmdabove. π«
(optional, string, default "logging write GCPILB")
log_end_paramsβ more extra input for the logging application. this one gets placed after the message being logged. π¬
(optional, string, no default)
π SUPPORTED ACTIONS π
this resource agent supports the following actions (operations), bestie:
startβ starts the resource. suggested minimum timeout:10s. πstopβ stops the resource. suggested minimum timeout:30s. πmonitorβ performs a detailed status check. suggested minimum timeout:30s. suggested interval:30s. πvalidate-allβ performs a validation of the resource configuration. suggested minimum timeout:5s. βmeta-dataβ retrieves resource agent metadata (internal use only, don't worry about it). suggested minimum timeout:5s. ποΈ
π EXAMPLE CRM SHELL π
here's an example config for a gcp-ilb resource using the crm(8) shell β copy-paste responsibly:
primitive p_gcp-ilb ocf:heartbeat:gcp-ilb \
op monitor depth="0" timeout="30s" interval="30s"
π¦ EXAMPLE PCS π¦
and here's the same energy for a gcp-ilb resource using pcs(8):
pcs resource create p_gcp-ilb ocf:heartbeat:gcp-ilb \
op monitor OCF_CHECK_LEVEL="0" timeout="30s" interval="30s"
π SEE ALSO π
- http://clusterlabs.org/ β go say hi to the clusterlabs girlies π
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors) β legends, every single one. π«Ά
okay that's the whole page, you ate that honestly. π
resource-agents UNKNOWN Β· 10/01/2026 Β· page OCF_HEARTBEAT_GCP-I(7) β mwah, bookmark it, screenshot it, put it on your fridge π β¨π
π¦ 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