UDP / DHCP / LDIRECTORD
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Simon Horman
maintainerHi Brian,
here are some patches to test.
I have only lightly tested them to the extent that they compile and appear to configure a valid service.
You can enable one packet scheduling (OPS) by passing the -o option to ipvsadm when creating a virtual service.
e.g. # ipvsadm -A -u 172.17.60.211:80 -o # ipvsadm -L -n IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn UDP 172.17.60.211:80 wlc ops
There are three patches:
ops-kernel-2.6.18-128.el5.patch: Patch against CentOS-5.3's 2.6.18-128 kernel. ops-ipvsadm-1.24-10: Patch against CentOS-5.3's ipvsadm 1.24-10. ops-ipvsadm-1.24: Patch against upstream ipvsadm 1.24
I have not up-ported the code to the 2.6.33 kernel and ipvsadm 1.25 yet.
From: Julian Anastasov <[email protected]>
ipvsadm: one-packet scheduling
Allow one-packet scheduling for UDP connections. When the fwmark-based or normal virtual service is marked with '-o' or '--ops' options all connections are created only to schedule one packet. Useful to schedule UDP packets from same client port to different real servers. Recommended with RR or WRR schedulers (the connections are not visible with ipvsadm -L).
Up-port of http://www.ssi.bg/~ja/tmp/ops-ipvsadm-1.21-1.diff to ipvsadm-1.24-10 by Simon Horman.
ipvsadm.c +27 -5
@@ -182,7 +182,8 @@ static const char* cmdnames[] = {#define OPT_PERSISTENTCONN 0x20000#define OPT_SORT 0x40000#define OPT_SYNCID 0x80000 -#define NUMBER_OF_OPT 20 +#define OPT_ONEPACKET 0x200000 +#define NUMBER_OF_OPT 21static const char * optnames[] = {"numeric" ,
@@ -205,6 +206,7 @@ static const char* optnames[] = {"persistent-conn" ,"sort" ,"syncid" , + "ops", };/*
@@ -388,6 +390,7 @@ parse_options(int argc, char **argv, str {"thresholds", '\0', POPT_ARG_NONE, NULL, '9'}, {"persistent-conn", '\0', POPT_ARG_NONE, NULL, 'P'}, {"sort", '\0', POPT_ARG_NONE, NULL, '0'}, + {"ops", 'o', POPT_ARG_NONE, NULL, 'o'}, {NULL, 0, 0, NULL, 0} };
@@ -492,7 +495,7 @@ parse_options(int argc, char **argv, strbreak ;case 'p' :set_option (options,OPT_PERSISTENT ); - ce->svc.flags =IP_VS_SVC_F_PERSISTENT ; + ce->svc.flags |=IP_VS_SVC_F_PERSISTENT ; ce->svc.timeout =parse_timeout (optarg,1 ,MAX_TIMEOUT );break ;
@@ -590,6 +593,10 @@ parse_options(int argc, char **argv, strset_option (options,OPT_SORT ); *format |=FMT_SORT ;break ; +case 'o' : +set_option (options,OPT_ONEPACKET ); + ur->vs_flags |=IP_VS_SVC_F_ONEPACKET ; +break ;default :fail (2 ,"invalid option `%s'" ,poptBadOption (context,POPT_BADOPTION_NOALIAS ));
@@ -636,7 +643,7 @@ parse_options(int argc, char **argv, str unsigned int *options, unsigned int *format) { int c, parse; -const char *optstring ="AEDCZSRaedlLhvt:u:f:s:M:p::r:gmiw:x:y:cn" ; +const char *optstring ="AEDCZSRaedlLhvt:u:f:s:M:p::r:gmiw:x:y:cno" ; const struct option long_options[] = { {"add-service", 0, 0, 'A'}, {"edit-service", 0, 0, 'E'},
@@ -678,6 +685,7 @@ parse_options(int argc, char **argv, str {"thresholds", 0, 0, '9'}, {"persistent-conn", 0, 0, 'P'}, {"sort", 0, 0, '0'}, + {"ops", 0, 0, 'o'}, {"help", 0, 0, 'h'}, {0, 0, 0, 0} };
@@ -801,7 +809,7 @@ parse_options(int argc, char **argv, strbreak ;case 'p' :set_option (options,OPT_PERSISTENT ); - ce->svc.flags =IP_VS_SVC_F_PERSISTENT ; + ce->svc.flags |=IP_VS_SVC_F_PERSISTENT ;if (!optarg && optind < argc && argv[optind][0 ] !='-' && argv[optind][0 ] !='!' ) optarg = argv[optind++];
@@ -902,6 +910,10 @@ parse_options(int argc, char **argv, strset_option (options,OPT_SORT ); *format |=FMT_SORT ;break ; +case 'o' : +set_option (options,OPT_ONEPACKET ); + ce->svc.flags |=IP_VS_SVC_F_ONEPACKET ; +break ;default :fail (2 ,"invalid option `%s'" , argv[optind-1 ]); }
@@ -960,10 +972,15 @@ static int process_options(int argc, chaif (ce.cmd ==CMD_ADD || ce.cmd ==CMD_EDIT ) {/* Make sure that port zero service is persistent */ if (!ce.svc.fwmark && !ce.svc.port && - (ce.svc.flags !=IP_VS_SVC_F_PERSISTENT )) + !(ce.svc.flags &IP_VS_SVC_F_PERSISTENT ))fail (2 ,"Zero port specified " "for non-persistent service" ); +if (ce.svc.flags &IP_VS_SVC_F_ONEPACKET && + !ce.svc.fwmark && ce.svc.protocol !=IPPROTO_UDP ) +fail (2 ,"One-Packet Scheduling is only " +"for UDP virtual services" ); +/* Set the default scheduling algorithm if not specified */ if (strlen (ce.svc.sched_name) ==0 )strcpy (ce.svc.sched_name,DEF_SCHED );
@@ -1328,6 +1345,7 @@ static void usage_exit(const char *progr" --thresholds output of thresholds information\n" " --persistent-conn output of persistent connection info\n" " --sort sorting output of service/server entries\n" +" --ops -o one-packet scheduling\n" " --numeric -n numeric output of addresses and ports\n" , DEF_SCHED);
@@ -1629,6 +1647,8 @@ print_service_entry(ipvs_service_entry_tprintf (" -M %s" ,inet_ntoa (mask)); } } +if (se->flags &IP_VS_SVC_F_ONEPACKET ) +printf (" ops" ); }else if (format &FMT_STATS ) {printf ("%-33s" , svc_name);print_largenum (se->stats.conns);
@@ -1653,6 +1673,8 @@ print_service_entry(ipvs_service_entry_tprintf (" mask %s" ,inet_ntoa (mask)); } } +if (se->flags &IP_VS_SVC_F_ONEPACKET ) +printf (" ops" ); }printf ("\n" );
From: Julian Anastasov <[email protected]>
ipvsadm: one-packet scheduling
Allow one-packet scheduling for UDP connections. When the fwmark-based or normal virtual service is marked with '-o' or '--ops' options all connections are created only to schedule one packet. Useful to schedule UDP packets from same client port to different real servers. Recommended with RR or WRR schedulers (the connections are not visible with ipvsadm -L).
Up-port of http://www.ssi.bg/~ja/tmp/ops-ipvsadm-1.21-1.diff to ipvsadm-1.24 by Simon Horman.
ipvsadm.c +27 -5
@@ -184,7 +184,8 @@ static const char* cmdnames[] = {#define OPT_SORT 0x040000#define OPT_SYNCID 0x080000#define OPT_EXACT 0x100000 -#define NUMBER_OF_OPT 21 +#define OPT_ONEPACKET 0x200000 +#define NUMBER_OF_OPT 22static const char * optnames[] = {"numeric" ,
@@ -208,6 +209,7 @@ static const char* optnames[] = {"sort" ,"syncid" ,"exact" , + "ops", };/*
@@ -393,6 +395,7 @@ parse_options(int argc, char **argv, str {"persistent-conn", '\0', POPT_ARG_NONE, NULL, 'P'}, {"sort", '\0', POPT_ARG_NONE, NULL, '0'}, {"exact", 'X', POPT_ARG_NONE, NULL, 'X'}, + {"ops", 'o', POPT_ARG_NONE, NULL, 'o'}, {NULL, 0, 0, NULL, 0} };
@@ -497,7 +500,7 @@ parse_options(int argc, char **argv, strbreak ;case 'p' :set_option (options,OPT_PERSISTENT ); - ce->svc.flags =IP_VS_SVC_F_PERSISTENT ; + ce->svc.flags |=IP_VS_SVC_F_PERSISTENT ; ce->svc.timeout =parse_timeout (optarg,1 ,MAX_TIMEOUT );break ;
@@ -599,6 +602,10 @@ parse_options(int argc, char **argv, strset_option (options,OPT_EXACT ); *format |=FMT_EXACT ;break ; +case 'o' : +set_option (options,OPT_ONEPACKET ); + ur->vs_flags |=IP_VS_SVC_F_ONEPACKET ; +break ;default :fail (2 ,"invalid option `%s'" ,poptBadOption (context,POPT_BADOPTION_NOALIAS ));
@@ -645,7 +652,7 @@ parse_options(int argc, char **argv, str unsigned int *options, unsigned int *format) { int c, parse; -const char *optstring ="AEDCZSRaedlLhvt:u:f:s:M:p::r:gmiw:x:y:cnX" ; +const char *optstring ="AEDCZSRaedlLhvt:u:f:s:M:p::r:gmiw:x:y:cnoX" ; const struct option long_options[] = { {"add-service", 0, 0, 'A'}, {"edit-service", 0, 0, 'E'},
@@ -688,6 +695,7 @@ parse_options(int argc, char **argv, str {"persistent-conn", 0, 0, 'P'}, {"sort", 0, 0, '0'}, {"exact", 0, 0, 'X'}, + {"ops", 0, 0, 'o'}, {"help", 0, 0, 'h'}, {0, 0, 0, 0} };
@@ -811,7 +819,7 @@ parse_options(int argc, char **argv, strbreak ;case 'p' :set_option (options,OPT_PERSISTENT ); - ce->svc.flags =IP_VS_SVC_F_PERSISTENT ; + ce->svc.flags |=IP_VS_SVC_F_PERSISTENT ;if (!optarg && optind < argc && argv[optind][0 ] !='-' && argv[optind][0 ] !='!' ) optarg = argv[optind++];
@@ -916,6 +924,10 @@ parse_options(int argc, char **argv, strset_option (options,OPT_EXACT ); *format |=FMT_EXACT ;break ; +case 'o' : +set_option (options,OPT_ONEPACKET ); + ce->svc.flags |=IP_VS_SVC_F_ONEPACKET ; +break ;default :fail (2 ,"invalid option `%s'" , argv[optind-1 ]); }
@@ -974,10 +986,15 @@ static int process_options(int argc, chaif (ce.cmd ==CMD_ADD || ce.cmd ==CMD_EDIT ) {/* Make sure that port zero service is persistent */ if (!ce.svc.fwmark && !ce.svc.port && - (ce.svc.flags !=IP_VS_SVC_F_PERSISTENT )) + !(ce.svc.flags &IP_VS_SVC_F_PERSISTENT ))fail (2 ,"Zero port specified " "for non-persistent service" ); +if (ce.svc.flags &IP_VS_SVC_F_ONEPACKET && + !ce.svc.fwmark && ce.svc.protocol !=IPPROTO_UDP ) +fail (2 ,"One-Packet Scheduling is only " +"for UDP virtual services" ); +/* Set the default scheduling algorithm if not specified */ if (strlen (ce.svc.sched_name) ==0 )strcpy (ce.svc.sched_name,DEF_SCHED );
@@ -1343,6 +1360,7 @@ static void usage_exit(const char *progr" --thresholds output of thresholds information\n" " --persistent-conn output of persistent connection info\n" " --sort sorting output of service/server entries\n" +" --ops -o one-packet scheduling\n" " --numeric -n numeric output of addresses and ports\n" , DEF_SCHED);
@@ -1653,6 +1671,8 @@ print_service_entry(ipvs_service_entry_tprintf (" -M %s" ,inet_ntoa (mask)); } } +if (se->flags &IP_VS_SVC_F_ONEPACKET ) +printf (" ops" ); }else if (format &FMT_STATS ) {printf ("%-33s" , svc_name);print_largenum (se->stats.conns, format);
@@ -1677,6 +1697,8 @@ print_service_entry(ipvs_service_entry_tprintf (" mask %s" ,inet_ntoa (mask)); } } +if (se->flags &IP_VS_SVC_F_ONEPACKET ) +printf (" ops" ); }printf ("\n" );
From: Julian Anastasov <[email protected]>
IPVS: one-packet scheduling
Allow one-packet scheduling for UDP connections. When the fwmark-based or normal virtual service is marked with '-o' or '--ops' options all connections are created only to schedule one packet. Useful to schedule UDP packets from same client port to different real servers. Recommended with RR or WRR schedulers (the connections are not visible with ipvsadm -L).
Up-port of http://www.ssi.bg/~ja/tmp/ops-2.4.32-1.diff to 2.6.18-128.el5 by Simon Horman.
include/net/ip_vs.h renamed from linux/include/net/ip_vs.h +2 -0
@@ -19,6 +19,7 @@*/ #define IP_VS_SVC_F_PERSISTENT 0x0001/* persistent port */ #define IP_VS_SVC_F_HASHED 0x0002/* hashed entry */ +#define IP_VS_SVC_F_ONEPACKET 0x0004/* one-packet scheduling */ /* * Destination Server Flags
@@ -83,6 +84,7 @@#define IP_VS_CONN_F_SEQ_MASK 0x0600/* in/out sequence mask */ #define IP_VS_CONN_F_NO_CPORT 0x0800/* no client port set yet */ #define IP_VS_CONN_F_TEMPLATE 0x1000/* template, not connection */ +#define IP_VS_CONN_F_ONE_PACKET 0x2000/* forward only one packet */ /* Move it to better place one day, for now keep it unique */ #define NFC_IPVS_PROPERTY 0x10000
net/ipv4/ipvs/ip_vs_conn.c renamed from linux/net/ipv4/ipvs/ip_vs_conn.c +10 -1
@@ -139,6 +139,9 @@unsigned hash;int ret; +if (cp->flags &IP_VS_CONN_F_ONE_PACKET ) +return 0 ; +/* Hash by protocol, client address and port */ hash =ip_vs_conn_hashkey (cp->protocol, cp->caddr, cp->cport);
@@ -327,6 +330,12 @@*/ void ip_vs_conn_put (struct ip_vs_conn *cp) { +if (cp->flags &IP_VS_CONN_F_ONE_PACKET ) { +ip_vs_conn_expire_now (cp); +__ip_vs_conn_put (cp); +return ; + } +/* reset it expire in its timeout */ mod_timer (&cp->timer, jiffies+cp->timeout);
@@ -1240,7 +1249,7 @@/* * unhash it if it is hashed in the conn table */ -if (!ip_vs_conn_unhash (cp)) +if (!ip_vs_conn_unhash (cp) && !(cp->flags &IP_VS_CONN_F_ONE_PACKET )) goto expire_later;/*
net/ipv4/ipvs/ip_vs_core.c renamed from linux/net/ipv4/ipvs/ip_vs_core.c +14 -3
@@ -159,6 +159,7 @@const __u16 *portp;struct ip_vs_conn *ct;__u16 dport;/* destination port to forward */ +__u16 flags;__u32 snet;/* source network of the client, after masking */ portp = (__u16 *)&(((char *)iph)[iph->ihl*4 ]);
@@ -290,6 +291,9 @@ dport = portp[1 ]; } + flags = (svc->flags &IP_VS_SVC_F_ONEPACKET + && iph->protocol ==IPPROTO_UDP )? +IP_VS_CONN_F_ONE_PACKET :0 ;/* * Create a new connection according to the template */
@@ -297,7 +301,7 @@ iph->saddr, portp[0 ], iph->daddr, portp[1 ], dest->addr, dport, -0 , + flags, dest);if (cp ==NULL ) {ip_vs_conn_put (ct);
@@ -332,6 +336,7 @@struct ip_vs_conn *cp =NULL ;struct ip_vs_dest *dest;__u16 _ports[2 ], *pptr; +__u16 flags; pptr =skb_header_pointer (skb, iph->ihl*4 ,sizeof (_ports), _ports);
@@ -357,6 +362,9 @@return NULL ; } + flags = (svc->flags &IP_VS_SVC_F_ONEPACKET + && iph->protocol ==IPPROTO_UDP )? +IP_VS_CONN_F_ONE_PACKET :0 ;/* * Create a connection entry. */
@@ -364,7 +372,7 @@ iph->saddr, pptr[0 ], iph->daddr, pptr[1 ], dest->addr, dest->port?dest->port:pptr[1 ], -0 , + flags, dest);if (cp ==NULL )return NULL ;
@@ -404,6 +412,9 @@ && (inet_addr_type(iph->daddr) == RTN_UNICAST)) {int ret;struct ip_vs_conn *cp; +__u16 flags = (svc->flags &IP_VS_SVC_F_ONEPACKET && + iph->protocol ==IPPROTO_UDP )? +IP_VS_CONN_F_ONE_PACKET :0 ;ip_vs_service_put (svc);
@@ -413,7 +424,7 @@ iph->saddr, portp[0 ], iph->daddr, portp[1 ],0 ,0 , -IP_VS_CONN_F_BYPASS , +IP_VS_CONN_F_BYPASS | flags, NULL);if (cp ==NULL ) {kfree_skb (skb);
Thanks so much!! We will start testing this today!
Brian Carpio
-----Original Message-----
From: Simon Horman [mailto:[email protected]]
Sent: Monday, April 12, 2010 8:56 PM
To: Brian Carpio
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Hi Brian,
here are some patches to test.
I have only lightly tested them to the extent that they compile and appear to configure a valid service.
You can enable one packet scheduling (OPS) by passing the -o option to ipvsadm when creating a virtual service.
e.g. # ipvsadm -A -u 172.17.60.211:80 -o # ipvsadm -L -n IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn UDP 172.17.60.211:80 wlc ops
There are three patches:
ops-kernel-2.6.18-128.el5.patch: Patch against CentOS-5.3's 2.6.18-128 kernel. ops-ipvsadm-1.24-10: Patch against CentOS-5.3's ipvsadm 1.24-10. ops-ipvsadm-1.24: Patch against upstream ipvsadm 1.24
I have not up-ported the code to the 2.6.33 kernel and ipvsadm 1.25 yet.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2808 - Release Date: 04/13/10 00:32:00
Simon,
Thanks again for all of your hard work, I have sent over a million UDP DHCP packets at the new kernel/ipvsadm with the patches applied and currently the only issue (which you know about already) is that ldirectord doesn't know about the -o option which causes a slight issue with heartbeat (but I just put in a cheap fix in my ldirectord start script to edit the services created by ldirectord)..
So not only have I sent over 1,000,000 packets to this setup but I have also sent them as fast as 10 packets every 3 milliseconds, I plan to do a long term week long test but I don't foresee any issues..
Let me know if there is any other testing you would like us to do.. or if you would like me to send out the kernel-2.6.18-128 with the patch and the ipvsadm-1.24-10 rpm with the patch..
Thanks again Simon you are the man!!
Brian Carpio
-----Original Message-----
From: Simon Horman [mailto:[email protected]]
Sent: Monday, April 12, 2010 8:56 PM
To: Brian Carpio
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Hi Brian,
here are some patches to test.
I have only lightly tested them to the extent that they compile and appear to configure a valid service.
You can enable one packet scheduling (OPS) by passing the -o option to ipvsadm when creating a virtual service.
e.g. # ipvsadm -A -u 172.17.60.211:80 -o # ipvsadm -L -n IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn UDP 172.17.60.211:80 wlc ops
There are three patches:
ops-kernel-2.6.18-128.el5.patch: Patch against CentOS-5.3's 2.6.18-128 kernel. ops-ipvsadm-1.24-10: Patch against CentOS-5.3's ipvsadm 1.24-10. ops-ipvsadm-1.24: Patch against upstream ipvsadm 1.24
I have not up-ported the code to the 2.6.33 kernel and ipvsadm 1.25 yet.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2808 - Release Date: 04/13/10 00:32:00
Simon Horman
maintainerQuoted 9 lines · Brian Carpio
Simon,
Thanks again for all of your hard work, I have sent over a million UDP DHCP packets at the new kernel/ipvsadm with the patches applied and currently the only issue (which you know about already) is that ldirectord doesn't know about the -o option which causes a slight issue with heartbeat (but I just put in a cheap fix in my ldirectord start script to edit the services created by ldirectord)..
So not only have I sent over 1,000,000 packets to this setup but I have also sent them as fast as 10 packets every 3 milliseconds, I plan to do a long term week long test but I don't foresee any issues..
Let me know if there is any other testing you would like us to do.. or if you would like me to send out the kernel-2.6.18-128 with the patch and the ipvsadm-1.24-10 rpm with the patch..
Thanks again Simon you are the man!!
Hi Brian,
thanks for your testing, it is very valuable. I'm very glad that the code is working, though the real credit should go to Julian Anastasov, I just up-ported the code.
I will try and make another up-port to 2.6.33, which is likely to be a bit more involved than the port to 2.6.18, as quite a lot of changes have passed under the bridge between 2.6.18 and 2.6.33.
On a personal note, I'm in the process of moving at the moment. Unfortunately that is likely to impact on my time for the next month or so.
A message that is not in the archive (sent off-list or not yet received): 0CABC52FBCB6564DA3F567CC933D1FF36854D03287@VA3DIAXVS061.RED001.local
All,
So this patch has been working for us flawlessly for the last 5 months or so.
Our infrastructure is 100% virtualized, the other day our loadbalacner01 had a memory leak and crashed, since we use ldirectord with heartbeat loadbalacner02 took over, however ever since then it seems like the single packet UDP scheduling has stopped working. Even if I fail back over the loadbalacner01 VM, I still see all the DHCP traffic going to only one backend server.
If I run ipvsadm -L -n I can see that ipvsadm thinks both of the backend servers are up since the weight is set to 1 for each server, if I reboot the second backend server the one which is not receiving any traffic then run ipvsadm -L -n I can see its weight go to 0 and in the ldirectord log I can see that its marked dead.
I have exported one of the loadblancers and one of the backend servers (using VMware) and imported them into another ESXi server, once I boot up the loadbalacner it works perfectly... I'm very stumped why this would happen, is there any additional logging you can think of that I might want to enable to see where the exact problem is?
Here are my configs:
/etc/ha.d/ldirectord.conf
checktimeout=10
checkinterval=2
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=10.10.10.10:67
real=backend_server01:67 masq
real=backend_server02:67 masq
protocol=udp
checktype=ping
scheduler=rr
virtual=10.10.10.10:68
real=back_endserver01:68 masq
real=backend_server02:68 masq
protocol=udp
checktype=ping
scheduler=rr
I had to rewrite the ldirectord start script and added the following lines in the start and restart sections:
ipvsadm -E -u 10.10.10.10:67 -o -s rr
ipvsadm -E -u 10.10.10.10:68 -o -s rrHere is the output of ipvsadm -L -n when both backend servers are up (working environment):
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.10.10.10:67 rr ops
-> backend_server01:67 Masq 1 0 16731 -> backend_server02:67 Masq 1 0 17447 UDP 192.168.181.67:68 rr ops -> backend_server01:68 Masq 1 0 0 -> backend_server02:68 Masq 1 0 0
Here is the output of ipvsadm -L -n when both backend servers are up (non-working environment):
[root@lb01 log]# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.10.10.10:67 rr ops
-> backend_server01:67 Masq 1 0 1 -> backend_server02:67 Masq 1 0 0 UDP 10.10.10.10:68 rr ops -> backend_server01:68 Masq 1 0 0 -> backend_server02:68 Masq 1 0 0
The only difference I see is that in my "Working" environment my InActConn number increases as I send load through it, in my "Non-Working" environment the InActConn stays at 1 the entire time.. Another difference is that in the "Working" environment I am using a DHCP load testing tool one of my developers wrote, whereas in the "NON-Working" environment we are actually getting DHCP traffic from another network device...
Brian Carpio
Senior Systems Engineer
Office: +1.303.962.7242
Mobile: +1.720.319.8617
Email: [email protected]
-----Original Message-----
From: Brian Carpio
Sent: Thursday, April 15, 2010 1:57 PM
To: Simon Horman
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: RE: [Linux-HA] UDP / DHCP / LDIRECTORD
Simon,
Thanks again for all of your hard work, I have sent over a million UDP DHCP packets at the new kernel/ipvsadm with the patches applied and currently the only issue (which you know about already) is that ldirectord doesn't know about the -o option which causes a slight issue with heartbeat (but I just put in a cheap fix in my ldirectord start script to edit the services created by ldirectord)..
So not only have I sent over 1,000,000 packets to this setup but I have also sent them as fast as 10 packets every 3 milliseconds, I plan to do a long term week long test but I don't foresee any issues..
Let me know if there is any other testing you would like us to do.. or if you would like me to send out the kernel-2.6.18-128 with the patch and the ipvsadm-1.24-10 rpm with the patch..
Thanks again Simon you are the man!!
Brian Carpio
-----Original Message-----
From: Simon Horman [mailto:[email protected]]
Sent: Monday, April 12, 2010 8:56 PM
To: Brian Carpio
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Hi Brian,
here are some patches to test.
I have only lightly tested them to the extent that they compile and appear to configure a valid service.
You can enable one packet scheduling (OPS) by passing the -o option to ipvsadm when creating a virtual service.
e.g. # ipvsadm -A -u 172.17.60.211:80 -o # ipvsadm -L -n IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn UDP 172.17.60.211:80 wlc ops
There are three patches:
ops-kernel-2.6.18-128.el5.patch: Patch against CentOS-5.3's 2.6.18-128 kernel. ops-ipvsadm-1.24-10: Patch against CentOS-5.3's ipvsadm 1.24-10. ops-ipvsadm-1.24: Patch against upstream ipvsadm 1.24
I have not up-ported the code to the 2.6.33 kernel and ipvsadm 1.25 yet.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2808 - Release Date: 04/13/10 00:32:00
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Apparently this is related to some sort of race condition (possibly a problem with my ldirectord start script which does an edit on the ipvsadm config after ldirectord has started) if ldirectord starts to receive traffic on port 67/68 before the following commands are run:
ipvsadm -E -u 10.10.10.10:67 -o -s rr
ipvsadm -E -u 10.10.10.10:68 -o -s rrThen it will be stuck sending traffic to the fist server in the list.
Brian Carpio
Senior Systems Engineer
Office: +1.303.962.7242
Mobile: +1.720.319.8617
Email: [email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Brian Carpio
Sent: Thursday, February 24, 2011 3:47 PM
To: 'Simon Horman'
Cc: 'lvs-devel'; 'Julian Anastasov'; '[email protected]'
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
All,
So this patch has been working for us flawlessly for the last 5 months or so.
Our infrastructure is 100% virtualized, the other day our loadbalacner01 had a memory leak and crashed, since we use ldirectord with heartbeat loadbalacner02 took over, however ever since then it seems like the single packet UDP scheduling has stopped working. Even if I fail back over the loadbalacner01 VM, I still see all the DHCP traffic going to only one backend server.
If I run ipvsadm -L -n I can see that ipvsadm thinks both of the backend servers are up since the weight is set to 1 for each server, if I reboot the second backend server the one which is not receiving any traffic then run ipvsadm -L -n I can see its weight go to 0 and in the ldirectord log I can see that its marked dead.
I have exported one of the loadblancers and one of the backend servers (using VMware) and imported them into another ESXi server, once I boot up the loadbalacner it works perfectly... I'm very stumped why this would happen, is there any additional logging you can think of that I might want to enable to see where the exact problem is?
Here are my configs:
/etc/ha.d/ldirectord.conf
checktimeout=10
checkinterval=2
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=10.10.10.10:67
real=backend_server01:67 masq
real=backend_server02:67 masq
protocol=udp
checktype=ping
scheduler=rr
virtual=10.10.10.10:68
real=back_endserver01:68 masq
real=backend_server02:68 masq
protocol=udp
checktype=ping
scheduler=rr
I had to rewrite the ldirectord start script and added the following lines in the start and restart sections:
ipvsadm -E -u 10.10.10.10:67 -o -s rr
ipvsadm -E -u 10.10.10.10:68 -o -s rrHere is the output of ipvsadm -L -n when both backend servers are up (working environment):
IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.10.10.10:67 rr ops
-> backend_server01:67 Masq 1 0 16731 -> backend_server02:67 Masq 1 0 17447 UDP 192.168.181.67:68 rr ops -> backend_server01:68 Masq 1 0 0 -> backend_server02:68 Masq 1 0 0
Here is the output of ipvsadm -L -n when both backend servers are up (non-working environment):
[root@lb01 log]# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.10.10.10:67 rr ops
-> backend_server01:67 Masq 1 0 1 -> backend_server02:67 Masq 1 0 0 UDP 10.10.10.10:68 rr ops -> backend_server01:68 Masq 1 0 0 -> backend_server02:68 Masq 1 0 0
The only difference I see is that in my "Working" environment my InActConn number increases as I send load through it, in my "Non-Working" environment the InActConn stays at 1 the entire time.. Another difference is that in the "Working" environment I am using a DHCP load testing tool one of my developers wrote, whereas in the "NON-Working" environment we are actually getting DHCP traffic from another network device...
Brian Carpio
Senior Systems Engineer
Office: +1.303.962.7242
Mobile: +1.720.319.8617
Email: [email protected]
-----Original Message-----
From: Brian Carpio
Sent: Thursday, April 15, 2010 1:57 PM
To: Simon Horman
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: RE: [Linux-HA] UDP / DHCP / LDIRECTORD
Simon,
Thanks again for all of your hard work, I have sent over a million UDP DHCP packets at the new kernel/ipvsadm with the patches applied and currently the only issue (which you know about already) is that ldirectord doesn't know about the -o option which causes a slight issue with heartbeat (but I just put in a cheap fix in my ldirectord start script to edit the services created by ldirectord)..
So not only have I sent over 1,000,000 packets to this setup but I have also sent them as fast as 10 packets every 3 milliseconds, I plan to do a long term week long test but I don't foresee any issues..
Let me know if there is any other testing you would like us to do.. or if you would like me to send out the kernel-2.6.18-128 with the patch and the ipvsadm-1.24-10 rpm with the patch..
Thanks again Simon you are the man!!
Brian Carpio
-----Original Message-----
From: Simon Horman [mailto:[email protected]]
Sent: Monday, April 12, 2010 8:56 PM
To: Brian Carpio
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Hi Brian,
here are some patches to test.
I have only lightly tested them to the extent that they compile and appear to configure a valid service.
You can enable one packet scheduling (OPS) by passing the -o option to ipvsadm when creating a virtual service.
e.g. # ipvsadm -A -u 172.17.60.211:80 -o # ipvsadm -L -n IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn UDP 172.17.60.211:80 wlc ops
There are three patches:
ops-kernel-2.6.18-128.el5.patch: Patch against CentOS-5.3's 2.6.18-128 kernel. ops-ipvsadm-1.24-10: Patch against CentOS-5.3's ipvsadm 1.24-10. ops-ipvsadm-1.24: Patch against upstream ipvsadm 1.24
I have not up-ported the code to the 2.6.33 kernel and ipvsadm 1.25 yet.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2808 - Release Date: 04/13/10 00:32:00 _______________________________________________ Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Hi,
It looks like there also might be a memory leak in this patch.. over the last few months we have seen memory grow slowly but lately the traffic has increased and the memory utilization of the Linux box is now growing faster. I put in a few scripts to try and detect where this memory leak was coming from and when watching /proc/meminfo over the last few days I saw that slab was growing.
So I put in a new script to watch slabtop and I can see that ip_vs_conn is growing. The number of SLABS just grows and grows, and so does the CACHE_SIZE. Is there any way you have a chance to look into this for us? Any additional information I can give to you about this problem?
Thanks a lot,
Brian Carpio
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Brian Carpio
Sent: Friday, February 25, 2011 12:14 PM
To: General Linux-HA mailing list; 'Simon Horman'
Cc: 'lvs-devel'; 'Julian Anastasov'
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Apparently this is related to some sort of race condition (possibly a problem with my ldirectord start script which does an edit on the ipvsadm config after ldirectord has started) if ldirectord starts to receive traffic on port 67/68 before the following commands are run:
ipvsadm -E -u 10.10.10.10:67 -o -s rr
ipvsadm -E -u 10.10.10.10:68 -o -s rrThen it will be stuck sending traffic to the fist server in the list.
Brian Carpio
Senior Systems Engineer
Office: +1.303.962.7242
Mobile: +1.720.319.8617
Email: [email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Brian Carpio
Sent: Thursday, February 24, 2011 3:47 PM
To: 'Simon Horman'
Cc: 'lvs-devel'; 'Julian Anastasov'; '[email protected]'
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
All,
So this patch has been working for us flawlessly for the last 5 months or so.
Our infrastructure is 100% virtualized, the other day our loadbalacner01 had a memory leak and crashed, since we use ldirectord with heartbeat loadbalacner02 took over, however ever since then it seems like the single packet UDP scheduling has stopped working. Even if I fail back over the loadbalacner01 VM, I still see all the DHCP traffic going to only one backend server.
If I run ipvsadm -L -n I can see that ipvsadm thinks both of the backend servers are up since the weight is set to 1 for each server, if I reboot the second backend server the one which is not receiving any traffic then run ipvsadm -L -n I can see its weight go to 0 and in the ldirectord log I can see that its marked dead.
I have exported one of the loadblancers and one of the backend servers (using VMware) and imported them into another ESXi server, once I boot up the loadbalacner it works perfectly... I'm very stumped why this would happen, is there any additional logging you can think of that I might want to enable to see where the exact problem is?
Here are my configs:
/etc/ha.d/ldirectord.conf
checktimeout=10
checkinterval=2
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=10.10.10.10:67
real=backend_server01:67 masq
real=backend_server02:67 masq
protocol=udp
checktype=ping
scheduler=rr
virtual=10.10.10.10:68
real=back_endserver01:68 masq
real=backend_server02:68 masq
protocol=udp
checktype=ping
scheduler=rr
I had to rewrite the ldirectord start script and added the following lines in the start and restart sections:
ipvsadm -E -u 10.10.10.10:67 -o -s rr
ipvsadm -E -u 10.10.10.10:68 -o -s rrHere is the output of ipvsadm -L -n when both backend servers are up (working environment):
IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.10.10.10:67 rr ops
-> backend_server01:67 Masq 1 0 16731 -> backend_server02:67 Masq 1 0 17447 UDP 192.168.181.67:68 rr ops -> backend_server01:68 Masq 1 0 0 -> backend_server02:68 Masq 1 0 0
Here is the output of ipvsadm -L -n when both backend servers are up (non-working environment):
[root@lb01 log]# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.10.10.10:67 rr ops
-> backend_server01:67 Masq 1 0 1 -> backend_server02:67 Masq 1 0 0 UDP 10.10.10.10:68 rr ops -> backend_server01:68 Masq 1 0 0 -> backend_server02:68 Masq 1 0 0
The only difference I see is that in my "Working" environment my InActConn number increases as I send load through it, in my "Non-Working" environment the InActConn stays at 1 the entire time.. Another difference is that in the "Working" environment I am using a DHCP load testing tool one of my developers wrote, whereas in the "NON-Working" environment we are actually getting DHCP traffic from another network device...
Brian Carpio
Senior Systems Engineer
Office: +1.303.962.7242
Mobile: +1.720.319.8617
Email: [email protected]
-----Original Message-----
From: Brian Carpio
Sent: Thursday, April 15, 2010 1:57 PM
To: Simon Horman
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: RE: [Linux-HA] UDP / DHCP / LDIRECTORD
Simon,
Thanks again for all of your hard work, I have sent over a million UDP DHCP packets at the new kernel/ipvsadm with the patches applied and currently the only issue (which you know about already) is that ldirectord doesn't know about the -o option which causes a slight issue with heartbeat (but I just put in a cheap fix in my ldirectord start script to edit the services created by ldirectord)..
So not only have I sent over 1,000,000 packets to this setup but I have also sent them as fast as 10 packets every 3 milliseconds, I plan to do a long term week long test but I don't foresee any issues..
Let me know if there is any other testing you would like us to do.. or if you would like me to send out the kernel-2.6.18-128 with the patch and the ipvsadm-1.24-10 rpm with the patch..
Thanks again Simon you are the man!!
Brian Carpio
-----Original Message-----
From: Simon Horman [mailto:[email protected]]
Sent: Monday, April 12, 2010 8:56 PM
To: Brian Carpio
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Hi Brian,
here are some patches to test.
I have only lightly tested them to the extent that they compile and appear to configure a valid service.
You can enable one packet scheduling (OPS) by passing the -o option to ipvsadm when creating a virtual service.
e.g. # ipvsadm -A -u 172.17.60.211:80 -o # ipvsadm -L -n IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn UDP 172.17.60.211:80 wlc ops
There are three patches:
ops-kernel-2.6.18-128.el5.patch: Patch against CentOS-5.3's 2.6.18-128 kernel. ops-ipvsadm-1.24-10: Patch against CentOS-5.3's ipvsadm 1.24-10. ops-ipvsadm-1.24: Patch against upstream ipvsadm 1.24
I have not up-ported the code to the 2.6.33 kernel and ipvsadm 1.25 yet.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2808 - Release Date: 04/13/10 00:32:00 _______________________________________________ Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
Hi Simon,
Is there any way we can coerce you to offer us some assistance with this again? I'm sure you are a very busy person but any help you can offer would be appreciated, also if you need any further information from me that would be greatly appreciated.
Brian Carpio
Senior Systems Engineer
Office: +1.303.962.7242
Mobile: +1.720.319.8617
Email: [email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Brian Carpio
Sent: Monday, April 25, 2011 4:30 AM
To: General Linux-HA mailing list; 'Simon Horman'
Cc: 'lvs-devel'; 'Julian Anastasov'
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Hi,
It looks like there also might be a memory leak in this patch.. over the last few months we have seen memory grow slowly but lately the traffic has increased and the memory utilization of the Linux box is now growing faster. I put in a few scripts to try and detect where this memory leak was coming from and when watching /proc/meminfo over the last few days I saw that slab was growing.
So I put in a new script to watch slabtop and I can see that ip_vs_conn is growing. The number of SLABS just grows and grows, and so does the CACHE_SIZE. Is there any way you have a chance to look into this for us? Any additional information I can give to you about this problem?
Thanks a lot,
Brian Carpio
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Brian Carpio
Sent: Friday, February 25, 2011 12:14 PM
To: General Linux-HA mailing list; 'Simon Horman'
Cc: 'lvs-devel'; 'Julian Anastasov'
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Apparently this is related to some sort of race condition (possibly a problem with my ldirectord start script which does an edit on the ipvsadm config after ldirectord has started) if ldirectord starts to receive traffic on port 67/68 before the following commands are run:
ipvsadm -E -u 10.10.10.10:67 -o -s rr
ipvsadm -E -u 10.10.10.10:68 -o -s rrThen it will be stuck sending traffic to the fist server in the list.
Brian Carpio
Senior Systems Engineer
Office: +1.303.962.7242
Mobile: +1.720.319.8617
Email: [email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Brian Carpio
Sent: Thursday, February 24, 2011 3:47 PM
To: 'Simon Horman'
Cc: 'lvs-devel'; 'Julian Anastasov'; '[email protected]'
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
All,
So this patch has been working for us flawlessly for the last 5 months or so.
Our infrastructure is 100% virtualized, the other day our loadbalacner01 had a memory leak and crashed, since we use ldirectord with heartbeat loadbalacner02 took over, however ever since then it seems like the single packet UDP scheduling has stopped working. Even if I fail back over the loadbalacner01 VM, I still see all the DHCP traffic going to only one backend server.
If I run ipvsadm -L -n I can see that ipvsadm thinks both of the backend servers are up since the weight is set to 1 for each server, if I reboot the second backend server the one which is not receiving any traffic then run ipvsadm -L -n I can see its weight go to 0 and in the ldirectord log I can see that its marked dead.
I have exported one of the loadblancers and one of the backend servers (using VMware) and imported them into another ESXi server, once I boot up the loadbalacner it works perfectly... I'm very stumped why this would happen, is there any additional logging you can think of that I might want to enable to see where the exact problem is?
Here are my configs:
/etc/ha.d/ldirectord.conf
checktimeout=10
checkinterval=2
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=10.10.10.10:67
real=backend_server01:67 masq
real=backend_server02:67 masq
protocol=udp
checktype=ping
scheduler=rr
virtual=10.10.10.10:68
real=back_endserver01:68 masq
real=backend_server02:68 masq
protocol=udp
checktype=ping
scheduler=rr
I had to rewrite the ldirectord start script and added the following lines in the start and restart sections:
ipvsadm -E -u 10.10.10.10:67 -o -s rr
ipvsadm -E -u 10.10.10.10:68 -o -s rrHere is the output of ipvsadm -L -n when both backend servers are up (working environment):
IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.10.10.10:67 rr ops
-> backend_server01:67 Masq 1 0 16731 -> backend_server02:67 Masq 1 0 17447 UDP 192.168.181.67:68 rr ops -> backend_server01:68 Masq 1 0 0 -> backend_server02:68 Masq 1 0 0
Here is the output of ipvsadm -L -n when both backend servers are up (non-working environment):
[root@lb01 log]# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.10.10.10:67 rr ops
-> backend_server01:67 Masq 1 0 1 -> backend_server02:67 Masq 1 0 0 UDP 10.10.10.10:68 rr ops -> backend_server01:68 Masq 1 0 0 -> backend_server02:68 Masq 1 0 0
The only difference I see is that in my "Working" environment my InActConn number increases as I send load through it, in my "Non-Working" environment the InActConn stays at 1 the entire time.. Another difference is that in the "Working" environment I am using a DHCP load testing tool one of my developers wrote, whereas in the "NON-Working" environment we are actually getting DHCP traffic from another network device...
Brian Carpio
Senior Systems Engineer
Office: +1.303.962.7242
Mobile: +1.720.319.8617
Email: [email protected]
-----Original Message-----
From: Brian Carpio
Sent: Thursday, April 15, 2010 1:57 PM
To: Simon Horman
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: RE: [Linux-HA] UDP / DHCP / LDIRECTORD
Simon,
Thanks again for all of your hard work, I have sent over a million UDP DHCP packets at the new kernel/ipvsadm with the patches applied and currently the only issue (which you know about already) is that ldirectord doesn't know about the -o option which causes a slight issue with heartbeat (but I just put in a cheap fix in my ldirectord start script to edit the services created by ldirectord)..
So not only have I sent over 1,000,000 packets to this setup but I have also sent them as fast as 10 packets every 3 milliseconds, I plan to do a long term week long test but I don't foresee any issues..
Let me know if there is any other testing you would like us to do.. or if you would like me to send out the kernel-2.6.18-128 with the patch and the ipvsadm-1.24-10 rpm with the patch..
Thanks again Simon you are the man!!
Brian Carpio
-----Original Message-----
From: Simon Horman [mailto:[email protected]]
Sent: Monday, April 12, 2010 8:56 PM
To: Brian Carpio
Cc: [email protected]; lvs-devel; Julian Anastasov
Subject: Re: [Linux-HA] UDP / DHCP / LDIRECTORD
Hi Brian,
here are some patches to test.
I have only lightly tested them to the extent that they compile and appear to configure a valid service.
You can enable one packet scheduling (OPS) by passing the -o option to ipvsadm when creating a virtual service.
e.g. # ipvsadm -A -u 172.17.60.211:80 -o # ipvsadm -L -n IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn UDP 172.17.60.211:80 wlc ops
There are three patches:
ops-kernel-2.6.18-128.el5.patch: Patch against CentOS-5.3's 2.6.18-128 kernel. ops-ipvsadm-1.24-10: Patch against CentOS-5.3's ipvsadm 1.24-10. ops-ipvsadm-1.24: Patch against upstream ipvsadm 1.24
I have not up-ported the code to the 2.6.33 kernel and ipvsadm 1.25 yet.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.801 / Virus Database: 271.1.1/2808 - Release Date: 04/13/10 00:32:00 _______________________________________________ Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems