Cluster membership, security & policy

Membership aligned with the OCFS2 stack, security, and the cgroup policy model.

1Key fact that anchors the design

OCFS2 is not a single-node FS. To mount it, every node must already belong to a cluster stack that provides a DLM + membership/heartbeat:

Therefore: "the node has access to the shared FS" ⟺ "the node is a member of the OCFS2 cluster". We should not invent a second, independent membership system — two membership views = split-brain risk. Voltron membership should be derived from / aligned with the OCFS2 cluster membership.

2Control plane vs data plane (important distinction)

3Membership options

Option A — Reuse the OCFS2/Corosync stack (RECOMMENDED)

voltron-ctld (userspace daemon) joins a Corosync CPG (closed process group) and consumes its membership events. Corosync already provides:

On a membership "node up" event we additionally verify FS access and exchange RDMA params over a mTLS side channel, then push the validated node into voltrond.ko.

Option B — Self-contained mTLS control daemon

Our own daemon: cluster CA issues per-node certs; join via short-lived token (kubeadm-style); membership + heartbeat implemented by us.

Option C — WireGuard mesh + light gossip

Encrypted transport via WG; membership via a small gossip/registry.

Recommendation: Option A. Align with the stack OCFS2 already forces us to run. Layer per-node mTLS (cluster CA) on top only for authenticating the RDMA parameter exchange and node admission — this gives us per-node revocation without a second membership system.

4Node join / admission flow (Option A)

  1. Admin authorizes a node: issues it a cert from the cluster CA (or drops its identity into an allowlist). This is the add-node authorization gate.
  2. Node's voltron-ctld starts, joins Corosync CPG → membership event fires.
  3. Peers open an mTLS connection to the newcomer; verify its cert against the cluster CA (authorization).
  4. FS-access admission check (userspace, keeps kernel small): confirm the expected OCFS2 volume (by UUID) is mounted and writable — probe-write a token file under a control dir on the shared FS and read it back from a peer. Fail ⇒ node admitted to membership but marked migration-ineligible.
  5. Exchange RDMA params (GID, QPN, pkey, rkeys) over the mTLS channel.
  6. voltron-ctld pushes the validated peer (addr, RDMA params, eligibility) into voltrond.ko via netlink/configfs. Kernel now has a trusted node table it did not have to authenticate itself.
  7. Remove/revoke: revoke cert (CRL) + Corosync leave ⇒ daemon tells kernel to drop the node and abort/again any in-flight migrations to it.

Division of labor keeps the kernel small: **auth, membership, FS checks, cert handling all in voltron-ctld; the kernel just trusts the node table it is fed.**

5Migration policy model — cgroup-centric, default-deny

All policy is keyed on cgroup v2. Default: migration prohibited, so init/systemd, sshd, cron, DLM/corosync, etc. are never eligible unless an admin explicitly opts a cgroup in.

Per-cgroup policy attributes (set by admin, stored in voltrond.ko, keyed by cgroup id):

AttributeValuesMeaning
modedeny (default) / auto / manualmigration behavior
targetnode idmanual mode: this cgroup always runs on this node
psi_metriccpu / memory / io / fullauto mode: which PSI to watch
psi_thresholde.g. some avg10 > 40%trigger level for auto migration
min_residencysecondsanti-thrash: don't re-migrate too soon
candidatesnode setallowed execution nodes (⊆ eligible members)

2.1 Automatic (PSI-driven)

2.2 Manual (pinning)

How the kernel maps a task → policy

Admin interface (your requirement: /proc or /sys)

Proposed under **/sys/fs/cgroup/.../voltron.*** is not available to an out-of-tree module (cgroup controllers can't be added from a module). So instead:

voltron-ctld translates friendly cgroup paths ⇄ cgroup ids for the admin.

6Updated component responsibilities

7New open questions

  1. OCFS2 stack: can we assume the pcmk/Corosync stack (needed for Option A), or are you using o2cb? (o2cb ⇒ we'd lean toward Option B.)
  2. PSI decision loop in userspace (smaller kernel) or in-kernel (fewer moving parts, your "kernel decides" preference)?
  3. Policy store: sysfs (simple, flat) vs configfs (clean object lifecycle for userspace-created cgroup entries)? I lean configfs.
  4. cgroup policy inheritance to descendants: yes/no?
  5. Node identity: reuse Corosync nodeid, or our own UUID mapped to it?