From owner-freebsd-cluster@FreeBSD.ORG Tue Jul 14 08:37:08 2009 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9C45106566C for ; Tue, 14 Jul 2009 08:37:08 +0000 (UTC) (envelope-from wenewboy@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 32B798FC0A for ; Tue, 14 Jul 2009 08:37:07 +0000 (UTC) (envelope-from wenewboy@gmail.com) Received: by fxm24 with SMTP id 24so2346949fxm.43 for ; Tue, 14 Jul 2009 01:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=gkJZ5IY/XzbsIeQZcnQLpMD8xAEIgEkjp3NJSuUR1CQ=; b=eqe34xqMUYhbjvqYWP/rn9X6L5fet2gUIP/pKcU6Nb2lNOUUIDEoZhxCKd9p4aLWUg GmO20g7kPw6mFQ+w769BGUqkAWfcgXjdmcSc8/crxluuKyziIjCiTjWw7hYXPVjqfApt KdpJdqpsLtzMgwVUWlgC0jaCoHt57TsU5+GEw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=GlVr1J60KyOgL/zMRgB6hM3S3hTmA9IQFyKpGO28S6HIM7GcNWmC/TyRQH6cRKDNvi s8O0NPAnwWgFnByQ6CfXVHrVH+gUv7HVFLIgumX18m/ljJuBtszLwEJ9nAd/1kw9sLTU WadKNsXo7SBIFqS4nj7bPPkwDvJz7aCh1ACDQ= MIME-Version: 1.0 Received: by 10.103.107.1 with SMTP id j1mr3165440mum.99.1247558809534; Tue, 14 Jul 2009 01:06:49 -0700 (PDT) Date: Tue, 14 Jul 2009 16:06:49 +0800 Message-ID: <4eaa09eb0907140106k7424e495j40f9359c3b1ecc44@mail.gmail.com> From: wenew zhang To: freebsd-cluster@freebsd.org Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: lvs on freebsd setup problem, X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 08:37:08 -0000 i have three freebsd 7.0 server,every server have 10M bandwidth,first i use nginx proxy,all the data through the nginx proxy, so,np is the bottleneck, i don't need master-slave host redundancy,so don't need carp,that's right? i try install ipvs as follow steps: 1install freebsd source ,base and sys, 2.cd /usr/ports/net/ipvs make patch-system (i suppose that will patch the kernel,right?) 3.make depend make make install reboot 4./usr/ports/net/ipvs make =A3=BA=3D=3D=3D> Building for ipvs-0.4.0_2 =3D=3D=3D> ipvs Warning: Object directory not changed from original /usr/ports/net/ipvs/work/ipvs-0.4.0_2/ipvs cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=3Dc99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=3D2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c ip_vs_core.c In file included from ip_vs.h:246, from ip_vs_core.c:33: @/sys/socketvar.h:391: error: field 'cv' has incomplete type @/sys/socketvar.h:406: error: redefinition of 'struct nf_sockopt_ops' @/sys/socketvar.h:422: error: field 'cv' has incomplete type @/sys/socketvar.h:426: warning: redundant redeclaration of 'nf_register_sockopt' @/sys/socketvar.h:395: warning: previous declaration of 'nf_register_sockopt' was here @/sys/socketvar.h:427: warning: redundant redeclaration of 'nf_unregister_sockopt' @/sys/socketvar.h:396: warning: previous declaration of 'nf_unregister_sockopt' was here @/sys/socketvar.h:428: warning: redundant redeclaration of 'nf_sockopt_init= ' @/sys/socketvar.h:397: warning: previous declaration of 'nf_sockopt_init' was here what' wrong with it? any reply is very appreciated! From owner-freebsd-cluster@FreeBSD.ORG Tue Jul 14 09:01:07 2009 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AE36106566C for ; Tue, 14 Jul 2009 09:01:07 +0000 (UTC) (envelope-from lasse@freebsdcluster.org) Received: from freebsdcluster.org (freebsdcluster.dk [195.184.98.178]) by mx1.freebsd.org (Postfix) with ESMTP id F36988FC1D for ; Tue, 14 Jul 2009 09:01:06 +0000 (UTC) (envelope-from lasse@freebsdcluster.org) Received: from [192.168.0.212] (87-194-36-133.bethere.co.uk [87.194.36.133]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: lasse@freebsdcluster.org) by freebsdcluster.org (Postfix) with ESMTPSA id B38612841D; Tue, 14 Jul 2009 08:41:31 +0000 (UTC) Message-Id: <0272734C-6F5B-4A7E-98F7-B955F5FCC8D7@freebsdcluster.org> From: Lasse Johnsen To: wenew zhang In-Reply-To: <4eaa09eb0907140106k7424e495j40f9359c3b1ecc44@mail.gmail.com> Content-Type: text/plain; charset=GB2312; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v935.3) Date: Tue, 14 Jul 2009 09:42:39 +0100 References: <4eaa09eb0907140106k7424e495j40f9359c3b1ecc44@mail.gmail.com> X-Mailer: Apple Mail (2.935.3) Cc: freebsd-cluster@freebsd.org Subject: Re: lvs on freebsd setup problem, X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 09:01:07 -0000 Hi, As far as I know, LVS support on FreeBSD has not been available since =20= FreeBSD 5.4. It's no longer maintained. /Lasse On 14 Jul 2009, at 09:06, wenew zhang wrote: > i have three freebsd 7.0 server,every server have 10M =20 > bandwidth,first i use > nginx proxy,all the data through the nginx proxy, > so,np is the bottleneck, > i don't need master-slave host redundancy,so don't need carp,that's =20= > right? > i try install ipvs as follow steps: > > 1install freebsd source ,base and sys, > 2.cd /usr/ports/net/ipvs make patch-system (i suppose that will =20 > patch the > kernel,right?) > 3.make depend > make > make install > reboot > > 4./usr/ports/net/ipvs make > =A3=BA=3D=3D=3D> Building for ipvs-0.4.0_2 > =3D=3D=3D> ipvs > Warning: Object directory not changed from original > /usr/ports/net/ipvs/work/ipvs-0.4.0_2/ipvs > cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=3Dc99 > -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param > inline-unit-growth=3D100 --param large-function-growth=3D1000 = -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=3D2 -mno-mmx -=20 > mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-=20= > arith > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > ip_vs_core.c > In file included from ip_vs.h:246, > from ip_vs_core.c:33: > @/sys/socketvar.h:391: error: field 'cv' has incomplete type > @/sys/socketvar.h:406: error: redefinition of 'struct nf_sockopt_ops' > @/sys/socketvar.h:422: error: field 'cv' has incomplete type > @/sys/socketvar.h:426: warning: redundant redeclaration of > 'nf_register_sockopt' > @/sys/socketvar.h:395: warning: previous declaration of > 'nf_register_sockopt' was here > @/sys/socketvar.h:427: warning: redundant redeclaration of > 'nf_unregister_sockopt' > @/sys/socketvar.h:396: warning: previous declaration of > 'nf_unregister_sockopt' was here > @/sys/socketvar.h:428: warning: redundant redeclaration of =20 > 'nf_sockopt_init' > @/sys/socketvar.h:397: warning: previous declaration of =20 > 'nf_sockopt_init' > was here > what' wrong with it? > > > any reply is very appreciated! > _______________________________________________ > freebsd-cluster@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-cluster > To unsubscribe, send any mail to = "freebsd-cluster-unsubscribe@freebsd.org=20 > " From owner-freebsd-cluster@FreeBSD.ORG Tue Jul 14 12:59:36 2009 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 942A7106566C for ; Tue, 14 Jul 2009 12:59:36 +0000 (UTC) (envelope-from andrei.manescu@ivorde.ro) Received: from mail.ivorde.ro (ivorde.ro [82.137.33.36]) by mx1.freebsd.org (Postfix) with ESMTP id A02728FC1E for ; Tue, 14 Jul 2009 12:59:35 +0000 (UTC) (envelope-from andrei.manescu@ivorde.ro) Received: (qmail 29735 invoked by uid 0); 14 Jul 2009 15:32:53 +0300 Received: from mail.ivorde.ro (andrei.manescu@ivorde.ro@mail.ivorde.ro) by mail.ivorde.ro (envelope-from , uid 1001) with qmail-scanner-2.06st (clamdscan: 0.94.2/8872. spamassassin: 3.2.5. perlscan: 2.05st. Clear:RC:1(192.168.1.11):. Processed in 2.010712 secs); 14 Jul 2009 12:32:53 -0000 Received: from mail.ivorde.ro (andrei.manescu@ivorde.ro@192.168.1.11) by mail.ivorde.ro with SMTP; 14 Jul 2009 15:32:50 +0300 Received: from 62.168.56.1 (SquirrelMail authenticated user andrei.manescu@ivorde.ro) by mail.ivorde.ro with HTTP; Tue, 14 Jul 2009 14:32:50 +0200 (CEST) Message-ID: <9e14d0e4b66c7a971d62489670fac611.squirrel@mail.ivorde.ro> In-Reply-To: <20090714120018.34E3D10656A7@hub.freebsd.org> References: <20090714120018.34E3D10656A7@hub.freebsd.org> Date: Tue, 14 Jul 2009 14:32:50 +0200 (CEST) From: "Andrei Manescu - Ivorde" To: freebsd-cluster@freebsd.org User-Agent: SquirrelMail/1.4.17 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: freebsd-cluster Digest, Vol 127, Issue 1 X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: andrei.manescu@ivorde.ro List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 12:59:37 -0000 It's still in the ports in 7.0 and 6.0 so I guess it's still under development. > Send freebsd-cluster mailing list submissions to > freebsd-cluster@freebsd.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.freebsd.org/mailman/listinfo/freebsd-cluster > or, via email, send a message with subject or body 'help' to > freebsd-cluster-request@freebsd.org > > You can reach the person managing the list at > freebsd-cluster-owner@freebsd.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of freebsd-cluster digest..." > > > Today's Topics: > > 1. lvs on freebsd setup problem, (wenew zhang) > 2. Re: lvs on freebsd setup problem, (Lasse Johnsen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 14 Jul 2009 16:06:49 +0800 > From: wenew zhang > Subject: lvs on freebsd setup problem, > To: freebsd-cluster@freebsd.org > Message-ID: > <4eaa09eb0907140106k7424e495j40f9359c3b1ecc44@mail.gmail.com> > Content-Type: text/plain; charset=GB2312 > > i have three freebsd 7.0 server,every server have 10M bandwidth,first i use > nginx proxy,all the data through the nginx proxy, > so,np is the bottleneck, > i don't need master-slave host redundancy,so don't need carp,that's right? > i try install ipvs as follow steps: > > 1install freebsd source ,base and sys, > 2.cd /usr/ports/net/ipvs make patch-system (i suppose that will patch the > kernel,right?) > 3.make depend > make > make install > reboot > > 4./usr/ports/net/ipvs make > £º===> Building for ipvs-0.4.0_2 > ===> ipvs > Warning: Object directory not changed from original > /usr/ports/net/ipvs/work/ipvs-0.4.0_2/ipvs > cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 > -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > ip_vs_core.c > In file included from ip_vs.h:246, > from ip_vs_core.c:33: > @/sys/socketvar.h:391: error: field 'cv' has incomplete type > @/sys/socketvar.h:406: error: redefinition of 'struct nf_sockopt_ops' > @/sys/socketvar.h:422: error: field 'cv' has incomplete type > @/sys/socketvar.h:426: warning: redundant redeclaration of > 'nf_register_sockopt' > @/sys/socketvar.h:395: warning: previous declaration of > 'nf_register_sockopt' was here > @/sys/socketvar.h:427: warning: redundant redeclaration of > 'nf_unregister_sockopt' > @/sys/socketvar.h:396: warning: previous declaration of > 'nf_unregister_sockopt' was here > @/sys/socketvar.h:428: warning: redundant redeclaration of 'nf_sockopt_init' > @/sys/socketvar.h:397: warning: previous declaration of 'nf_sockopt_init' > was here > what' wrong with it? > > > any reply is very appreciated! > > > ------------------------------ > > Message: 2 > Date: Tue, 14 Jul 2009 09:42:39 +0100 > From: Lasse Johnsen > Subject: Re: lvs on freebsd setup problem, > To: wenew zhang > Cc: freebsd-cluster@freebsd.org > Message-ID: <0272734C-6F5B-4A7E-98F7-B955F5FCC8D7@freebsdcluster.org> > Content-Type: text/plain; charset=GB2312; format=flowed; delsp=yes > > Hi, > > As far as I know, LVS support on FreeBSD has not been available since > FreeBSD 5.4. It's no longer maintained. > > /Lasse > > > On 14 Jul 2009, at 09:06, wenew zhang wrote: > >> i have three freebsd 7.0 server,every server have 10M >> bandwidth,first i use >> nginx proxy,all the data through the nginx proxy, >> so,np is the bottleneck, >> i don't need master-slave host redundancy,so don't need carp,that's >> right? >> i try install ipvs as follow steps: >> >> 1install freebsd source ,base and sys, >> 2.cd /usr/ports/net/ipvs make patch-system (i suppose that will >> patch the >> kernel,right?) >> 3.make depend >> make >> make install >> reboot >> >> 4./usr/ports/net/ipvs make >> £º===> Building for ipvs-0.4.0_2 >> ===> ipvs >> Warning: Object directory not changed from original >> /usr/ports/net/ipvs/work/ipvs-0.4.0_2/ipvs >> cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 >> -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param >> inline-unit-growth=100 --param large-function-growth=1000 -fno-common >> -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx - >> mno-3dnow >> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls >> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer- >> arith >> -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c >> ip_vs_core.c >> In file included from ip_vs.h:246, >> from ip_vs_core.c:33: >> @/sys/socketvar.h:391: error: field 'cv' has incomplete type >> @/sys/socketvar.h:406: error: redefinition of 'struct nf_sockopt_ops' >> @/sys/socketvar.h:422: error: field 'cv' has incomplete type >> @/sys/socketvar.h:426: warning: redundant redeclaration of >> 'nf_register_sockopt' >> @/sys/socketvar.h:395: warning: previous declaration of >> 'nf_register_sockopt' was here >> @/sys/socketvar.h:427: warning: redundant redeclaration of >> 'nf_unregister_sockopt' >> @/sys/socketvar.h:396: warning: previous declaration of >> 'nf_unregister_sockopt' was here >> @/sys/socketvar.h:428: warning: redundant redeclaration of >> 'nf_sockopt_init' >> @/sys/socketvar.h:397: warning: previous declaration of >> 'nf_sockopt_init' >> was here >> what' wrong with it? >> >> >> any reply is very appreciated! >> _______________________________________________ >> freebsd-cluster@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-cluster >> To unsubscribe, send any mail to "freebsd-cluster-unsubscribe@freebsd.org >> " > > > > ------------------------------ > > _______________________________________________ > freebsd-cluster@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-cluster > To unsubscribe, send any mail to "freebsd-cluster-unsubscribe@freebsd.org" > > > End of freebsd-cluster Digest, Vol 127, Issue 1 > *********************************************** > -- Kind regards, Andrei Manescu From owner-freebsd-cluster@FreeBSD.ORG Tue Jul 14 13:49:43 2009 Return-Path: Delivered-To: freebsd-cluster@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0FDE10656E3 for ; Tue, 14 Jul 2009 13:49:43 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 35A2C8FC23 for ; Tue, 14 Jul 2009 13:49:43 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n6EDnPSc068175; Tue, 14 Jul 2009 15:49:40 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n6EDnPf3068174; Tue, 14 Jul 2009 15:49:25 +0200 (CEST) (envelope-from olli) Date: Tue, 14 Jul 2009 15:49:25 +0200 (CEST) Message-Id: <200907141349.n6EDnPf3068174@lurza.secnetix.de> From: Oliver Fromme To: freebsd-cluster@FreeBSD.ORG, andrei.manescu@ivorde.ro In-Reply-To: <9e14d0e4b66c7a971d62489670fac611.squirrel@mail.ivorde.ro> X-Newsgroups: list.freebsd-cluster User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 14 Jul 2009 15:49:41 +0200 (CEST) Cc: Subject: Re: freebsd-cluster Digest, Vol 127, Issue 1 X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-cluster@FreeBSD.ORG, andrei.manescu@ivorde.ro List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 13:49:44 -0000 Andrei Manescu - Ivorde wrote: > [/usr/ports/net/ipvs] > It's still in the ports in 7.0 and 6.0 so I guess it's still under development. It was last updated 3 years ago. 5.4-RELEASE was the last version supported by the patches, according to the documentation. It contains kernel patches and builds a bunch of kernel modules, so I'm not surprised it doesn't work anymore with a more up-to-date version of FreeBSD. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I have stopped reading Stephen King novels. Now I just read C code instead." -- Richard A. O'Keefe From owner-freebsd-cluster@FreeBSD.ORG Tue Jul 14 15:29:57 2009 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC6C8106566C for ; Tue, 14 Jul 2009 15:29:57 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [91.121.27.225]) by mx1.freebsd.org (Postfix) with SMTP id F27A38FC0C for ; Tue, 14 Jul 2009 15:29:56 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: (qmail 4798 invoked by uid 503); 14 Jul 2009 15:03:36 -0000 Received: from 2.mail-out.ovh.net (91.121.26.226) by 26.mail-out.ovh.net with SMTP; 14 Jul 2009 15:03:36 -0000 Received: (qmail 32251 invoked by uid 503); 14 Jul 2009 16:39:07 -0000 Received: from gw2.ovh.net (HELO mail175.ha.ovh.net) (213.251.189.202) by 2.mail-out.ovh.net with SMTP; 14 Jul 2009 16:39:07 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 14 Jul 2009 15:06:57 -0000 Received: from unknown (HELO localhost) (maciej@suszko.eu@62.61.57.118) by ns0.ovh.net with SMTP; 14 Jul 2009 15:06:56 -0000 Date: Tue, 14 Jul 2009 17:03:09 +0200 From: Maciej Suszko To: Lasse Johnsen Message-ID: <20090714170309.17316d58@suszko.eu> In-Reply-To: <0272734C-6F5B-4A7E-98F7-B955F5FCC8D7@freebsdcluster.org> References: <4eaa09eb0907140106k7424e495j40f9359c3b1ecc44@mail.gmail.com> <0272734C-6F5B-4A7E-98F7-B955F5FCC8D7@freebsdcluster.org> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.4; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/FIFGiDwC2=UkM3NsZD1rUDu"; protocol="application/pgp-signature" X-Ovh-Tracer-Id: 11461661051815354508 X-Ovh-Remote: 62.61.57.118 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N X-Ovh-Tracer-Id: 11405366056630116539 Cc: freebsd-cluster@freebsd.org Subject: Re: lvs on freebsd setup problem, X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 15:29:57 -0000 --Sig_/FIFGiDwC2=UkM3NsZD1rUDu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Lasse Johnsen wrote: > Hi, >=20 > As far as I know, LVS support on FreeBSD has not been available > since FreeBSD 5.4. It's no longer maintained. Patchset can be addapted to 7.2-RELEASE - I've done it but never used. You can try net/haproxy instead - it should suit your needs. BTW anyone using haproxy here? Any pros and cons? --=20 regards, Maciej Suszko. --Sig_/FIFGiDwC2=UkM3NsZD1rUDu Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpcnjAACgkQCikUk0l7iGoRwgCeM61uVeXBysBjgMbfllKdNOTb 7goAn2p/PnldywE7ISGU6nRC29TWuHun =D/K2 -----END PGP SIGNATURE----- --Sig_/FIFGiDwC2=UkM3NsZD1rUDu-- From owner-freebsd-cluster@FreeBSD.ORG Wed Jul 15 02:11:19 2009 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29E96106564A for ; Wed, 15 Jul 2009 02:11:19 +0000 (UTC) (envelope-from wenewboy@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id D4BB48FC12 for ; Wed, 15 Jul 2009 02:11:18 +0000 (UTC) (envelope-from wenewboy@gmail.com) Received: by an-out-0708.google.com with SMTP id d14so1680748and.13 for ; Tue, 14 Jul 2009 19:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=qhy+qsDIPe85WOmbg+dbEUVHcISBTh7y/QbtUdSbhQ0=; b=IJt/Yp8+bglvxnuWvrxdNsduweu519Z4SiFUGThFTfPosFLn+84J5yUBMjaW0J54I1 OOJYVswE6DQjkbiardNV8snEXmnNqtQ2u6xCxgzceziA5EghAXgvEvr4gwfyATN/WldN SlEGE4jJrWCZQj4TtdvdxkPw2puILgx00Puho= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=EcHZnWmKiTXqJ54gyoUqQ/ou8rRIFrbMBsM4SnHZRTKMoXg4ncRr9inWcxiEg5sDt2 NKvwOVMs7767GZC6BCPB6fulWghvmJ5B/PvBMe+dUTIL01RfuB7A2GN8j+nVOSPNbdBG WAJLNOod4FzEg4Alc1urhMp4OAXmw49TVfbgM= MIME-Version: 1.0 Received: by 10.101.71.11 with SMTP id y11mr9550336ank.126.1247623878103; Tue, 14 Jul 2009 19:11:18 -0700 (PDT) In-Reply-To: <20090714170309.17316d58@suszko.eu> References: <4eaa09eb0907140106k7424e495j40f9359c3b1ecc44@mail.gmail.com> <0272734C-6F5B-4A7E-98F7-B955F5FCC8D7@freebsdcluster.org> <20090714170309.17316d58@suszko.eu> Date: Wed, 15 Jul 2009 10:11:18 +0800 Message-ID: <4eaa09eb0907141911m1b3adb9byc46deb8dd2730ea@mail.gmail.com> From: wenew zhang To: Maciej Suszko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-cluster@freebsd.org Subject: Re: lvs on freebsd setup problem, X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2009 02:11:19 -0000 thanks Maciej, i tring haproxy,in below situation,LB forward http header to A,B,C,C, but how about the Web Server response the client's, the response data still through then LB1?that the point, LB1 only have 10M bandwidth as Web Servers, in my situation,clients need download big-flash file about 5M, i need web server response the client directly, sorry to say it again, i need confidence! 192.168.1.1 192.168.1.11-192.168.1.14 192.168.1.2 -------+-----------+-----+-----+-----+--------+---- | | | | | _|_db +--+--+ +-+-+ +-+-+ +-+-+ +-+-+ (___) | LB1 | | A | | B | | C | | D | (___) +-----+ +---+ +---+ +---+ +---+ (___) haproxy 4 cheap web servers Best Regards,Wenew From owner-freebsd-cluster@FreeBSD.ORG Wed Jul 15 07:32:10 2009 Return-Path: Delivered-To: freebsd-cluster@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55C5F10656C7 for ; Wed, 15 Jul 2009 07:32:10 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id CDB228FC2F for ; Wed, 15 Jul 2009 07:32:09 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n6F7VrRU014958; Wed, 15 Jul 2009 09:32:08 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n6F7VrI2014957; Wed, 15 Jul 2009 09:31:53 +0200 (CEST) (envelope-from olli) Date: Wed, 15 Jul 2009 09:31:53 +0200 (CEST) Message-Id: <200907150731.n6F7VrI2014957@lurza.secnetix.de> From: Oliver Fromme To: freebsd-cluster@FreeBSD.ORG, wenewboy@gmail.com In-Reply-To: <4eaa09eb0907141911m1b3adb9byc46deb8dd2730ea@mail.gmail.com> X-Newsgroups: list.freebsd-cluster User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 15 Jul 2009 09:32:08 +0200 (CEST) Cc: Subject: Re: lvs on freebsd setup problem, X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-cluster@FreeBSD.ORG, wenewboy@gmail.com List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2009 07:32:10 -0000 wenew zhang wrote: > i tring haproxy,in below situation,LB forward http header to A,B,C,C, > but how about the Web Server response the client's, > the response data still through then LB1?that the point, > LB1 only have 10M bandwidth as Web Servers, > in my situation,clients need download big-flash file about 5M, > i need web server response the client directly, > sorry to say it again, > i need confidence! > > > 192.168.1.1 192.168.1.11-192.168.1.14 192.168.1.2 > -------+-----------+-----+-----+-----+--------+---- > | | | | | _|_db > +--+--+ +-+-+ +-+-+ +-+-+ +-+-+ (___) > | LB1 | | A | | B | | C | | D | (___) > +-----+ +---+ +---+ +---+ +---+ (___) > haproxy 4 cheap web servers Just a question: Did you consider DNS-based round-robin? It's a very simple solution if you just need LB (not HA), and the traffic doesn't have to go through a single proxy so there is no bottle-neck problem. The downside is, of course, that you need multiple external IP addresses. If you have only one IP address, a "poor man's round-robin" solution would be to balance the traffic by port numbers: The internal web servers are assigned port numbers from 81 to 84. On port 80 there is only a simple script that returns redirects to ports 81 to 84 in random order. The downside is that the port number appears in the URL line of the client browser, which is ugly. (Putting a proper tag in the header of all of your HTML pages mitigates the problem a little bit, though.) A "clean" solution will involve some kind of transparent proxy or gateway that handles the incoming packets and forwards them to a random web server (but it must be the same web server for all packets belonging to the same TCP connection), then have the web server send the reply directly to the client. I think you might be able to do this with a bunch of IPFW "fwd" rules. The LB machine will have "fwd" rules with the "prob" tag to forward incoming packets to a random web server. Using the "keep-state" tag will make sure that packets belonging to the same TCP connection will go to the same web server. The web servers should send the reply packets directly to your outgoing router. You have to be careful with NAT. I haven't tried to do this myself, but it should be possible to make it work. All of the above can be done without third-party software. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The last good thing written in C was Franz Schubert's Symphony number 9." -- Erwin Dieterich From owner-freebsd-cluster@FreeBSD.ORG Wed Jul 15 08:42:18 2009 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2C131065670 for ; Wed, 15 Jul 2009 08:42:18 +0000 (UTC) (envelope-from wenewboy@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 6EFBA8FC25 for ; Wed, 15 Jul 2009 08:42:18 +0000 (UTC) (envelope-from wenewboy@gmail.com) Received: by yxe11 with SMTP id 11so6231307yxe.3 for ; Wed, 15 Jul 2009 01:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=X1unRvhZ39Z3CPP7paMxhKe3gD/f47/KX2Ayb2rd/zY=; b=GuDjLx7sJEMDW3THkqRDX6YWwhg0nAq1zU5ax/0vnJmT8+kOrQyFG2ZOfdS650eiVg Sl53aoPD9eyLSYBRNAwwAtxUatIByj7g41KAkTcUmUutrUjwun5po6abvfvgh0GP44pU SJ+MXXM/j8DQmA9dSNoRpfsDCMGwT4SK8Za7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YxLveuLIxiUZ2GEfL+rhWlI7c9vXbWpQgilf9AI0Emjfa//T2VnSNWmGS8unLBKFMb frsjedTYma/Yu3p7R/TlTqvVZGkTlCK/GXfRYwB3JRDW85/0bhLFhSuTOI5wg04vL6Dk jPfQfVmn0/A1FsM80xp9Hyz8vXBqTKrHElOso= MIME-Version: 1.0 Received: by 10.100.134.16 with SMTP id h16mr9932263and.0.1247647337431; Wed, 15 Jul 2009 01:42:17 -0700 (PDT) In-Reply-To: <200907150731.n6F7VrI2014957@lurza.secnetix.de> References: <4eaa09eb0907141911m1b3adb9byc46deb8dd2730ea@mail.gmail.com> <200907150731.n6F7VrI2014957@lurza.secnetix.de> Date: Wed, 15 Jul 2009 16:42:17 +0800 Message-ID: <4eaa09eb0907150142q53c4401ao2772701a3b62cad2@mail.gmail.com> From: wenew zhang To: freebsd-cluster@freebsd.org, wenewboy@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: lvs on freebsd setup problem, X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2009 08:42:19 -0000 Thanks,Oliver, the user driver me crazy and the game driver the user crazy, i never so dispointed with freebsd before this time, i'm not familiar to IPFW, i think i need LVS/TUN but not sure about ip-tune between rhel and freebsd,i should try, the isp setup rhel now, thanks all Best Regards Wenew