Hello,
I want to run Two Hobbit Servers for redundancy purposes.
Can someone give me some pointers. What's the best
way to set this up, and which files do I change?
I've looked through hobbitclient.cfg and it has the following:
BBDISP="192.168.0.218" # IP address of the Hobbit server
BBDISPLAYS="" # IP of multiple Hobbit servers. BBDISP must be "0.0.0.0".
So, Do I set BBDISPLAYS to:
BBDISPLAYS="192.168.0.219" (For my other Hobbit Server)
Will the clients then send data to both servers? How do you account for paging?
Do you set one machine as the primary and turn-off the other machine?
If one machine fails, can you enable the other to start paging.
Any pointers would be really appreciated.
Thanks..James
James Wade
On 4 Jan 2007, at 18:45, James Wade wrote:
I’ve looked through hobbitclient.cfg and it has the following:
BBDISP="192.168.0.218" # IP address of the Hobbit server
BBDISPLAYS="" # IP of multiple Hobbit servers.
BBDISP must be "0.0.0.0".So, Do I set BBDISPLAYS to:
BBDISPLAYS=”192.168.0.219” (For my other Hobbit Server) Set:
BBDISP="0.0.0.0"
BBDISPLAYS="ip.address.for.svr1 ip.address.for.svr2"
Note space not commas, and quotes around both. The 0.0.0.0 for BBDISP
is the marker for multiple servers, and BBDISPLAYS contains the IP's
for the servers. This is the same for all clients (including the
~hobbit/client/etc/hobbit on the servers themselves!).
Will the clients then send data to both servers? How do you account
for paging? Yes, it will. Do you set one machine as the primary and turn-off the other machine?If one machine fails, can you enable the other to start paging. Paging, as in notifications? I currently have a different paging rule
set on the 'backup' box, which just alerts on hobbit server things
being down, ie:
HOST=myprimaryhobbithost SERVICE=bbd,bbgen,bbtest COLOR=red SCRIPT /home/hobbit/bin/sms_notify ADMINS
(Which sends an SMS)
Easiest is to keep the primary hobbit-alerts.cfg handy on the
secondary box. There might be a better, or more intelligent way. One
idea I've considered to have some check in the notification script
that periodically checks, and then just drops notifications if it CAN
fetch status from the primary host, but sends them if it CAN'T, ie.
if the primary host is down, the external 'SCRIPT' alert rules kick
in. See bb(1) manpage, specifically wrt. 'query'. But I really
haven't given this much thought, and I wouldn't be surprised if
Henrik or somebody else has a better solution.
Any pointers would be really appreciated.
Hope that helps,
Regards,
Richard
-- Richard Leyton - richard at leyton.org http://www.leyton.org
On Thu, Jan 04, 2007 at 12:45:57PM -0600, James Wade wrote:
I want to run Two Hobbit Servers for redundancy purposes. Can someone give me some pointers. What's the best way to set this up, and which files do I change?
There isn't a 100% automatic setup that handles fail-over of the various tasks, especially paging.
The best solution right now is to run the two servers in parallel; i.e. setup a synchronization of the bb-hosts, hobbit-alerts.cfg and hobbit-clients.cfg files and run the same tasks on both of the servers. On the backup server, you would disable the [bbpage] task in hobbitlaunch.cfg so you dont get duplicated alerts; in case the primary server fails, you must then enable this task to get alerts going.
This obviously isn't very smart. Some improvements are underway for Hobbit 4.3 so fail-over of paging is handled better; it's not yet ready for production use, though.
Regards, Henrik
participants (3)
-
henrik@hswn.dk
-
jkwade@futurefrontiers.com
-
richard@leyton.org