Skip to content

Commit

Permalink
upstart: limit respawn to 3 in 30 mins (instead of 5 in 30s)
Browse files Browse the repository at this point in the history
It may take tens of seconds to restart each time, so 5 in 30s does not stop
the crash on startup respawn loop in many cases.  In particular, we'd like
to catch the case where the internal heartbeats fail.

This should be enough for all but the most sluggish of OSDs and capture
many cases of failure shortly after startup.

Fixes: ceph#11798
Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Jun 3, 2015
1 parent c8705e5 commit eaff6cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/upstart/ceph-mds.conf
Expand Up @@ -4,7 +4,7 @@ start on ceph-mds
stop on runlevel [!2345] or stopping ceph-mds-all

respawn
respawn limit 5 30
respawn limit 3 1800

limit nofile 16384 16384

Expand Down
2 changes: 1 addition & 1 deletion src/upstart/ceph-mon.conf
Expand Up @@ -4,7 +4,7 @@ start on ceph-mon
stop on runlevel [!2345] or stopping ceph-mon-all

respawn
respawn limit 5 30
respawn limit 3 1800

limit nofile 16384 16384

Expand Down
2 changes: 1 addition & 1 deletion src/upstart/ceph-osd.conf
Expand Up @@ -4,7 +4,7 @@ start on ceph-osd
stop on runlevel [!2345] or stopping ceph-osd-all

respawn
respawn limit 5 30
respawn limit 3 1800

limit nofile 327680 327680

Expand Down

0 comments on commit eaff6cb

Please sign in to comment.