summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorWido den Hollander <wido@42on.com>2019-11-12 09:15:56 +0100
committerWido den Hollander <wido@42on.com>2019-11-12 10:21:45 +0100
commit8246ca02ea77bb0f6a4adf5fce0b308d29998fc6 (patch)
treea2fe1a2f4093b511570b2113de8cdf09572933b3 /systemd
parentMerge pull request #31416 from sseshasa/wip-41666-replicaSizeWarn (diff)
downloadceph-8246ca02ea77bb0f6a4adf5fce0b308d29998fc6.tar.xz
ceph-8246ca02ea77bb0f6a4adf5fce0b308d29998fc6.zip
systemd: Wait 5 seconds before attempting a restart of an OSD
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>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/ceph-osd@.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemd/ceph-osd@.service.in b/systemd/ceph-osd@.service.in
index 1b5c9c82b86..c8889da1df3 100644
--- a/systemd/ceph-osd@.service.in
+++ b/systemd/ceph-osd@.service.in
@@ -27,6 +27,7 @@ TasksMax=infinity
Restart=on-failure
StartLimitInterval=30min
StartLimitBurst=3
+RestartSec=10
[Install]
WantedBy=ceph-osd.target