Skip to contentSkip to conversation

Change default value for o2net and heartbeat.

PATCH New Tao Ma 3 participants 4 messages Jan 8, 2008 – Jan 9, 2008 OCFS2

lore
Share & tools
lore

Tao Ma

author
#0 lore raw

PATCH 1/1 Change default value for o2net and heartbeat.

The default value for o2net and heartbeat have been changed in the newest o2cb configure(ocfs2-tools).
So change it also in kernel.

---
 fs/ocfs2/cluster/heartbeat.h |    2 +-
 fs/ocfs2/cluster/tcp.h       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
fs/ocfs2/cluster/heartbeat.h +1 -1
index 35397dd..e511339 100644
@@ -35,7 +35,7 @@
 #define O2HB_LIVE_THRESHOLD	   2
 /* number of equal samples to be seen as dead */
 extern unsigned int o2hb_dead_threshold;
-#define O2HB_DEFAULT_DEAD_THRESHOLD	   7
+#define O2HB_DEFAULT_DEAD_THRESHOLD	   31
 /* Otherwise MAX_WRITE_TIMEOUT will be zero... */
 #define O2HB_MIN_DEAD_THRESHOLD	  2
 #define O2HB_MAX_WRITE_TIMEOUT_MS (O2HB_REGION_TIMEOUT_MS * (o2hb_dead_threshold - 1))
fs/ocfs2/cluster/tcp.h +2 -2
index da880fc..f36f66a 100644
@@ -60,8 +60,8 @@ typedef void (o2net_post_msg_handler_func)(int status, void *data,
 /* same as hb delay, we're waiting for another node to recognize our hb */
 #define O2NET_RECONNECT_DELAY_MS_DEFAULT	2000
 
-#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT	5000
-#define O2NET_IDLE_TIMEOUT_MS_DEFAULT		10000
+#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT	2000
+#define O2NET_IDLE_TIMEOUT_MS_DEFAULT		30000
 
 
 /* TODO: figure this out.... */
Signature · 1 line
1.5.3.GIT
#1 lore raw

PATCH 1/1 Change default value for o2net and heartbeat.

Thanks. We need this for 2.6.25.

Quoted 39 lines · Tao Ma

The default value for o2net and heartbeat have been changed in the newest o2cb configure(ocfs2-tools).
So change it also in kernel.

---
 fs/ocfs2/cluster/heartbeat.h |    2 +-
 fs/ocfs2/cluster/tcp.h       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
fs/ocfs2/cluster/heartbeat.h +1 -1
index 35397dd..e511339 100644
@@ -35,7 +35,7 @@
 #define O2HB_LIVE_THRESHOLD	   2
 /* number of equal samples to be seen as dead */
 extern unsigned int o2hb_dead_threshold;
-#define O2HB_DEFAULT_DEAD_THRESHOLD	   7
+#define O2HB_DEFAULT_DEAD_THRESHOLD	   31
 /* Otherwise MAX_WRITE_TIMEOUT will be zero... */
 #define O2HB_MIN_DEAD_THRESHOLD	  2
 #define O2HB_MAX_WRITE_TIMEOUT_MS (O2HB_REGION_TIMEOUT_MS * (o2hb_dead_threshold - 1))
fs/ocfs2/cluster/tcp.h +2 -2
index da880fc..f36f66a 100644
@@ -60,8 +60,8 @@ typedef void (o2net_post_msg_handler_func)(int status, void *data,
 /* same as hb delay, we're waiting for another node to recognize our hb */
 #define O2NET_RECONNECT_DELAY_MS_DEFAULT	2000
 
-#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT	5000
-#define O2NET_IDLE_TIMEOUT_MS_DEFAULT		10000
+#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT	2000
+#define O2NET_IDLE_TIMEOUT_MS_DEFAULT		30000
 
 
 /* TODO: figure this out.... */
#2 lore raw

PATCH 1/1 Change default value for o2net and heartbeat.

In reply to Tao Ma
Quoted 3 lines · tao.ma

The default value for o2net and heartbeat have been changed in the newest o2cb configure(ocfs2-tools).
So change it also in kernel.

Thanks Tao, but this is already in Ocfs2.git:

http://git.kernel.org/?p=linux/kernel/git/mfasheh/ocfs2.git;a=commitdiff;h=a4372b59334d2e7d0ef89eafb8af8d0eedfcf984

	--Mark

--
Mark Fasheh
Principal Software Developer, Oracle
[email protected]

author
#3 lore raw

PATCH 1/1 Change default value for o2net and heartbeat.

Quoted 7 lines · Mark Fasheh
Quoted 4 lines · tao.ma

The default value for o2net and heartbeat have been changed in the newest o2cb configure(ocfs2-tools).
So change it also in kernel.

Quoted 5 lines

Thanks Tao, but this is already in Ocfs2.git:

http://git.kernel.org/?p=linux/kernel/git/mfasheh/ocfs2.git;a=commitdiff;h=a4372b59334d2e7d0ef89eafb8af8d0eedfcf984

	--Mark

aha, I haven't found it in the linux-2.6.git tree. ;)