From: Boris Ranto Date: Thu, 17 Mar 2016 17:54:47 +0000 (+0100) Subject: systemd: Use the same restart limits as upstart X-Git-Tag: ses3-milestone4~25^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8188%2Fhead;p=ceph.git systemd: Use the same restart limits as upstart Currently, the systemd daemons are not restarted on failure. This patch adds this functionality and sets the defaults to those defined in upstart. This resolves to 3 fails per 30 minutes for osd, mon and mds and 5 fails per 30 seconds for radosgw. Signed-off-by: Boris Ranto --- diff --git a/systemd/ceph-mds@.service b/systemd/ceph-mds@.service index f13cef4428e..ae1c29d68eb 100644 --- a/systemd/ceph-mds@.service +++ b/systemd/ceph-mds@.service @@ -16,6 +16,9 @@ ProtectHome=true ProtectSystem=full PrivateTmp=true TasksMax=infinity +Restart=on-failure +StartLimitInterval=30min +StartLimitBurst=3 [Install] WantedBy=ceph-mds.target diff --git a/systemd/ceph-mon@.service b/systemd/ceph-mon@.service index b9501d630dc..d62c4fd0193 100644 --- a/systemd/ceph-mon@.service +++ b/systemd/ceph-mon@.service @@ -22,6 +22,9 @@ ProtectHome=true ProtectSystem=full PrivateTmp=true TasksMax=infinity +Restart=on-failure +StartLimitInterval=30min +StartLimitBurst=3 [Install] WantedBy=ceph-mon.target diff --git a/systemd/ceph-osd@.service b/systemd/ceph-osd@.service index 1778db704e8..df1893eb195 100644 --- a/systemd/ceph-osd@.service +++ b/systemd/ceph-osd@.service @@ -16,6 +16,9 @@ ProtectHome=true ProtectSystem=full PrivateTmp=true TasksMax=infinity +Restart=on-failure +StartLimitInterval=30min +StartLimitBurst=3 [Install] WantedBy=ceph-osd.target diff --git a/systemd/ceph-radosgw@.service b/systemd/ceph-radosgw@.service index cfa57884770..e19ba1648c1 100644 --- a/systemd/ceph-radosgw@.service +++ b/systemd/ceph-radosgw@.service @@ -15,6 +15,9 @@ ProtectHome=true ProtectSystem=full PrivateTmp=true TasksMax=infinity +Restart=on-failure +StartLimitInterval=30s +StartLimitBurst=5 [Install] WantedBy=ceph-radosgw.target