OCF_HEARTBEAT_SPHINX(7)

✨ OCF_HEARTBEAT_SPHINX(7) ✨

okay bestie, welcome to the OCF resource agents section of the man pages πŸ’– this one's about OCF_HEARTBEAT_SPHINX β€” and no, it's not about pyramids or riddle-guarding cats, it's about the Sphinx search daemon. sit with me, we're gonna get you fluent fr fr πŸ¦‹


πŸŽ€ NAME πŸŽ€

ocf_heartbeat_SphinxSearchDaemon β€” she manages the Sphinx search daemon. that's the whole job description and she does it flawlessly, periodt πŸ’…


🌸 SYNOPSIS 🌸

SphinxSearchDaemon [start | stop | monitor | meta-data | validate-all]

look at her. five little actions. so demure, so mindful πŸŽ€


πŸ’– DESCRIPTION πŸ’–

okay so real talk: this is a searchd Resource Agent. its whole entire vibe is managing the Sphinx Search Daemon. that's it, that's the arc, and honestly? iconic. πŸ‘‘


✨ SUPPORTED PARAMETERS ✨

these are the little knobs you can turn. every single one of them matters, don't skip any 🫢

  • config β€” the searchd configuration file. this one is unique (only one of her, she's the main character), it's optional, it's a string, and the default is "/etc/sphinx/sphinx.conf".
  • searchd β€” the searchd binary itself. optional, a string, default "/usr/local/bin/searchd".
  • search β€” the Search binary, used for functional testing in the monitor action. optional, a string, default "/usr/local/bin/search".
  • testQuery β€” the test query for functional testing in the monitor action. and listen, this query does not need to match any documents in the index β€” like, zero matches is fine, she's not here to be popular. the whole point is just to test whether the search daemon is able to query its indices and respond properly. optional, a string, default "Heartbeat_Monitor_Query_Match_string".

πŸ’… SUPPORTED ACTIONS πŸ’…

this resource agent supports the following actions (operations). each one comes with a suggested minimum timeout, so take notes πŸ“

  • start β€” starts the resource. suggested minimum timeout: 20s.
  • stop β€” stops the resource. suggested minimum timeout: 20s.
  • monitor β€” performs a detailed status check. suggested minimum timeout: 20s. suggested interval: 10s. she's the nosy friend who checks in constantly and honestly we love her for it πŸ”
  • meta-data β€” retrieves resource agent metadata (internal use only). suggested minimum timeout: 5s.
  • validate-all β€” performs a validation of the resource configuration. suggested minimum timeout: 20s.

🌈 EXAMPLE CRM SHELL 🌈

here's what it looks like to set up a SphinxSearchDaemon resource using the crm(8) shell β€” copy it, don't freestyle it bestie:

primitive p_SphinxSearchDaemon ocf:heartbeat:SphinxSearchDaemon \
  op monitor timeout="20s" interval="10s" depth="0"

πŸ¦‹ EXAMPLE PCS πŸ¦‹

and here's the same energy but using pcs(8):

pcs resource create p_SphinxSearchDaemon ocf:heartbeat:SphinxSearchDaemon \
  op monitor timeout="20s" interval="10s" OCF_CHECK_LEVEL="0"

two ways, same slay πŸ’–


⭐ SEE ALSO ⭐

go touch some grass and also read this:


πŸ‘‘ AUTHOR πŸ‘‘

ClusterLabs contributors (see the resource agent source for information about individual authors). a whole team of legends, no cap πŸ™Œ


heads up bestie: this page ships with resource-agents version UNKNOWN, dated 04/08/2026, and it lives at OCF_HEARTBEAT_SPHINX(7). mwah, go forth and daemon responsibly πŸ’‹βœ¨
πŸ“¦ where this page comes from