mirror_corosync/man
Jan Friesse c9996fdd0f main: Add support for cgroup v2 and auto mode
Support for cgroup v2 is very similar to cgroup v1 just checking (and
writing) different file.

Because of all the problems described later with cgroup v2 new "auto"
mode (new default) is added. This mode first tries to set rr scheduling
and moves Corosync to root cgroup only if it fails.

Testing this feature is a bit harder than with cgroup v1 so it's
probably worh noting in this commit message.

1. Copy some service file (I've used httpd service) and set
   CPUQuota=30% in the [service] section.
2. Check /sys/fs/cgroup/cgroup.subtree_control - there should be no
   "cpu"
3. Start modified service
4. Check /sys/fs/cgroup/cgroup.subtree_control - there should be "cpu"
5. Start corosync - It should be able to get rt priority

When move_to_root_cgroup is disabled (applies only for kernels
with CONFIG_RT_GROUP_SCHED enabled), behavior differs:
- If corosync is started before modified service, so
  there is no "cpu" in /sys/fs/cgroup/cgroup.subtree_control
  corosync starts without problem and gets rt priority.
  Starting modified service later will never add "cpu" into
  /sys/fs/cgroup/cgroup.subtree_control (because corosync is holding
  rt priority and it is placed in the non-root cgroup by systemd).

- When corosync is started after modified service, so "cpu"
  is in /sys/fs/cgroup/cgroup.subtree_control, corosync is not
  able to get RT priority.

It's worth noting problems when cgroup v2 is used together with systemd
logging described in corosync.conf(5) man page.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
2021-07-23 15:31:52 +02:00
..
.gitignore man: rename all devel man pages to .3.in 2012-02-09 16:45:46 +01:00
cmap_context_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_context_set.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_dec.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_delete.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_dispatch.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_fd_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_finalize.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_inc.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_initialize_map.3.in man: Fix typo conains -> contains 2018-09-24 13:49:06 +02:00
cmap_initialize.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_iter_finalize.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_iter_init.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_iter_next.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_keys.7 cfg: Reinstate cfg tracking 2021-01-14 16:09:46 +01:00
cmap_overview.3 man: move cmap_keys man page from section 8 to 7 2020-01-07 08:56:58 +01:00
cmap_set.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_track_add.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cmap_track_delete.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
corosync_overview.7 main: Remove COROSYNC_TOTEM_AUTHKEY_FILE 2018-11-15 17:30:22 +01:00
corosync-blackbox.8 Enahnce manpages a little bit 2012-11-07 13:55:22 +01:00
corosync-cfgtool.8 man: Add note about single node configuration 2021-06-02 17:16:41 +02:00
corosync-cmapctl.8 man: move cmap_keys man page from section 8 to 7 2020-01-07 08:56:58 +01:00
corosync-cpgtool.8 Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
corosync-keygen.8 keygen: Reflect change in knet 2019-04-11 15:14:06 +02:00
corosync-notifyd.8 corosync-notifyd: Add option to disable DNS lookup 2019-06-14 10:56:13 +02:00
corosync-quorumtool.8 quorumtool: Fix exit status codes 2019-02-15 17:12:59 +01:00
corosync-vqsim.8 vqsim: Enhance vqsim 2019-05-13 11:04:24 +02:00
corosync-xmlproc.8 Enahnce manpages a little bit 2012-11-07 13:55:22 +01:00
corosync.8 config: Properly check crypto and compress models 2021-04-14 18:07:20 +02:00
corosync.conf.5 main: Add support for cgroup v2 and auto mode 2021-07-23 15:31:52 +02:00
corosync.xml.5 Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_context_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_context_set.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_dispatch.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_fd_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_finalize.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_initialize.3.in cpg: Add CPG_REASON_UNDEFINED 2019-04-16 14:49:10 +02:00
cpg_iteration_finalize.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_iteration_initialize.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_iteration_next.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_join.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_leave.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_local_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_mcast_joined.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_membership_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_model_initialize.3.in cpg: Add CPG_REASON_UNDEFINED 2019-04-16 14:49:10 +02:00
cpg_overview.3 Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_zcb_alloc.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_zcb_free.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
cpg_zcb_mcast_joined.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
index.html man: move cmap_keys man page from section 8 to 7 2020-01-07 08:56:58 +01:00
ipc_common.sh.errors man: Fix typos in man page 2016-11-28 09:28:15 +01:00
Makefile.am quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_context_get.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_context_set.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_dispatch.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_fd_get.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_finalize.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_getquorate.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_initialize.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_model_initialize.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_overview.3 quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_trackstart.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
quorum_trackstop.3.in quorum: Add support for nodelist callback 2020-10-12 13:22:11 +02:00
sam_data_getsize.3.in man: rename all devel man pages to .3.in 2012-02-09 16:45:46 +01:00
sam_data_restore.3.in man: rename all devel man pages to .3.in 2012-02-09 16:45:46 +01:00
sam_data_store.3.in man: Fix typos in man page 2016-11-28 09:28:15 +01:00
sam_finalize.3.in man: rename all devel man pages to .3.in 2012-02-09 16:45:46 +01:00
sam_hc_callback_register.3.in man: Fix typos in man page 2016-11-28 09:28:15 +01:00
sam_hc_send.3.in man: Fix typos in man page 2016-11-28 09:28:15 +01:00
sam_initialize.3.in Document SAM_RECOVERY_POLICY_CMAP 2012-02-21 16:33:56 +01:00
sam_mark_failed.3.in Document SAM_RECOVERY_POLICY_CMAP 2012-02-21 16:33:56 +01:00
sam_overview.3 Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
sam_register.3.in man: rename all devel man pages to .3.in 2012-02-09 16:45:46 +01:00
sam_start.3.in man: rename all devel man pages to .3.in 2012-02-09 16:45:46 +01:00
sam_stop.3.in man: rename all devel man pages to .3.in 2012-02-09 16:45:46 +01:00
sam_warn_signal_set.3.in man: rename all devel man pages to .3.in 2012-02-09 16:45:46 +01:00
votequorum_context_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_context_set.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_dispatch.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_fd_get.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_finalize.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_getinfo.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_initialize.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_overview.3 Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_qdevice_master_wins.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_qdevice_poll.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_qdevice_register.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_qdevice_unregister.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_qdevice_update.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_setexpected.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_setvotes.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_trackstart.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum_trackstop.3.in Man: Move overview mp to sections 3 and 7 from 8 2018-01-30 13:42:10 +01:00
votequorum.5 man: votequorum.5: use proper single quotes 2020-10-12 13:59:24 +02:00