Delayed start of OSDs with systemd to prevent slowdowns
Hi,
Currently with the systemd design a booting system will start all OSDs at the same time. This means that a cluster suddenly gets a bunch of CRUSH updates (if update on start is enabled), booting OSDs and PGs which go into peering state.
My systemd-foo isn't that good, but I was wondering if there is a way to modify ceph-osd.target in such a way that it doesn't start all the OSDs in parallel?
I would like 1 or maybe 2 OSDs to start at the same time with a delay of 120 seconds in between. This way the boot will take longer, but the impact on the cluster will be less.
Any ideas on how we might achieve this with systemd?
Wido
A message that is not in the archive (sent off-list or not yet received): CABZ+qqnX0k_0SvoM3bTLAL0q2z-pmGt4AnUpsd126vKOFnZU9Q@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CABZ+qq=S4ay1475BuR2AD2qhYmq279oKazGAKJG9ti-9pwPzug@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CABZ+qqmNi63on6Gipi5uhnL1X9e_erTwXHZt6cSw5XfkmoVaYA@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CABZ+qqnH0EK0bYc0xm6329+3WGk81GKb1OFR_9+No05bsAB5qg@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CABZ+qqmizdT9mpft9TkT87ygS0jJv=9NBipFVuS37dW4a2JvTw@mail.gmail.com
Quoted 8 lines
Op 11 augustus 2016 om 1:05 schreef Dan van der Ster <[email protected]>:
Hi Wido,
I can't help you with the systemd foo, but I have two quick remarks ...
Nobody seems to be able :) systemd is new to everybody.
Quoted 4 lines
1. I've always thought that this was a nice feature of systemd... To get the osds booted and online as quickly as possible. And we've not seen the peering issues you described.
Yes, it's a nice feature. But these machines have 24 OSDs on a Dual Xeon E5 and the have a difficult time in coming up.
Have to note that it's a mixed 0.94.7 <> 10.2.2 cluster, so it might be something there.
Quoted 4 lines
2. The crush weight change shouldn't cause problems, if the weight isn't actually changing. IIRC it shouldn't even change the osdmap if the value doesn't change.
True, my bad indeed. That doesn't trigger a change, but it keeps the MONs busy however.
Wido
Quoted 27 lines
Cheers, Dan
Quoted 4 lines · Wido den Hollander
Hi,
Currently with the systemd design a booting system will start all OSDs at
the same time. This means that a cluster suddenly gets a bunch of CRUSH updates (if update on start is enabled), booting OSDs and PGs which go into peering state.
Quoted 2 lines
My systemd-foo isn't that good, but I was wondering if there is a way to
modify ceph-osd.target in such a way that it doesn't start all the OSDs in parallel?
Quoted 2 lines
I would like 1 or maybe 2 OSDs to start at the same time with a delay of
120 seconds in between. This way the boot will take longer, but the impact on the cluster will be less.
Quoted 8 lines
Any ideas on how we might achieve this with systemd?
Wido
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 82ab0bb0.AEEAE5enJZIAAAAAAAAAAF2Jla4AADNJBWwAAAAAAACRXwBXrFuo@mailjet.com
Quoted 27 lines
Op 11 augustus 2016 om 13:04 schreef Nick Fisk <[email protected]>:
Quoted 23 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Wido den Hollander
Sent: 11 August 2016 11:54
To: Dan van der Ster <[email protected]>
Cc: ceph-devel <[email protected]>
Subject: Re: Delayed start of OSDs with systemd to prevent slowdownsQuoted 7 lines
Op 11 augustus 2016 om 1:05 schreef Dan van der Ster <[email protected]>:
Hi Wido,
I can't help you with the systemd foo, but I have two quick remarks ...
Nobody seems to be able :) systemd is new to everybody.
Quoted 4 lines
1. I've always thought that this was a nice feature of systemd... To get the osds booted and online as quickly as possible. And we've not seen the peering issues you described.
Quoted 8 lines
Quoted 1 line
Yes, it's a nice feature. But these machines have 24 OSDs on a Dual Xeon E5 and the have a difficult time in coming up.
Would something like this do what you want?
https://www.freedesktop.org/software/systemd/man/systemd.timer.html#RandomizedDelaySec=
You have to set up a system timer for the service, a bit of research on that is probably needed.
Good pointer! I'll test with that a bit and report back. Might take a while as I'm traveling a lot these weeks.
Wido
Quoted 48 lines
I've found the delay seems to grow with the size of the OSD as well. Ie 6TB disks take a lot longer to start up than 2TB ones.
Quoted 45 lines
Have to note that it's a mixed 0.94.7 <> 10.2.2 cluster, so it might be something there.
Quoted 4 lines
2. The crush weight change shouldn't cause problems, if the weight isn't actually changing. IIRC it shouldn't even change the osdmap if the value doesn't change.
True, my bad indeed. That doesn't trigger a change, but it keeps the MONs busy however.
Wido
Quoted 15 lines
Cheers, Dan
Quoted 5 lines · Wido den Hollander
Hi,
Currently with the systemd design a booting system will start all OSDs at
the same time. This means that a cluster suddenly gets a bunch of CRUSH updates (if update on start is enabled), booting OSDs and PGs which go into peering state.
Quoted 3 lines
My systemd-foo isn't that good, but I was wondering if there is a way to
Quoted 15 lines
modify ceph-osd.target in such a way that it doesn't start all the OSDs in parallel?
Quoted 3 lines
I would like 1 or maybe 2 OSDs to start at the same time with a delay of
120 seconds in between. This way the boot will take longer, but the impact on the cluster will be less.
Quoted 8 lines
Any ideas on how we might achieve this with systemd?
Wido
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html