cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Fabio M. Di Nitto <fdinitto@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] cman init: increase default shutdown timeouts
Date: Fri, 14 Sep 2012 15:27:42 +0200	[thread overview]
Message-ID: <1347629262-13187-1-git-send-email-fdinitto@redhat.com> (raw)

From: "Fabio M. Di Nitto" <fdinitto@redhat.com>

in some conditions, specially triggered when shutting down all nodes
at the same time, corosync takes a lot longer than 10 seconds
to stabilize membership. That means that daemons will not quit fast
enough before cman init will declare a shutdown error.

Increase the default shutdown timeouts from 10 to 30 seconds.

Resolves: rhbz#854032

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 cman/init.d/cman.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index 1917abd..a88f52f 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -305,7 +305,7 @@ stop_daemon()
 	shift
 	retryforsec=$1
 
-	[ -z "$retryforsec" ] && retryforsec=1
+	[ -z "$retryforsec" ] && retryforsec=30
 	retries=0
 
 	if check_sleep; then
@@ -661,7 +661,7 @@ start_qdiskd()
 
 stop_qdiskd()
 {
-	stop_daemon qdiskd 5
+	stop_daemon qdiskd
 }
 
 start_groupd()
@@ -770,7 +770,7 @@ join_fence_domain()
 leave_fence_domain()
 {
 	if status fenced > /dev/null 2>&1; then
-		errmsg=$( fence_tool leave -w 10 2>&1 )
+		errmsg=$( fence_tool leave -w 30 2>&1 )
 		return $?
 	fi
 }
-- 
1.7.7.6



                 reply	other threads:[~2012-09-14 13:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1347629262-13187-1-git-send-email-fdinitto@redhat.com \
    --to=fdinitto@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).