Commit Graph

7 Commits

Author SHA1 Message Date
Sage Weil
eaff6cb24e upstart: limit respawn to 3 in 30 mins (instead of 5 in 30s)
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: #11798
Signed-off-by: Sage Weil <sage@redhat.com>
2015-06-03 14:57:34 -04:00
Guilhem Lettron
554b41b171 Remove mon socket in post-stop
If ceph-mon segfault, socket file isn't removed.

By adding a remove in post-stop, upstart clean run directory properly.

Signed-off-by: Guilhem Lettron <guilhem@lettron.fr>
2013-05-28 10:35:24 +02:00
Sage Weil
07c831acd5 upstart: fix limit lines
Two arguments.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-16 17:59:08 -08:00
Sage Weil
be11c317bf upstart: set high open file limits
The default 1024 limit is easily hit on larger clusters.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-16 16:19:00 -08:00
Tommi Virtanen
0de719567f upstart: Make instance jobs export their cluster and id variables.
This allows other jobs listening to Upstart "started ceph-mon" events
to see what instance started.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-08-30 10:25:07 -04:00
Sage Weil
3764ca6115 upstart: simplify start; allow group stop via an abstract job
Use a 'ceph-mds' or 'ceph-mon' event to start instances instead of
explicitly calling start.  This avoids the ugly is-this-already-running
check.  [Thanks Guilhem Lettron for that!]

Make the -all job abstract (which means it stays started and can be
stopped).  Trigger a helper task (-all-starter) to trigger instance
start.  Make instances stop with the -all task.  This allows you to do

 start ceph-mds-all
 stop ceph-mds-all
 start ceph-mds id=foo
 start ceph-mds-all
 stop ceph-mds id=bar
 stop ceph-mds-all

but not

 start ceph-mds id=foo
 stop ceph-mds-all

because ceph-mds-all isn't running.  Not quite as flexible in sysvinit in
that regard, but good enough for me.

Fixes: #2414
Signed-off-by: Sage Weil <sage@inktank.com>
2012-06-02 15:19:28 -07:00
Tommi Virtanen
176a14aef9 debian, upstart, osd: osd disk preparation and activation scripts
Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-05-23 14:02:34 -07:00