[rabbitmq-discuss] [PATCH 10 of 10] OCF resource agent: replace "sleep 2" with "sleep 1"

Florian Haas florian.haas at linbit.com
Tue May 11 18:09:47 BST 2010


# HG changeset patch
# User Florian Haas <florian.haas at linbit.com>
# Date 1273594970 -7200
# Node ID 67da08a10160c47a02aee3e5119d631d1a6d107c
# Parent  d3688173161f9cbaf4010258ca3bce8d3fb7d5ec
OCF resource agent: replace "sleep 2" with "sleep 1"

We want to complete operations as quickly as possible, and whether we
check the server's status every 2 seconds or every 1 second makes
hardly any difference to Pacemaker.

diff -r d3688173161f -r 67da08a10160 packaging/common/rabbitmq-server.ocf
--- a/packaging/common/rabbitmq-server.ocf	Tue May 11 18:20:52 2010 +0200
+++ b/packaging/common/rabbitmq-server.ocf	Tue May 11 18:22:50 2010 +0200
@@ -290,7 +290,7 @@
 	    ocf_log info "rabbitmq-server start failed: $rc"
 	    exit $OCF_ERR_GENERIC
 	fi
-        sleep 2
+        sleep 1
     done
 
     return $OCF_SUCCESS
@@ -325,7 +325,7 @@
 	    ocf_log info "rabbitmq-server stop failed: $rc"
 	    exit $OCF_ERR_GENERIC
 	fi
-        sleep 2
+        sleep 1
     done
 
     return $OCF_SUCCESS





More information about the rabbitmq-discuss mailing list