[prev in list] [next in list] [prev in thread] [next in thread]
List: keepalived-devel
Subject: Re: [Keepalived-devel] keepalived.conf help
From: Todd Fleisher <todd () fleish ! org>
Date: 2009-02-25 2:26:38
Message-ID: 50078334-50F4-4412-9CB1-960BE41ED3F3 () fleish ! org
[Download RAW message or body]
It's documented in the keepalived.conf manpage if nowhere else.
Virtual server group(s)
# optional
# this groups allows a service on a real_server
# to belong to multiple virtual services
# and to be only health checked once.
# Only for very large LVSs.
virtual_server_group <STRING> {
#VIP port
<IPADDR> <PORT>
<IPADDR> <PORT>
...
#
# <IPADDR RANGE> has the form
# XXX.YYY.ZZZ.WWW-VVV eg 192.168.200.1-10
# range includes both .1 and .10 address
<IPADDR RANGE> <PORT># VIP range VPORT
<IPADDR RANGE> <PORT>
...
fwmark <INT> # fwmark
fwmark <INT>
... }
So, for your configuration, I think you'd want something like this:
virtual_server_group VS-GROUP1-DR {
202.xxx.xxx.22 80
202.xxx.xxx.33 80
202.xxx.xxx.34 80
202.xxx.xxx.36 80
202.xxx.xxx.57 80
202.xxx.xxx.70 80
202.xxx.xxx.90 80
}
virtual_server group VS-GROUP1-DR {
delay_loop 6
lb_algo rr
lb_kind DR
protocol TCP
real_server 202.xxx.xxx.113 80 {
weight 1
TCP_CHECK {
connect_timeout 3
connect_port 80
}
}
real_server 202.xxx.xxx.114 80 {
weight 1
TCP_CHECK {
connect_timeout 3
connect_port 80
}
}
}
-Todd
On Feb 24, 2009, at 4:53 PM, Adam Niedzwiedzki wrote:
> Umm ok,
>
> Looking through the keepalived userguide.nsf I can't see anything on
> this?
> Where can I find the documentation on that directive?
>
> Cheers
> Adam
>
> -----Original Message-----
> From: Todd Fleisher [mailto:fleish@mac.com]
> Sent: Wednesday, 25 February 2009 11:45 AM
> To: Adam Niedzwiedzki
> Cc: keepalived-devel@lists.sourceforge.net
> Subject: Re: [Keepalived-devel] keepalived.conf help
>
> Check out the virtual_server_group directive. It will do exactly what
> you want.
>
> -T
>
> On Feb 24, 2009, at 3:57 PM, Adam Niedzwiedzki wrote:
>
>> Hi guys,
>>
>> I have a single server acting as my LVS box it has a single nic in
>> it (LVS
>> is not on my firewall/router etc)
>>
>> Very simple question,
>> In the virtual_server section of the keepalived.conf is it possible
>> to list
>> more then 1 ip in the virtual_server IP | PORT section, instead of
>> having to
>> list the same block over and over again, as all the VIP's are set
>> over 2
>> servers.
>>
>> ! Configuration File for keepalived
>>
>> global_defs {
>> notification_email {
>> xxx@xxx.com
>> }
>> notification_email_from support@xxx.com
>> smtp_server xxx.xxx.xxx.xxx
>> smtp_connect_timeout 30
>> lvs_id LVS_MAIN1
>> }
>>
>> vrrp_instance VI_1 {
>> state MASTER
>> interface eth0
>> virtual_router_id 10
>> priority 150
>> advert_int 1
>> virtual_ipaddress {
>> 202.xxx.xxx.22
>> 202.xxx.xxx.33
>> 202.xxx.xxx.34
>> 202.xxx.xxx.36
>> 202.xxx.xxx.57
>> 202.xxx.xxx.70
>> 202.xxx.xxx.90
>> }
>> }
>>
>> virtual_server 202.xxx.xxx.22 80 {
>> delay_loop 6
>> lb_algo rr
>> lb_kind DR
>> protocol TCP
>>
>> real_server 202.xxx.xxx.113 80 {
>> weight 1
>> TCP_CHECK {
>> connect_timeout 3
>> connect_port 80
>> }
>> }
>>
>> real_server 202.xxx.xxx.114 80 {
>> weight 1
>> TCP_CHECK {
>> connect_timeout 3
>> connect_port 80
>> }
>> }
>> }
>>
>> I would have to have the virtual_server section listed for each of
>> the
>> virtual_ipaddress's is there another way to do this?
>>
>> Cheers
>> Ad
>>
>>
>>
> ----------------------------------------------------------------------------
> --
>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>> Francisco, CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source
>> code: SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Keepalived-devel mailing list
>> Keepalived-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/keepalived-devel
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content, and is believed to be clean.
>>
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Keepalived-devel mailing list
> Keepalived-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel
>
> --
> This message has been scanned for viruses and
> dangerous content, and is believed to be clean.
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Keepalived-devel mailing list
Keepalived-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic