1. 01 Oct, 2021 2 commits
  2. 30 Sep, 2021 7 commits
  3. 04 Aug, 2021 2 commits
  4. 02 Aug, 2021 6 commits
  5. 29 Jul, 2021 1 commit
  6. 23 Jul, 2021 1 commit
    • Jan Friesse's avatar
      main: Add support for cgroup v2 and auto mode · c9996fdd
      Jan Friesse authored
      
      
      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: default avatarJan Friesse <jfriesse@redhat.com>
      Reviewed-by: default avatarChristine Caulfield <ccaulfie@redhat.com>
      c9996fdd
  7. 05 Jul, 2021 2 commits
  8. 03 Jun, 2021 1 commit
  9. 02 Jun, 2021 1 commit
  10. 21 May, 2021 2 commits
  11. 19 May, 2021 2 commits
  12. 10 May, 2021 1 commit
    • Jan Friesse's avatar
      main: Add support for cgroup v2 · 57e6b86b
      Jan Friesse authored
      
      
      Support for cgroup v2 is very similar to cgroup v1 just checking (and
      writing) different file.
      
      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, 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.
      
      Signed-off-by: default avatarJan Friesse <jfriesse@redhat.com>
      Reviewed-by: default avatarChristine Caulfield <ccaulfie@redhat.com>
      57e6b86b
  13. 14 Apr, 2021 3 commits
  14. 07 Apr, 2021 5 commits
  15. 06 Apr, 2021 1 commit
  16. 03 Apr, 2021 3 commits