Hello,
Is anyone doing any type of failover or load balancing between two hobbit servers? I know that there was a function to do failover in BB. I have two separate servers that I've installed Hobbit onto, and am having clients reporting to both, and they both are "clients" for each other, but I just want to make sure I'm doing it the right way, and see if there might be a better way.
Thank you
Al Jeffcoat
This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited. This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: postmaster at orlandoregional.org . If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Regional Healthcare by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Regional Healthcare.
On Thu, 3 Mar 2005 12:42:42 -0500, Jeffcoat, Al <ajeffco at orhs.org> wrote:
Is anyone doing any type of failover or load balancing between two hobbit servers? I know that there was a function to do failover in BB. I have two separate servers that I've installed Hobbit onto, and am having clients reporting to both, and they both are "clients" for each other, but I just want to make sure I'm doing it the right way, and see if there might be a better way.
I'm currently using hobbit in a failover scenario, but only one hobbit server is up at a time. There are 3 boxes [small freebsd PC's] acting in an active/passive/passive mode with the clients reporting to the virtual IP. The data is rsync'ed every minute so the data loss would be minimal.
-r
On Thu, Mar 03, 2005 at 12:52:23PM -0500, Robert Edeker wrote:
On Thu, 3 Mar 2005 12:42:42 -0500, Jeffcoat, Al <ajeffco at orhs.org> wrote:
Is anyone doing any type of failover or load balancing between two hobbit servers? I know that there was a function to do failover in BB. I have two separate servers that I've installed Hobbit onto, and am having clients reporting to both, and they both are "clients" for each other, but I just want to make sure I'm doing it the right way, and see if there might be a better way.
I'm currently using hobbit in a failover scenario, but only one hobbit server is up at a time. There are 3 boxes [small freebsd PC's] acting in an active/passive/passive mode with the clients reporting to the virtual IP. The data is rsync'ed every minute so the data loss would be minimal.
There are basically two ways of doing HA Hobbit.
You can run several server in parallel, and setup your clients to report to all of them. This is simple and does not require and additional work on the Hobbit side.
The other solution is to run some sort of active/passive cluster, with a virtual IP-address that follows the active node. To ensure a smooth failover you need to sync some data from the active node to the passive ones - the most critical item is the server/tmp/hobbitd.chk file which holds the entire internal state of Hobbit (i.e. all of the current state information). This file is dumped by hobbitd every 10 minutes (configurable), and then hobbitd starts up it loads this file to restore the in-memory state of the Hobbit system. So if you copy this file over to a passive node, it can take over immediately and come up with an almost up-to-date state of the Hobbit system.
Other data that you may want to synchronize across the nodes is the content of the "data" directory. This holds historical status information, and the RRD files for the trend graphs. Whether you want to synchronize this, and how often, depends on your particular setup.
Regards, Henrik
participants (3)
-
ajeffco@orhs.org
-
henrik@hswn.dk
-
idxman01@gmail.com