Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to set a real time scheduler in CTDB when CephFS backend is used #18

Open
xhernandez opened this issue Aug 3, 2023 · 0 comments

Comments

@xhernandez
Copy link
Collaborator

When a SIT Environment is created using the CephFS backend, sometimes the CTDB service fails to start, logging this error:

Unable to set scheduler to SCHED_FIFO (Operation not permitted)

This seems related to BZ 1201952. The two workarounds proposed there work:

  1. Increase the value of /sys/fs/cgroup/cpu/system.slice/cpu.rt_runtime_us.
  2. Add the option realtime scheduling = false into the legacy section of ctdb.conf.

For now SIT Environment uses the second approach.

Upon further investigation, it seems that the system.slice subdirectory doesn't exist for other backends, but on CephFS, when cephadm is boostrapping the cluster, it appears (among others). Most probably this is related to container and/or systemd activity. This particular subdirectory seems to disappear automatically after some time, but sometimes it's already too late and CTDB has already attempted to start and failed.

Some additional related information provided by @phlogistonjohn (Thanks !!!):

@xhernandez xhernandez changed the title Failure to se a real time scheduler in CTDB when CephFS backend is used Failure to set a real time scheduler in CTDB when CephFS backend is used Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant