Hi!
Why do heartbeat uses broadcast to send status messages and so?
I know that if you have many hosts in the cluster it is very
useful, or at least the easiest way to do that, but we are working
with two hosts environments right now and the "add_new_hosts" feature
is commented in the source code. Is there any reason for that (the
broadcasts)?
We're doing tests using keepalive = 1... so our sysadmin gets crazy
everytime we start heartbeat... (using two nodes this means 2
broadcasts each second...).
If you're using a two node cluster and have the name of both nodes
in the configuration file, you can do the job using unicast
messages. This way you avoid generating load for the other machines
on your network.
If this is a future vision, something for when we will have lots of
nodes in the cluster, I have one more thought. Broadcasts aren't
routed... so your entire cluster must fit in the same subnet... it
isn't a good thing if you have load balance and other services that
may be located in servers on different subnets. Multicasts would do
that with more elegance.
Hugs!
Luis
[ Luis Claudio R. Goncalves lclaudio@conectiva.com.br ]
[. BSc in Computer Science -- MSc coming soon -- Gospel User -- Linuxer ]
[. Fault Tolerance - Real-Time - Distributed Systems - IECLB - IS 40:31 ]
[. LateNite Programmer -- Jesus Is The Solid Rock On Which I Stand -- ]
Why do heartbeat uses broadcast to send status messages and so?
I know that if you have many hosts in the cluster it is very
useful, or at least the easiest way to do that, but we are working
with two hosts environments right now and the "add_new_hosts" feature
is commented in the source code. Is there any reason for that (the
broadcasts)?
We're doing tests using keepalive = 1... so our sysadmin gets crazy
everytime we start heartbeat... (using two nodes this means 2
broadcasts each second...).
If you're using a two node cluster and have the name of both nodes
in the configuration file, you can do the job using unicast
messages. This way you avoid generating load for the other machines
on your network.
If this is a future vision, something for when we will have lots of
nodes in the cluster, I have one more thought. Broadcasts aren't
routed... so your entire cluster must fit in the same subnet... it
isn't a good thing if you have load balance and other services that
may be located in servers on different subnets. Multicasts would do
that with more elegance.
Hugs!
Luis
[ Luis Claudio R. Goncalves lclaudio@conectiva.com.br ]
[. BSc in Computer Science -- MSc coming soon -- Gospel User -- Linuxer ]
[. Fault Tolerance - Real-Time - Distributed Systems - IECLB - IS 40:31 ]
[. LateNite Programmer -- Jesus Is The Solid Rock On Which I Stand -- ]