OCF_HEARTBEAT_SQUID(7)
β¨ OCF_HEARTBEAT_SQUID β¨
Bestie, listen up π
β this is the manual page for ocf_heartbeat_Squid, a resource agent (that's "RA" if you're in the club π) that manages a Squid proxy server instance. It's living in the ocf:heartbeat world, so like, cluster vibes only. π¦
π SYNOPSIS π
Here's the whole entire mood of how you call this thing:
Squid [start | stop | status | monitor | meta-data | validate-all]
Yep. Those are your moves. Slay. π
πΈ DESCRIPTION πΈ
Okay so this is the resource agent of Squid β¨ β and what it literally does is manage a Squid instance as an HA (high availability) resource. That's it. That's the whole assignment. It's giving reliable, it's giving cluster-ready, we love to see it. π
π¦ SUPPORTED PARAMETERS π¦
These are the knobs you can turn, bestie. Some are required (aka mandatory, no skipping π«Ά), some are optional. Let's gooo:
squid_exeβ This one is required, no cap. It specifies squid's executable file. Type is string, and there's no default β you gotta hand it over yourself. πsquid_confβ Also required (and unique π). This specifies a configuration file for a squid instance managed by this RA. Type string, no default. You must bring it.squid_optsβ This one's optional. It specifies the start options. Type string, no default. A little extra flavor if you want it. β¨squid_pidfileβ π¨ Deprecated β do not use anymore. For real. It's unique and optional, type string, no default, but like... don't. Respect the deprecation. πsquid_portβ Required and unique! This specifies a port number for a squid instance managed by this RA. Also integer, no default. Key detail: if multiple ports are used, you must specify only one of them. Just one. Pick your fav. πsquid_stop_timeoutβ Optional integer, default is10. Here's the tea: on stop, a squid shutdown is invoked first. If the resource doesn't stop within this timeout, we resort to stopping processes by sending signals and finally KILLing them. π Dramatic but necessary. It's giving tough love.debug_modeβ Optional, type string, no default. This RA runs in debug mode when this parameter includes'x'or'v'. If'x'is included, both of STDOUT and STDERR redirect to the logfile specified by"debug_log", and then the builtin shell option'x'is turned on. It's similar about'v'. π₯ (Yes, it says"syslog_ng_conf"in thedebug_logdescription below β that's how the original rolls, we don't question the icons. π)debug_logβ Optional, type string, no default. This specifies a destination file for debug logs and works only if this RA runs in debug mode. Refer to"debug_mode"about debug mode. And here's the cute little rule: if no value is given but is required, it's constructed according to these rules β"/var/log/"as a directory part, the basename of the configuration file given by"syslog_ng_conf"as a basename part, and".log"as a suffix. Iconic auto-magic. β¨
π SUPPORTED ACTIONS π
This resource agent supports the following actions (operations). Each one comes with its suggested minimum timeout, and some even get a suggested interval. Mark your calendars, bestie ποΈ:
startβ Starts the resource. Suggested minimum timeout:60s. Let's gooo πstopβ Stops the resource. Suggested minimum timeout:120s. Big timeout energy, take your time πstatusβ Performs a status check. Suggested minimum timeout:60s. Just checking in on you, bb π«Άmonitorβ Performs a detailed status check. Suggested minimum timeout:30s. Suggested interval:10s. The main character of health checks πmeta-dataβ Retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s. Don't touch unless you know, iykyk πvalidate-allβ Performs a validation of the resource configuration. Suggested minimum timeout:5s. Self-care check β
π EXAMPLE CRM SHELL π
Okay so here's an example configuration for a Squid resource using the crm(8) shell β copy-paste ready, no cap:
primitive p_Squid ocf:heartbeat:Squid \
params \
squid_exe=string \
squid_conf=string \
squid_port=integer \
op monitor depth="0" timeout="30s" interval="10s"
Look at that formatting. Gorgeous. π
π EXAMPLE PCS π
And here's the same energy but for pcs(8) β different tool, same slay:
pcs resource create p_Squid ocf:heartbeat:Squid \
squid_exe=string \
squid_conf=string \
squid_port=integer \
op monitor OCF_CHECK_LEVEL="0" timeout="30s" interval="10s"
Notice the OCF_CHECK_LEVEL="0" instead of depth="0" β that's the pcs way, bestie. Fr fr. π
β SEE ALSO β
http://clusterlabs.org/β go check it out, it's giving community, it's giving support π«Ά
π AUTHOR π
ClusterLabs contributors β and for the deets on individual authors, see the resource agent source. Respect the contributors, they ate and left no crumbs. ππ₯
A little sign-off for you, bestie: this beauty is fromresource-agents UNKNOWN, dated10/01/2026. Take care of her and she'll take care of your Squid. Mwah. ππ¦β¨
π¦ 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