VOTEQ...ECTED(3)

✨ VOTEQUORUM_SETEXPECTED β€” the manual page bestie πŸ’–

okay so this is votequorum_setexpected(3) from the Corosync Cluster Engine Programmer's Manual, and yes it's a mouthful but we're gonna get through it together, hand in hand 🫢


πŸŽ€ NAME πŸŽ€

votequorum_setexpected β€” Sets the expected votes for the cluster

like. that's the whole job. it sets the expected votes. iconic honestly.


🌸 SYNOPSIS 🌸

#include <corosync/votequorum.h>

int votequorum_setexpected(votequorum_handle_t handle, int
expected_votes);

two args, one int return, no drama. we love a low-maintenance function πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the votequorum_setexpected function is literally there to change the expected votes in the cluster. that's it. that's the gig.

and why do we care about expected votes? because bestie, expected votes is what gets used to calculate quorum πŸ”₯ and normally it should be the total number of votes that will exist when all the expected nodes are joined. like, the full squad. everybody in the group chat.

and quorum? usually half of this (rounded up). math girlies rise πŸ™ˆ

πŸ’€ BUT β€” and this is the important part β€” it is not possible to set expected votes up so that it makes the cluster inquorate using this command. so you can't accidentally ghost your own cluster into oblivion with this one. she's safe. she's protected. periodt.

πŸ‘‘ RETURN VALUE πŸ‘‘

this call returns the CS_OK value if it went well πŸ’š otherwise an error comes back to ruin the vibe.


πŸ’œ ERRORS πŸ’œ

the full roster of ways this can go sideways, no cap:

  • CS_ERR_TRY_AGAIN β€” Resource temporarily unavailable. she's busy, try again later ✨
  • CS_ERR_INVALID_PARAM β€” Invalid argument. you gave her something she cannot work with 😭
  • CS_ERR_ACCESS β€” Permission denied. not your lane, bestie 🚫
  • CS_ERR_LIBRARY β€” The connection failed. it's giving disconnected πŸ’€
  • CS_ERR_INTERRUPT β€” System call interrupted by a signal. rude of the signal honestly πŸ™ˆ
  • CS_ERR_NOT_SUPPORTED β€” The requested protocol/functionality not supported. not in her repertoire πŸŽ€
  • CS_ERR_MESSAGE_ERROR β€” Incorrect auth message received. who even are you 🌸
  • CS_ERR_NO_MEMORY β€” Not enough memory to complete the requested task. she's full, no more room πŸ₯Ί

🌈 SEE ALSO 🌈

the whole friend group, go say hi:


and that's the whole page bestie, you ate that πŸ’…βœ¨

this was brought to you by the corosync Man Page, dated 2026-09-04 β€” mwah, love u, go set some expected votes responsibly πŸ«ΆπŸ’–

πŸ“¦ where this page comes from