Skip to content

Commit

Permalink
systemd: Wait 5 seconds before attempting a restart of an OSD
Browse files Browse the repository at this point in the history
In commit 92f8ec the RestartSec parameter was removed which now
causes systemd to restart a failed OSD immediately.

After a reboot, while the network is still coming online, this can
cause problems.

Although network-online.target should guarantee us that the network
is online it doesn't guarantee that DNS resolving works.

If mon_host points to a DNS entry it could be that this cannot be
resolved yet and thus fails to start the OSDs on boot.

Fixes: https://tracker.ceph.com/issues/42761

Signed-off-by: Wido den Hollander <wido@42on.com>
  • Loading branch information
wido committed Nov 12, 2019
1 parent 8819c3c commit 8246ca0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions systemd/ceph-osd@.service.in
Expand Up @@ -27,6 +27,7 @@ TasksMax=infinity
Restart=on-failure
StartLimitInterval=30min
StartLimitBurst=3
RestartSec=10

[Install]
WantedBy=ceph-osd.target

0 comments on commit 8246ca0

Please sign in to comment.