2 hobbit servers on the same hardware
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef
Stef,
I believe the clients will need to specify to look to that different Hobbit port. The default is 1984 so if you need it to show up the other Hobibt server you need to specify that second port.
Josh
On 3/7/08, Stef Coene <stef.coene at docum.org> wrote:
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone.
Thanks, Larry Barber
On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <stef.coene at docum.org> wrote:
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Hi,
Has anyone actually tried this?
I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration.
I am guessing that the only way to do this would be to reconfigure, make, make install. This would not be my preference but if there is no other way...
Comments?
Phil
On 08/03/2008, Larry Barber <lebarber at gmail.com> wrote:
All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone.
Thanks, Larry Barber
On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <stef.coene at docum.org> wrote:
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild at gmail.com
On Sat, Mar 29, 2008 at 03:25:29PM +0900, Phil Wild wrote:
Has anyone actually tried this?
I have.
I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration.
The settings you do at compile-time are built into the binaries, but they should all be configurable via the hobbitserver.cfg settings.
But doing a re-compile/re-install to a different Hobbit home directory is probably the easiest. You must also run the two with different user-ID's, to avoid getting the shared-memory segments and semaphores from the two Hobbit servers mixed up.
And since they'll conflict over port 1984, either use a different port number for one of them, or a different IP-address.
Henrik
On Saturday 29 March 2008, Henrik Stoerner wrote:
On Sat, Mar 29, 2008 at 03:25:29PM +0900, Phil Wild wrote:
Has anyone actually tried this?
I have. Me too, just do a find and replace of all hobbit server directories: perl -pi -e 's/<dir 1>/<dir 2>/' *
Or like Henrik suggests, do 2 installations of the same software.
Don't forget to change BBPORT.
I use the same user and that's working fine.
Stef
Many thanks guys.....
That is good to know about the different user id's
Phil
On 29/03/2008, Stef Coene <stef.coene at docum.org> wrote:
On Saturday 29 March 2008, Henrik Stoerner wrote:
On Sat, Mar 29, 2008 at 03:25:29PM +0900, Phil Wild wrote:
Has anyone actually tried this?
I have.
Me too, just do a find and replace of all hobbit server directories: perl -pi -e 's/<dir 1>/<dir 2>/' *
Or like Henrik suggests, do 2 installations of the same software.
Don't forget to change BBPORT.
I use the same user and that's working fine.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild at gmail.com
Hi,
A question... My preference is to keep with port 1984 for conformity so I am going to configure a virtual interface for the second instance.
Is all I need to do is set the IP address in hobbitserver.cfg to the virtual interface to tell hobbit to only listen/use that IP address or is there more to configure to bind the second installation to the second IP?
I will have to do the same to the first install as well of course...
Cheers
Phil
On 29/03/2008, Stef Coene <stef.coene at docum.org> wrote:
On Saturday 29 March 2008, Henrik Stoerner wrote:
On Sat, Mar 29, 2008 at 03:25:29PM +0900, Phil Wild wrote:
Has anyone actually tried this?
I have.
Me too, just do a find and replace of all hobbit server directories: perl -pi -e 's/<dir 1>/<dir 2>/' *
Or like Henrik suggests, do 2 installations of the same software.
Don't forget to change BBPORT.
I use the same user and that's working fine.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild at gmail.com
On Saturday 29 March 2008, Phil Wild wrote:
Hi,
A question... My preference is to keep with port 1984 for conformity so I am going to configure a virtual interface for the second instance.
Is all I need to do is set the IP address in hobbitserver.cfg to the virtual interface to tell hobbit to only listen/use that IP address or is there more to configure to bind the second installation to the second IP? Hobbit is listening on all available interfaces. So you can not run 2 hobbit servers on the same port.
Stef
I thought you could specify which IP Hobbit listened on with BBSERVERIP in hobbitserver.cfg - is that not right?
On Sat, Mar 29, 2008 at 1:22 PM, Stef Coene <stef.coene at docum.org> wrote:
On Saturday 29 March 2008, Phil Wild wrote:
Hi,
A question... My preference is to keep with port 1984 for conformity so I am going to configure a virtual interface for the second instance.
Is all I need to do is set the IP address in hobbitserver.cfg to the virtual interface to tell hobbit to only listen/use that IP address or is there more to configure to bind the second installation to the second IP? Hobbit is listening on all available interfaces. So you can not run 2 hobbit servers on the same port.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
On Saturday 29 March 2008, Josh Luthman wrote:
I thought you could specify which IP Hobbit listened on with BBSERVERIP in hobbitserver.cfg - is that not right? According to lsof | grep 1984, hobbit is listening on *:1984, so on all ip adresses.
Stef
What is your bbserverip in hobbitserver.cfg though?
On 3/29/08, Stef Coene <stef.coene at docum.org> wrote:
On Saturday 29 March 2008, Josh Luthman wrote:
I thought you could specify which IP Hobbit listened on with BBSERVERIP in hobbitserver.cfg - is that not right? According to lsof | grep 1984, hobbit is listening on *:1984, so on all ip adresses.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
This is what I experience as well...
netstat -an | grep LISTEN | grep 1984 tcp 0 0 0.0.0.0:1984 0.0.0.0:* LISTEN
On 30/03/2008, Stef Coene <stef.coene at docum.org> wrote:
On Saturday 29 March 2008, Josh Luthman wrote:
What is your bbserverip in hobbitserver.cfg though?
The ip of my hobbit server ....
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild at gmail.com
On Sunday 30 March 2008, Phil Wild wrote:
This is what I experience as well...
netstat -an | grep LISTEN | grep 1984 tcp 0 0 0.0.0.0:1984 0.0.0.0:* LISTEN I just looked at the source code and I think you can say hobbitd --listen=<ip address>
This is by default 0.0.0.0 so listening on all availalble addresses. See also http://hobbitmon.sourceforge.net/docs/man8/hobbitd.8.html
Stef
Thanks,
I should have looked there first...
On 30/03/2008, Stef Coene <stef.coene at docum.org> wrote:
On Sunday 30 March 2008, Phil Wild wrote:
This is what I experience as well...
netstat -an | grep LISTEN | grep 1984 tcp 0 0 0.0.0.0:1984 0.0.0.0:* LISTEN
I just looked at the source code and I think you can say hobbitd --listen=<ip address>
This is by default 0.0.0.0 so listening on all availalble addresses. See also http://hobbitmon.sourceforge.net/docs/man8/hobbitd.8.html
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild at gmail.com
On Sat, Mar 29, 2008 at 06:22:22PM +0100, Stef Coene wrote:
On Saturday 29 March 2008, Phil Wild wrote:
Hi,
A question... My preference is to keep with port 1984 for conformity so I am going to configure a virtual interface for the second instance.
Is all I need to do is set the IP address in hobbitserver.cfg to the virtual interface to tell hobbit to only listen/use that IP address or is there more to configure to bind the second installation to the second IP? Hobbit is listening on all available interfaces. So you can not run 2 hobbit servers on the same port.
You need to run hobbitd with the "--listen=10.0.0.1" option. See the hobbitd(8) man-page.
Henrik
I would save hours of time by using a virtual machine.
On 3/29/08, Phil Wild <philwild at gmail.com> wrote:
Hi,
Has anyone actually tried this?
I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration.
I am guessing that the only way to do this would be to reconfigure, make, make install. This would not be my preference but if there is no other way...
Comments?
Phil
On 08/03/2008, Larry Barber <lebarber at gmail.com> wrote:
All you need to do is give each instance's hobbitd daemon a unique port to listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone.
Thanks, Larry Barber
On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <stef.coene at docum.org> wrote:
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild at gmail.com
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
Actually, this is where I started....
But it seems such a shame to tie up a fixed amount of memory, disk etc and have the extra burden of another copy of OS as well as the bridged network etc just to run another instance of an application.
Unix is a wonderful OS and is so good at scaling I just don't see this as a good use of virtualisation (IMHO)
I have gone down the path of recompiling for the second install. There were only about seven entries in the Makefile to modify from memory (not including the port number)
Cheers
Phil
On 30/03/2008, Josh Luthman <josh at imaginenetworksllc.com> wrote:
I would save hours of time by using a virtual machine.
On 3/29/08, Phil Wild <philwild at gmail.com> wrote:
Hi,
Has anyone actually tried this?
I started mucking around with it today but I don't believe it is as easy as it sounds. The original directory "/opt/hobbit/server" seems to be hardcoded into lots and lots of files, including compiled into binaries. I don't see how cloning the hobbit home directory would give you a reliable configuration.
I am guessing that the only way to do this would be to reconfigure, make, make install. This would not be my preference but if there is no other way...
Comments?
Phil
On 08/03/2008, Larry Barber <lebarber at gmail.com> wrote:
All you need to do is give each instance's hobbitd daemon a unique
port to
listen to and then make sure everything is talking to the right port and putting files in the correct directories. Probably the easiest way to do this is to just clone the Hobbit home directory, then change BBPORT and BBHOME for the clone.
Thanks, Larry Barber
On Fri, Mar 7, 2008 at 11:51 AM, Stef Coene <stef.coene at docum.org> wrote:
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild at gmail.com
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild at gmail.com
On Fri, March 7, 2008 12:51, Stef Coene wrote:
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef, you could do it with different ports, I think, but 1984 is so ingrained that you may have problems getting client and server straight in both environments. IIRC, you're a pretty capable Linux admin. The way I'd go at is would be with subinterfaces on different ip addresses (eth0:1, eth0:2), then you just have to point each client at its correct server address. You'll also need to set up each ip as an Apache virtual host in httpd.conf and probably need to dig into the hobbit server configuration to get the two hobbit instances to put their respective rrd files in different places.
Off the top of my head on a rainy Friday afternoon. I may be full of it again.
Never even thought about that - that would be a far superior way of doing things!
I can't imagine why it wouldn't work, it's a whole new suite. I'm certain you can do it with Vhosts and adding an IP address is simple enough.
I'm snowed in so I may be out of my mind myself. Ohio sucks.
On 3/7/08, Hobbit User in Richmond <hobbit at epperson.homelinux.net> wrote:
On Fri, March 7, 2008 12:51, Stef Coene wrote:
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other.
Stef, you could do it with different ports, I think, but 1984 is so ingrained that you may have problems getting client and server straight in both environments. IIRC, you're a pretty capable Linux admin. The way I'd go at is would be with subinterfaces on different ip addresses (eth0:1, eth0:2), then you just have to point each client at its correct server address. You'll also need to set up each ip as an Apache virtual host in httpd.conf and probably need to dig into the hobbit server configuration to get the two hobbit instances to put their respective rrd files in different places.
Off the top of my head on a rainy Friday afternoon. I may be full of it again.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
On Friday 07 March 2008, Stef Coene wrote:
Hi,
Is is possible to run 2 hobbit servers on the same server ? I need a hobbit server for our SLA servers and an other hobbit server for the rest. And I want to run in on the same server. I copied the server directory and changed all the needed files. Each hobbit server is listening on an other port.
However, the client information is ending up on1 hobbit server. I think this has to with the way the hobbit daemons are communicating with each other. Pff, I have a custom perl script to distribute config files to clients. And I made an error so each hobbit client connected to the same port. I changed the PORT for certain hosts and it is working now.
Stef
participants (6)
-
henrik@hswn.dk
-
hobbit@epperson.homelinux.net
-
josh@imaginenetworksllc.com
-
lebarber@gmail.com
-
philwild@gmail.com
-
stef.coene@docum.org