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:
votequorum_overview(3)votequorum_initialize(3)votequorum_finalize(3)votequorum_getinfo(3)votequorum_trackstart(3)votequorum_trackstop(3)votequorum_fd_get(3)votequorum_dispatch(3)votequorum_context_set(3)votequorum_context_get(3)votequorum_setvotes(3)
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
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 43: corosynclib-devel 3.1.10-3.fc43 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- fedora 44: corosynclib-devel 3.1.10-6.fc44 Β· BSD-3-Clause
- Copyright (c) 2009,2012 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms