LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Include config Files

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Include config Files
From: Joseph Mack NA3T <jmack@xxxxxxxx>
Date: Thu, 10 Aug 2006 06:10:31 -0700 (PDT)
On Wed, 9 Aug 2006, Simon Pearce wrote:

The keepalived.conf is becoming extremly large so i was wondering is there a way of including addional config files for the virtual servers.

I don't think so, and the silence on the list, seems to confirm that. Alexandre tends to work on keepalived in spurts, with no much happening (at least as far as users can see) for long periods in between. You might want to contact Alexandre on the keepalived list or directly and see what he says. I can't imagine it would be too hard to add an include feature to the conf file, and it would be faster if you did it yourself and sent in the patches than wait for Alexandre.

Another question i was thinking about is there a way of grouping virtual server configs so that i could have more than one ip per virtual server config. Something like this i hope this makes sense.

Let's see if I understand what you want. You want clients to ssh to an IP in 213.160.0.0/16 be forwarded to a realserver at 192.168.1.2? If so, this is usually done with fwmarks. See if keepalived supports fwmarks.

Joe

virtual_server 213.160.x.x 22 {
virtual_server 213.160.x.x 22
delay_loop 30
lb_algo rr
lb_kind NAT
protocol TCP
ha_suspend

real_server 192.168.1.2 22 {
weight 1
TCP_CHECK {
connect_timeout 3
connect_port 22
               }


Regards Simon
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

<Prev in Thread] Current Thread [Next in Thread>