]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/cluster: Increase the live threshold for global heartbeat
authorSunil Mushran <sunil.mushran@oracle.com>
Wed, 4 May 2011 17:28:00 +0000 (10:28 -0700)
committerJoel Becker <jlbec@evilplan.org>
Fri, 13 May 2011 18:26:48 +0000 (11:26 -0700)
commitbb0749b3e7ea9c3480d28d3a2ade5b7c0d2b62c2
treeca6725a08b9ffd79030d0bb22ec4c162f341f40e
parentd15d1044af605a007be7b989150a79f8266e5ad6
ocfs2/cluster: Increase the live threshold for global heartbeat

We have seen isolated cases (very few, I might add) of o2hb not detecting all
live nodes on startup. One plausible reasoning for it is that other node had
a hb io delay at the same time. The live threshold set at 2 (as low as it can
be) could be increased to ameliorate the situation.

But increasing the threshold directly affects mount time. Currently it takes
around 5 secs to mount a volume in o2cb cluster with local heartbeat. Increasing
the threshold will make mounts even slower. As the issue itself is rare, we have
left things as they are for the local heartbeat mode.

However we can improve the situation for global heartbeat mode as in that mode,
we start the heartbeat much before the mount.

This patch doubles the live threshold for the start of the first region in
global heartbeat mode.

Addresses internal Oracle bug#10635585.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Acked-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/cluster/heartbeat.c