]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
systemd/ceph-disk: reduce ceph-disk flock contention 12200/head
authorDavid Disseldorp <ddiss@suse.de>
Mon, 28 Nov 2016 13:16:22 +0000 (14:16 +0100)
committerDavid Disseldorp <ddiss@suse.de>
Mon, 28 Nov 2016 16:55:39 +0000 (17:55 +0100)
commit8a62cbc074b711275cfd57b372bfb35f6a017833
treefdb660033190bf1aa02b23f8b863b86cb334dfbb
parent5233aa0b8454e7dd804302a45ac29a63bc4277ec
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/18049
Signed-off-by: David Disseldorp <ddiss@suse.de>
systemd/ceph-disk@.service