Membership aligned with the OCFS2 stack, security, and the cgroup policy model.
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:
/etc/ocfs2/cluster.conf), orocfs2_controld + the kernel stackglue.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.
voltron-ctld (userspace daemon) joins a Corosync CPG (closed process group) and consumes its membership events. Corosync already provides:
/etc/corosync/authkey, crypto_cipher),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.
Our own daemon: cluster CA issues per-node certs; join via short-lived token (kubeadm-style); membership + heartbeat implemented by us.
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.
voltron-ctld starts, joins Corosync CPG → membership event fires.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.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.**
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):
| Attribute | Values | Meaning |
|---|---|---|
mode | deny (default) / auto / manual | migration behavior |
target | node id | manual mode: this cgroup always runs on this node |
psi_metric | cpu / memory / io / full | auto mode: which PSI to watch |
psi_threshold | e.g. some avg10 > 40% | trigger level for auto migration |
min_residency | seconds | anti-thrash: don't re-migrate too soon |
candidates | node set | allowed execution nodes (⊆ eligible members) |
mode=auto are eligible.cpu.pressure, memory.pressure, io.pressure). We use PSI triggers: register a threshold trigger on the eligible cgroup; when pressure crosses it, the decision path wakes and selects the least-loaded candidate node.voltron-ctld registers triggers, poll()s, then asks the kernel to migrate) to keep kernel logic small, or read psi_group in-kernel. Leaning userspace trigger → kernel migrate.mode=manual + target=nodeX: every migratable task in that cgroup is placed on nodeX (subject to admission/eligibility). No PSI needed.task_css/cgroup_id).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:
/sys/kernel/voltron/policy/<cgroup-id>/{mode,target,psi_metric,...} or/sys/kernel/config/voltron/cgroups/<id>/... (configfs is designed exactly for userspace-created config objects from a module).voltron-ctld translates friendly cgroup paths ⇄ cgroup ids for the admin.
voltrond.ko: cgroup→policy table, task→cgroup→policy lookup, in-kernel RDMA data plane**, migration execution primitives, trusted node table (fed by userspace), event/decision channel to the agent.voltron-ctld** (userspace): Corosync membership, cluster-CA mTLS authz, OCFS2 mount/writable admission check, RDMA param exchange, pushes node table + cgroup policy into kernel, (likely) PSI trigger loop, drives CRIU.