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

jewel: systemd/ceph-disk: reduce ceph-disk flock contention #12210

Merged

Commits on Nov 29, 2016

  1. systemd/ceph-disk: reduce ceph-disk flock contention

    "ceph-disk trigger" invocation is currently performed in a mutually
    exclusive fashion, with each call first taking an flock on the path
    /var/lock/ceph-disk. On systems with a lot of osds, this leads to a
    large amount of lock contention during boot-up, and can cause some
    service instances to trip the 120 second timeout.
    
    Take an flock on a device specific path instead of /var/lock/ceph-disk,
    so that concurrent "ceph-disk trigger" invocations are permitted for
    independent osds. This greatly reduces lock contention and consequently
    the chance of service timeout. Per-device concurrency restrictions
    required for http://tracker.ceph.com/issues/13160 are maintained.
    
    Fixes: http://tracker.ceph.com/issues/18060
    
    Signed-off-by: David Disseldorp <ddiss@suse.de>
    (cherry picked from commit 8a62cbc)
    ddiss committed Nov 29, 2016
    Copy the full SHA
    0ab5b7a View commit details
    Browse the repository at this point in the history