Re: [squid-users] load balancing

2011-11-08 Thread guest01
Hi,

Yes, it is even pretty easy to accomplish. We are using a dedicated
Loadbalancer (but you can of course use LVS as loadbalancer) which is
balancing proxy request to 8 squid instances on 4 different real
servers with Kerberos authentication. We are not using any cache
hierarchy, just 4 standalone squid servers.
Just create a virtual loadbalancer IP, configure an DNS-entry for that
IP and configure this FQDN (don't use the IP-address because Kerberos
won't work) in your client browsers. Create a Kerberos Ticket for this
hostname/fqdn (I assume you already did something similiar for your
current setup) and use this ticketfile on your squid servers. That's
pretty much it.

regards
Peter

On Tue, Nov 8, 2011 at 2:43 PM, Nicola Gentile  wrote:
> Good Morning,
> I have a proxy squid on debian with kerberos authentication and it works fine.
> I would create a cluster load balancing for 2/3 proxy squid.
> In particular, the clients connect to the load balancer, that
> redirects the request to one of the proxies.
> These proxies will must authenticate through kerberos.
>
> Is it possible implement something like that?
>
> What can I use?
>
> Best regards.
>
> Nicola
>


Re: [squid-users] load balancing

2008-12-23 Thread Ken Peng





Hi All,

any links on how to configure load balancing of squid




See the default squid.conf, :)


Re: [squid-users] load balancing

2008-12-24 Thread john Moylan
If you want to a load balancer for Squid servers then LVS is a good
option. Redhat even have a packaged version.

J

2008/12/23 Ken Peng :
>
>
>
>> Hi All,
>>
>> any links on how to configure load balancing of squid
>>
>>
>
> See the default squid.conf, :)
>


Re: [squid-users] load balancing

2008-12-24 Thread andre wang
hi  any details?

On Tue, Dec 23, 2008 at 10:38 PM, Ken Peng  wrote:
>
>
>
>> Hi All,
>>
>> any links on how to configure load balancing of squid
>>
>>
>
> See the default squid.conf, :)
>


Re: [squid-users] load balancing

2008-12-25 Thread Amos Jeffries

andre wang wrote:

hi  any details?

On Tue, Dec 23, 2008 at 10:38 PM, Ken Peng  wrote:




Hi All,

any links on how to configure load balancing of squid



See the default squid.conf, :)



http://www.suid-cache.org/Doc/config/

Seriously though. 'load balance' means many things. What exactly are you 
trying to balance?

 - incoming traffic to a set of web servers through 1+ Squid?
 - incoming traffic to a set of Squid?
 - outgoing traffic down a hierarchy?
 - disk usage within the cache?
 - DNS traffic through the network?
 - QoS controls on replies going to clients?
 - Throttling data peak speeds going to clients?

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE5 or 3.0.STABLE11
  Current Beta Squid 3.1.0.3


Re: [squid-users] load balancing

2008-12-25 Thread Amos Jeffries

Amos Jeffries wrote:

andre wang wrote:

hi  any details?

On Tue, Dec 23, 2008 at 10:38 PM, Ken Peng  wrote:




Hi All,

any links on how to configure load balancing of squid



See the default squid.conf, :)



http://www.suid-cache.org/Doc/config/


bah. having a typo-day today: that should be:

http://www.squid-cache.org/Doc/config/



Seriously though. 'load balance' means many things. What exactly are you 
trying to balance?

 - incoming traffic to a set of web servers through 1+ Squid?
 - incoming traffic to a set of Squid?
 - outgoing traffic down a hierarchy?
 - disk usage within the cache?
 - DNS traffic through the network?
 - QoS controls on replies going to clients?
 - Throttling data peak speeds going to clients?



Amos
--
Please be using
  Current Stable Squid 2.7.STABLE5 or 3.0.STABLE11
  Current Beta Squid 3.1.0.3


Re: [squid-users] load balancing

2008-12-30 Thread Mario Remy Almeida
Hi All,

What I mean to say is..

E.G:-

SP 1 = 10.200.2.1
SP 2 = 10.200.2.2

LAN USERS = 10.200.2.x

All lan users should connect to SP1 or SP2 depending upon the load and
if one of the SP is down the other should take the load.

One way of achieving load balance is with DNS

proxy1.example.com  IN A 10.200.2.1
proxy1.example.com  IN A 10.200.2.2

And what if the DNS Server is down and also how to do fail over

//Remy

On Tue, 2008-12-23 at 09:05 -0600, Luis Daniel Lucio Quiroz wrote:
> Just remember
> when using load balancing, if you use digest auth, then you MUST use
> source persistence.
> 
> 
> 
> 
> On Tuesday 23 December 2008 08:38:27 Ken Peng wrote:
> > > Hi All,
> > >
> > > any links on how to configure load balancing of squid
> >
> > See the default squid.conf, :)
> 
> 
> 
> 



RE: [squid-users] load balancing

2008-12-30 Thread Mario Remy Almeida
Hi All,

I was on leave so could not reply.

What I mean to say is..

E.G:-

SP 1 = 10.200.2.1
SP 2 = 10.200.2.2

LAN USERS = 10.200.2.x

All lan users should connect to SP1 or SP2 depending upon the load and
if one of the SP is down the other should take the load.

One way of achieving load balance is with DNS

proxy1.example.com  IN A 10.200.2.1
proxy1.example.com  IN A 10.200.2.2

And what if the DNS Server is down and also how to do fail over

//Remy


On Tue, 2008-12-23 at 13:43 +, Mehmet CELIK wrote:
> 
> Hi, what do you want ? so you mean load-balance..
> 
> 
> --
> Mehmet CELIK 
> 
> 
> 
> > From: malme...@isaaviation.ae
> > To: squid-users@squid-cache.org
> > Date: Tue, 23 Dec 2008 16:21:58 +0400
> > Subject: [squid-users] load balancing
> > 
> > Hi All,
> > 
> > any links on how to configure load balancing of squid
> > 
> > 
> > Regards,
> > Mario
> > 
> 
> 
> __
> Windows Live™ ile e-posta kutunuzdaki işlevlerin çok ötesine geçin.
> Diğer Windows Live™ özelliklerine göz atın.



Re: [squid-users] load balancing

2008-12-31 Thread pritam

Mario Remy Almeida wrote:

Hi All,

What I mean to say is..

E.G:-

SP 1 = 10.200.2.1
SP 2 = 10.200.2.2

LAN USERS = 10.200.2.x

All lan users should connect to SP1 or SP2 depending upon the load and
if one of the SP is down the other should take the load.

One way of achieving load balance is with DNS

proxy1.example.com  IN A 10.200.2.1
proxy1.example.com  IN A 10.200.2.2
  

Hi Remy,

I agree the DNS server could do the balancing here. But to be more 
precise DNS is more appropriate in Load-Balancing the other kind of 
services like SMTP, WEB etc.


What I recommend is a router capable of web-traffic redirection like 
WCCP in Cisco routers.


May be if you want to know more about WCCP. This URL 
http://articles.techrepublic.com.com/5100-10878_11-6175637.html could 
let you know how it works.


Regards,

Pritam

Regards,

Pritam

And what if the DNS Server is down and also how to do fail over

//Remy

On Tue, 2008-12-23 at 09:05 -0600, Luis Daniel Lucio Quiroz wrote:
  

Just remember
when using load balancing, if you use digest auth, then you MUST use
source persistence.




On Tuesday 23 December 2008 08:38:27 Ken Peng wrote:


Hi All,

any links on how to configure load balancing of squid


See the default squid.conf, :)
  






  




Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.9.19/1857 - Release Date: 12/19/2008 10:09 AM


  




Re: [squid-users] load balancing

2009-01-04 Thread Regardt van de Vyver

Hi Remy,

Just a couple of comments.

1) As per your response, if DNS is down squid is not going to be much 
happier as it needs that DNS resolution in order to be able to function ;-)
2) WCCP would/could work very nicely for you in a fully transparent 
configuration. Cost of wccp capable routers plays a role
3) A true load balancer front end like Cisco's content director could 
also do the job but also runs into cost issues.


Methods I've used:
1) Running squid in an LVS (linux virtual server) environment - works 
but can get fun to configure


2) Add another squid box to the configuration.
   -   Setup this squid so that 10.200.1.2 and 10.200.1.1 are parent 
caches with CARP enabled

   -   Do not enable any disk storage on this front-end cache

This gives you an environment where the parent caches will determine 
load between them and handle requests as needed.


Setting dead_peer_timeout and peer_connect_timeout will also allow 
relatively quick responses to caches that die.


I know this last option is not fully redundant but is a cost effective 
way of handling the load balancing issue cleanly.


Regardt

Mario Remy Almeida wrote:

Hi All,

What I mean to say is..

E.G:-

SP 1 = 10.200.2.1
SP 2 = 10.200.2.2

LAN USERS = 10.200.2.x

All lan users should connect to SP1 or SP2 depending upon the load and
if one of the SP is down the other should take the load.

One way of achieving load balance is with DNS

proxy1.example.com  IN A 10.200.2.1
proxy1.example.com  IN A 10.200.2.2

And what if the DNS Server is down and also how to do fail over

//Remy

On Tue, 2008-12-23 at 09:05 -0600, Luis Daniel Lucio Quiroz wrote:
  

Just remember
when using load balancing, if you use digest auth, then you MUST use
source persistence.




On Tuesday 23 December 2008 08:38:27 Ken Peng wrote:


Hi All,

any links on how to configure load balancing of squid


See the default squid.conf, :)
  







  




Re: [squid-users] Load Balancing

2003-08-16 Thread Robert Collins
On Sat, 2003-08-16 at 22:59, Yuri N. Fominov wrote:
> Hi,
> 
> I have two instances of squid-2.5-STABLE3 running on same
> dual-processor machine under RH AS 2.1 (2.4.9-e.25). Everything works
> great. I would like to optimize hit ratio and have a following
> questions:
> 
> Is it possible to configure squid-es with a cross referencing access
> to cache directories, f.e.:

No. Use ICP, or cache digests between the instances.

Rob
-- 
GPG key available at: .


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] Load Balancing

2005-03-04 Thread Henrik Nordstrom

On Sun, 27 Feb 2005, Dominik Jais wrote:
delay_parameters 1 -1/-1 13000/13000
I'm using the configuration above. My problem is, that eath user gots 13kbps, 
but the 13000 mean bytes = 104kbps
Is this a documentation bug?
The above setting will give each user ca 104kbit/s or 12.5KByte/s.
Most clients displays download rate in KByte/s, not kbit/s.
Regards
Henrik


Re: [squid-users] Load Balancing

2005-10-21 Thread Sushil Deore

what about caching in your setup?
this info will surely help you to design your setup.

I am using one proxy server and two caching proxy servers and
the total number of users in my setup are much more than yours.

I would like to ask you one question here as you have done with
transparent proxy. How are you dealing with https(port 443) request from
your transparent proxy setup?

-- Sushil.


On Sat, 22 Oct 2005, Paras pradhan wrote:

> hi:
>
> Currently i have a network running squid as a transparent proxy server
> serving around 500 users. Around 40% of the users ie ( 200 users) use
> the network and the performance is good with very very little
> problem.. now my network is about to increse and almost 1200 Users
> will be using the proxy server. Presenly i am running a PIII Xeon
> processor Server with SCSI Hard Drives and 1GB of RAM. Now i need some
> suggestions for 1200 users.
>
> Do i need to:
>
> Upgrade or Purchase a new server OR use load balancing using 3 or 4
> another servers OR just tune the currnet server for the best
> performance.
>
> What is the best option for my case assuming 50% of my 1200 users(ie
> 600) will be using the internet at the same time..
>
>
> Thanks
> Paras.
>



RE: [squid-users] load balancing

2004-07-22 Thread Chris Perreault
Do a search for "round robin dns" "multiple a records" "clustering"
"redundancy" "failover". That should give good coverage on the techniques

Also...visiting www.squid-cache.org and searching for "failover" will help.

Chris Perreault

-Original Message-
From: Gert Brits [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 22, 2004 7:40 AM
To: [EMAIL PROTECTED] Org
Subject: [squid-users] load balancing


Hi All

Please could I have either some ideas or solutions to the following:

I work for a BIG company, providing internet services for many customers.

I am planning to install a load balancing plan for our cache server, which
will obviously load balance, but will also have a redundant feature.

What can I do this with?

Basically have to servers service the caching, but "they must look like one
server" ... I am sure I sound stupid, but just to make sure.


Regards

Gert Brits


RE: [squid-users] load balancing

2004-07-22 Thread Mohsin Khan
ah ha!well do a search for Wccp, and do not just
do it, implement it. You can also use LVS thats work
goods as well.

--- Chris Perreault <[EMAIL PROTECTED]>
wrote:
> Do a search for "round robin dns" "multiple a
> records" "clustering"
> "redundancy" "failover". That should give good
> coverage on the techniques
> 
> Also...visiting www.squid-cache.org and searching
> for "failover" will help.
> 
> Chris Perreault
> 
> -Original Message-
> From: Gert Brits [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 22, 2004 7:40 AM
> To: [EMAIL PROTECTED] Org
> Subject: [squid-users] load balancing
> 
> 
> Hi All
> 
> Please could I have either some ideas or solutions
> to the following:
> 
> I work for a BIG company, providing internet
> services for many customers.
> 
> I am planning to install a load balancing plan for
> our cache server, which
> will obviously load balance, but will also have a
> redundant feature.
> 
> What can I do this with?
> 
> Basically have to servers service the caching, but
> "they must look like one
> server" ... I am sure I sound stupid, but just to
> make sure.
> 
> 
> Regards
> 
> Gert Brits
> 


=
Regards, 
Mohsin Khan 
CCNA ( Cisco Certified Network Associate 2.0 ) 
http://portal.aaghaz.net (Your attention is needed)

>>>Happy is the one who can smile<<<






__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail


RE: [squid-users] load balancing

2004-07-22 Thread David Rippel
Check out http://naragw.sharp.co.jp/sps/. I think that this is the most simple and 
effective way as long as you don't mind using proxy.pac files and/or WPAD. Your other 
option is to use LVS w/ keepalived and ICP.

Regards,
David

>>> Chris Perreault <[EMAIL PROTECTED]> 7/22/2004 8:02:00 AM >>>
Do a search for "round robin dns" "multiple a records" "clustering"
"redundancy" "failover". That should give good coverage on the techniques

Also...visiting www.squid-cache.org and searching for "failover" will help.

Chris Perreault

-Original Message-
From: Gert Brits [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 22, 2004 7:40 AM
To: [EMAIL PROTECTED] Org
Subject: [squid-users] load balancing


Hi All

Please could I have either some ideas or solutions to the following:

I work for a BIG company, providing internet services for many customers.

I am planning to install a load balancing plan for our cache server, which
will obviously load balance, but will also have a redundant feature.

What can I do this with?

Basically have to servers service the caching, but "they must look like one
server" ... I am sure I sound stupid, but just to make sure.


Regards

Gert Brits



--
SPAM filtering options: Spam is defined as unsolicited commercial email.
--
ITS has provided the following optional links to train our Anti-Spam system.
If the subject contains a "___" then this email was identified as possible Spam.

If you wish to identify this email as SPAM then click here.
Spam:
http://ns1b.hillsboroughcounty.org/canit/b.php?c=s&i=378368&m=29cf55a9fe1e 

If you wish to identify this email as not being Spam then click here.
Not spam:
http://ns1b.hillsboroughcounty.org/canit/b.php?c=n&i=378368&m=29cf55a9fe1e 
--





Re: [squid-users] load balancing

2004-08-02 Thread Henrik Nordstrom
On Mon, 2 Aug 2004, Jeff Donovan wrote:

> I'm running a transparent cache with squid guard. My problem seems to 
> be How do I split my traffic?

This you do in your router in case of transparently intercepting proxies.. 
If you are not using a TCP interception device capable of tracking 
individual connections then this is most easily done by splitting the 
destination IP address space among the caches. CARP does so automatically 
for you.

> or how do i create a failover if one squid server becomes to busy?

best done by an external load balancer. Linux Virtual Server is a good 
free one, highend routers & switches usually also have reasonable load 
balancing functions built in.

Regards
Henrik



Re: [squid-users] load balancing

2004-08-02 Thread Jeff Donovan
On Aug 2, 2004, at 9:25 AM, Henrik Nordstrom wrote:
On Mon, 2 Aug 2004, Jeff Donovan wrote:
I'm running a transparent cache with squid guard. My problem seems to
be How do I split my traffic?
This you do in your router in case of transparently intercepting 
proxies..
If you are not using a TCP interception device capable of tracking
individual connections then this is most easily done by splitting the
destination IP address space among the caches. CARP does so 
automatically
for you.

or how do i create a failover if one squid server becomes to busy?
best done by an external load balancer. Linux Virtual Server is a good
free one, highend routers & switches usually also have reasonable load
balancing functions built in.
would this be a placed on a linux server in front of the two cache's or 
does it run on the same device as squid?

Unfortunately my layer 3 switch does not allow for multiple default 
routes or even a policy route. Otherwise i would have just routed my 
traffic to the new interface.
-j
---
jeff donovan
basd network operations
(610) 807 5571 x41
AIM  xtdonovan



Re: [squid-users] load balancing

2004-08-02 Thread Henrik Nordstrom
On Mon, 2 Aug 2004, Jeff Donovan wrote:

> would this be a placed on a linux server in front of the two cache's or 
> does it run on the same device as squid?

Both possibilities existsm

Regards
Henrik



Re: [squid-users] load balancing

2004-08-02 Thread Mohsin Khan
LVS can be placed on the same server, but it is good
if you a new Linux Box for it, I am not sure but last
time I used it, I need to recompile the kernel. Please
do check with the latest Docs.

And why can not you do the Roundrobin. It is always a
good option. And yeah most convinient, you can use a
PAC file.
--- Jeff Donovan <[EMAIL PROTECTED]> wrote:

> 
> On Aug 2, 2004, at 9:25 AM, Henrik Nordstrom wrote:
> 
> > On Mon, 2 Aug 2004, Jeff Donovan wrote:
> >
> >> I'm running a transparent cache with squid guard.
> My problem seems to
> >> be How do I split my traffic?
> >
> > This you do in your router in case of
> transparently intercepting 
> > proxies..
> > If you are not using a TCP interception device
> capable of tracking
> > individual connections then this is most easily
> done by splitting the
> > destination IP address space among the caches.
> CARP does so 
> > automatically
> > for you.
> >
> >> or how do i create a failover if one squid server
> becomes to busy?
> >
> > best done by an external load balancer. Linux
> Virtual Server is a good
> > free one, highend routers & switches usually also
> have reasonable load
> > balancing functions built in.
> >
> 
> would this be a placed on a linux server in front of
> the two cache's or 
> does it run on the same device as squid?
> 
> Unfortunately my layer 3 switch does not allow for
> multiple default 
> routes or even a policy route. Otherwise i would
> have just routed my 
> traffic to the new interface.
> -j
> ---
> jeff donovan
> basd network operations
> (610) 807 5571 x41
> AIM  xtdonovan
> 
> 


=
Regards, 
Mohsin Khan 
CCNA ( Cisco Certified Network Associate 2.0 ) 
http://pk.aaghaz.net 

>>>Happy is the one who can smile<<<






__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: [squid-users] Load Balancing Query

2009-06-15 Thread Amos Jeffries

Mario Remy Almeida wrote:

Hi All,

Want to know if load balancing is possible with squid by maintaining
sessions.
Health check should be TCP Ports

eg:
Server A -> Active port 8080
Server B -> Active port 8080

Client -> Squid -> Server A and/or B

Request 1 comes from 'Client A' Squid forwards the request to 'Server A'
Request 2 comes from 'Client A' Squid forwards the request to 'Server A'
and so on
any further request from 'Client A' squid should only forward to 'Server
A' until the session is same

if

Request 1 comes from 'Client B' Squid forwards the request to 'Server B'
Request 2 comes from 'Client B' Squid forwards the request to 'Server B'

if 'Server A' fails Squid should forward all the request to 'Server B'

//Remy




HTTP is stateless. It contains no such thing as sessions. That is a 
browser feature.


What you are looking for is something like CARP or sourcehash peering 
algorithms. They keep all requests for certain URLs sent to the same 
place (CARP) or all requests for the same IP to the same place (sourcehash).


see
http://www.squid-cache.org/Doc/config/cache_peer


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
  Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1


Re: [squid-users] Load Balancing Query

2009-06-15 Thread Mario Remy Almeida
Hi Amos,

Thanks for that,

so I need to use carp and sourcehash to do load balancing, right?

but where do I specify in squid to monitor the prots?

I mean if port 8080 is down on 'ServerA' how Squid will know that it
should send the request to 'ServerB' on port 8080?

//Remy

On Mon, 2009-06-15 at 23:05 +1200, Amos Jeffries wrote:
> Mario Remy Almeida wrote:
> > Hi All,
> > 
> > Want to know if load balancing is possible with squid by maintaining
> > sessions.
> > Health check should be TCP Ports
> > 
> > eg:
> > Server A -> Active port 8080
> > Server B -> Active port 8080
> > 
> > Client -> Squid -> Server A and/or B
> > 
> > Request 1 comes from 'Client A' Squid forwards the request to 'Server A'
> > Request 2 comes from 'Client A' Squid forwards the request to 'Server A'
> > and so on
> > any further request from 'Client A' squid should only forward to 'Server
> > A' until the session is same
> > 
> > if
> > 
> > Request 1 comes from 'Client B' Squid forwards the request to 'Server B'
> > Request 2 comes from 'Client B' Squid forwards the request to 'Server B'
> > 
> > if 'Server A' fails Squid should forward all the request to 'Server B'
> > 
> > //Remy
> > 
> 
> 
> HTTP is stateless. It contains no such thing as sessions. That is a 
> browser feature.
> 
> What you are looking for is something like CARP or sourcehash peering 
> algorithms. They keep all requests for certain URLs sent to the same 
> place (CARP) or all requests for the same IP to the same place (sourcehash).
> 
> see
> http://www.squid-cache.org/Doc/config/cache_peer
> 
> 
> Amos

> 


--
Disclaimer and Confidentiality


This material has been checked for  computer viruses and although none has
been found, we cannot guarantee  that it is completely free from such problems
and do not accept any  liability for loss or damage which may be caused.
Please therefore  check any attachments for viruses before using them on your
own  equipment. If you do find a computer virus please inform us immediately
so that we may take appropriate action. This communication is intended  solely
for the addressee and is confidential. If you are not the intended recipient,
any disclosure, copying, distribution or any action  taken or omitted to be
taken in reliance on it, is prohibited and may be  unlawful. The views
expressed in this message are those of the  individual sender, and may not
necessarily be that of ISA.


Re: [squid-users] Load Balancing Query

2009-06-15 Thread Amos Jeffries

Mario Remy Almeida wrote:

Hi Amos,

Thanks for that,

so I need to use carp and sourcehash to do load balancing, right?


only the one you want.



but where do I specify in squid to monitor the prots?

I mean if port 8080 is down on 'ServerA' how Squid will know that it
should send the request to 'ServerB' on port 8080?


It's automatic in the background.

The latest 2.HEAD and 3.1 have options to configure how long it takes to 
detect. Other squid attempt ~10 connects and then failover.


Amos



//Remy

On Mon, 2009-06-15 at 23:05 +1200, Amos Jeffries wrote:

Mario Remy Almeida wrote:

Hi All,

Want to know if load balancing is possible with squid by maintaining
sessions.
Health check should be TCP Ports

eg:
Server A -> Active port 8080
Server B -> Active port 8080

Client -> Squid -> Server A and/or B

Request 1 comes from 'Client A' Squid forwards the request to 'Server A'
Request 2 comes from 'Client A' Squid forwards the request to 'Server A'
and so on
any further request from 'Client A' squid should only forward to 'Server
A' until the session is same

if

Request 1 comes from 'Client B' Squid forwards the request to 'Server B'
Request 2 comes from 'Client B' Squid forwards the request to 'Server B'

if 'Server A' fails Squid should forward all the request to 'Server B'

//Remy



HTTP is stateless. It contains no such thing as sessions. That is a 
browser feature.


What you are looking for is something like CARP or sourcehash peering 
algorithms. They keep all requests for certain URLs sent to the same 
place (CARP) or all requests for the same IP to the same place (sourcehash).


see
http://www.squid-cache.org/Doc/config/cache_peer


Amos





--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
  Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1


Re: [squid-users] Load Balancing Query

2009-06-15 Thread Mario Remy Almeida
Thanks Amos for the help



On Tue, 2009-06-16 at 00:30 +1200, Amos Jeffries wrote:
> Mario Remy Almeida wrote:
> > Hi Amos,
> > 
> > Thanks for that,
> > 
> > so I need to use carp and sourcehash to do load balancing, right?
> 
> only the one you want.
> 
> > 
> > but where do I specify in squid to monitor the prots?
> > 
> > I mean if port 8080 is down on 'ServerA' how Squid will know that it
> > should send the request to 'ServerB' on port 8080?
> 
> It's automatic in the background.
> 
> The latest 2.HEAD and 3.1 have options to configure how long it takes to 
> detect. Other squid attempt ~10 connects and then failover.
> 
> Amos
> 
> > 
> > //Remy
> > 
> > On Mon, 2009-06-15 at 23:05 +1200, Amos Jeffries wrote:
> >> Mario Remy Almeida wrote:
> >>> Hi All,
> >>>
> >>> Want to know if load balancing is possible with squid by maintaining
> >>> sessions.
> >>> Health check should be TCP Ports
> >>>
> >>> eg:
> >>> Server A -> Active port 8080
> >>> Server B -> Active port 8080
> >>>
> >>> Client -> Squid -> Server A and/or B
> >>>
> >>> Request 1 comes from 'Client A' Squid forwards the request to 'Server A'
> >>> Request 2 comes from 'Client A' Squid forwards the request to 'Server A'
> >>> and so on
> >>> any further request from 'Client A' squid should only forward to 'Server
> >>> A' until the session is same
> >>>
> >>> if
> >>>
> >>> Request 1 comes from 'Client B' Squid forwards the request to 'Server B'
> >>> Request 2 comes from 'Client B' Squid forwards the request to 'Server B'
> >>>
> >>> if 'Server A' fails Squid should forward all the request to 'Server B'
> >>>
> >>> //Remy
> >>>
> >>
> >> HTTP is stateless. It contains no such thing as sessions. That is a 
> >> browser feature.
> >>
> >> What you are looking for is something like CARP or sourcehash peering 
> >> algorithms. They keep all requests for certain URLs sent to the same 
> >> place (CARP) or all requests for the same IP to the same place 
> >> (sourcehash).
> >>
> >> see
> >> http://www.squid-cache.org/Doc/config/cache_peer
> >>
> >>
> >> Amos
> > 
> > 



--
Disclaimer and Confidentiality


This material has been checked for  computer viruses and although none has
been found, we cannot guarantee  that it is completely free from such problems
and do not accept any  liability for loss or damage which may be caused.
Please therefore  check any attachments for viruses before using them on your
own  equipment. If you do find a computer virus please inform us immediately
so that we may take appropriate action. This communication is intended  solely
for the addressee and is confidential. If you are not the intended recipient,
any disclosure, copying, distribution or any action  taken or omitted to be
taken in reliance on it, is prohibited and may be  unlawful. The views
expressed in this message are those of the  individual sender, and may not
necessarily be that of ISA.


Re: [squid-users] Load balancing query

2005-02-20 Thread Henrik Nordstrom
On Fri, 28 Jan 2005, Carinus Carelse wrote:
I have two external networks connected and I have one proxy server that
is servicing about 500 users.  I would like the squid box to do some
load balancing across the two external link so that the http traffic
does not just go through the one link.
Is this possible and how do i go about setting this up.
This is best done by route load balancing in your OS.
But you can use tcp_outgoing_address to make Squid select which link to 
use for certain kinds of request.

Regards
Henrik


Re: [squid-users] Load Balancing Squids

2006-09-28 Thread Steve Webb
I've got the same kind of thing going and I have it working with 
sibling-mode (not parent).  Might want to check your firewall stuff and 
make sure that each squid is listening on 3130 for peer requests (forget 
what the option is).


My problem is what happens when the real server behind the proxies dies? 
How does squid handle a failure like that?


- Steve

On Thu, 28 Sep 2006, Jose Octavio de Castro Neves Jr wrote:


Date: Thu, 28 Sep 2006 19:00:52 -0300
From: Jose Octavio de Castro Neves Jr <[EMAIL PROTECTED]>
To: squid-users@squid-cache.org
Subject: [squid-users] Load Balancing Squids

Hey Guys,

I have a situation here. I have a load balancer sending the requests
to two differents squids. I tryied to use cache_peer with proxy only
option, but I get TCP Denied.

What should I do on both confs? Add both as parents with proxy only
option or what?

Thanxs in advance,

JOC



--
Steve Webb - Sr. Linux System Administrator
Email: [EMAIL PROTECTED]
Cell: 303-564-4269, Office: 303-497-9368
YIM: scumola


Re: [squid-users] Load Balancing with Cache_Peers

2004-07-19 Thread Henrik Nordstrom
On Wed, 14 Jul 2004, Kent, Mr. John (Contractor) wrote:

> The part I don't understand is the redirection:  the page says:
> To implement this solution your redirector script must output a URL where the 
> hostname part of the URL is a keyword which describes a pool of backend servers, 
> such as http://backendpool/VirtualHostBase/http/www.example.com:80/a/b/c Note that 
> the hostname part of the URL is not a real host; it is a keyword that will be used 
> in squid's configuration. 
> I want to try to take advantage of that "sophisticated logic".   VirtualHostBase is 
> a a Zope specific keyword. What should my redirectors return 
> to call an apache backend specified by the backendpool or can it even be done?

This is just Zope garbage and can be ignored for Apache.

You do not need a redirector, just cache_peer.

Regards
Henrik



[squid-users] RE : [squid-users] load balancing

2004-07-22 Thread mathieu . millet
> -Message d'origine-
> De : Gert Brits [mailto:[EMAIL PROTECTED] 
> Envoyé : jeudi 22 juillet 2004 13:40
> À : [EMAIL PROTECTED] Org
> Objet : [squid-users] load balancing
> 
> 
> Hi All
> 
> Please could I have either some ideas or solutions to the following:
> 
> I work for a BIG company, providing internet services for 
> many customers.
> 
> I am planning to install a load balancing plan for our cache 
> server, which will obviously load balance, but will also have 
> a redundant feature.
> 
> What can I do this with?

You may perform using either solution like LVS (Linux Virtual Server)
http://www.linuxvirtualserver.org or load-balancing dedicated equipment such
as Radware Cache Server Director (or Web Server Director), F5 BIG IP, Nortel
Alteon, Cisco (I wouldn't recommend since they are not good in this market,
really).

The thing is you have an equipment (either special switchs or linux servers)
that dispatches the incoming requests to "real" servers. The load-balancer
"know" the states of each "real" servers to prevent dispatching requests to
an overloaded server.

And to avoir single point of failure, the dispatcher is doubled in an
active/passive way.

> Basically have to servers service the caching, but "they must 
> look like one server" ... I am sure I sound stupid, but just 
> to make sure.
> 

I hope it will help you.

Sincerely yours, Mathieu.


Re: [squid-users] Load Balancing Content Types

2003-09-22 Thread Henrik Nordstrom
On Sun, 21 Sep 2003, Darryn Lowe wrote:

> Therefore, is it possible to have Squid change parent proxies based on
> the content type of the requested URL?  How do I do this?

This you can't, as the content type is not known until the reply is seen.

What you can do is to select parent proxy based on an estimate of what the 
content type will be based on the extension of the URL (i.e. 
http://www.example.com/some/song.mp3 is quite likely a mp3 file). For this 
purpose see the urlpath_regex acl and the cache_peer_access directive.

Regards
Henrik




Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Lieven Marchand
Dusan Djordjevic <[EMAIL PROTECTED]> writes:

> I plan to install few instances of Squid on one multiprocessor box and 
> balance load between them. I plan to use LinuxVirtualServer for it. Do 
> someone have that kind of solution ? What load balancing you suggest ? 
> Any other recommendation ?

First measure whether your squid installation is CPU-bound or
I/O-bound. If it is the latter, multiprocessing won't change much.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Marc Elsen


Dusan Djordjevic wrote:
> 
> Hi all,
> 
> I plan to install few instances of Squid on one multiprocessor box and
> balance load between them. I plan to use LinuxVirtualServer for it. Do
> someone have that kind of solution ? What load balancing you suggest ?
> Any other recommendation ?

 Do you have  an idea of the sustained http reqs/sec , your squid
 has to deal with ?

 On design terms I would question whether this setup is
meaningfull,since
 only one box is being used. Single point of failure issues e.d.
 would probably lead to think that at least 2 boxes, with one virtual
 address (server) would be better.

 M.

> 
> Thanks in advance...
> -
> Eng. Dusan Djordjevic (RHCE)   PlanetSky Ltd.
> Tel: +357 22454896*Fax: +357-22518022
> http://www.planetsky.com  [EMAIL PROTECTED]

-- 

 'Love is truth without any future.
 (M.E. 1997)


Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Marc Elsen


Dusan Djordjevic wrote:
> 
> Monday 07 July 2003 10:56, Marc Elsen:
> >  > I plan to install few instances of Squid on one multiprocessor box
> >  > and balance load between them. I plan to use LinuxVirtualServer
> >  > for it. Do someone have that kind of solution ? What load
> >  > balancing you suggest ? Any other recommendation ?
> >   Do you have  an idea of the sustained http reqs/sec , your squid
> >   has to deal with ?
> 
> Yes. I need specific non-caching proxy. There are 3000-5000 requests per
> second. Currently I have one 4CPU box i would like to deploy.

 Hm, I think I read that squid can give you a max. of about 300
reqs/sec.
 As stated before on the list squid on itself can not make
 use of more then one cpu.

 So I think in a virtual server setup, you may be better off with 4
 separate boxes (probably), I think it would give you more
 flexibility and squid service uptime, if one box is down,
 for instance.

 M.


Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Kinkie
Marc Elsen <[EMAIL PROTECTED]> writes:

> Dusan Djordjevic wrote:
>> 
>> Monday 07 July 2003 10:56, Marc Elsen:
>> >  > I plan to install few instances of Squid on one multiprocessor box
>> >  > and balance load between them. I plan to use LinuxVirtualServer
>> >  > for it. Do someone have that kind of solution ? What load
>> >  > balancing you suggest ? Any other recommendation ?
>> >   Do you have  an idea of the sustained http reqs/sec , your squid
>> >   has to deal with ?
>> 
>> Yes. I need specific non-caching proxy. There are 3000-5000 requests per
>> second. Currently I have one 4CPU box i would like to deploy.
>
>  Hm, I think I read that squid can give you a max. of about 300
> reqs/sec.
>  As stated before on the list squid on itself can not make
>  use of more then one cpu.
>
>  So I think in a virtual server setup, you may be better off with 4
>  separate boxes (probably), I think it would give you more
>  flexibility and squid service uptime, if one box is down,
>  for instance.

If you're running on Linux, there is a trick which can balance
between 2 squid instances running on the same box, discriminating between
the two depending on the client IP address.
Run the second instance on some other http_port (i.e. 4128) and add this
iptables rule:

iptables -t nat -A PREROUTING -s 0.0.0.0/0.0.0.1 -p tcp \
 --destination-port 3128 -j REDIRECT --to-ports 4128


More instances (in powers of 2) should be possible using similar tricks.


-- 
kinkie (kinkie-squid [at] kinkie [dot] it)
Random fortune, unrelated to the message:
Can't act.  Slightly bald.  Also dances.
-- RKO executive, reacting to Fred Astaire's screen test.
   Cerf/Navasky, "The Experts Speak"


Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Masood Ahmad Shah
hmmm but what do u think if the proxy is transparent ..:)

-- 

Best Regs,
Masood Ahmad Shah
System Administrator

^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
|   * * * * * * * * * * * * * * * * * * * * * * * *
|   Fibre Net (Pvt) Ltd. Lahore, Pakistan
|   Tel: +92-42-6677024
|   Mobile: +92-300-4277367
|   http://www.fibre.net.pk
|   * * * * * * * * * * * * * * * * * * * * * * * *
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
"All I want is a few minutes alone with the source code for the universe and
a quick recompile."


- Original Message - 
From: "Kinkie" <[EMAIL PROTECTED]>
To: "Marc Elsen" <[EMAIL PROTECTED]>
Cc: "Dusan Djordjevic" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 1:54 PM
Subject: Re: [squid-users] Load balancing on single machine


| Marc Elsen <[EMAIL PROTECTED]> writes:
|
| > Dusan Djordjevic wrote:
| >>
| >> Monday 07 July 2003 10:56, Marc Elsen:
| >> >  > I plan to install few instances of Squid on one multiprocessor box
| >> >  > and balance load between them. I plan to use LinuxVirtualServer
| >> >  > for it. Do someone have that kind of solution ? What load
| >> >  > balancing you suggest ? Any other recommendation ?
| >> >   Do you have  an idea of the sustained http reqs/sec , your squid
| >> >   has to deal with ?
| >>
| >> Yes. I need specific non-caching proxy. There are 3000-5000 requests
per
| >> second. Currently I have one 4CPU box i would like to deploy.
| >
| >  Hm, I think I read that squid can give you a max. of about 300
| > reqs/sec.
| >  As stated before on the list squid on itself can not make
| >  use of more then one cpu.
| >
| >  So I think in a virtual server setup, you may be better off with 4
| >  separate boxes (probably), I think it would give you more
| >  flexibility and squid service uptime, if one box is down,
| >  for instance.
|
| If you're running on Linux, there is a trick which can balance
| between 2 squid instances running on the same box, discriminating between
| the two depending on the client IP address.
| Run the second instance on some other http_port (i.e. 4128) and add this
| iptables rule:
|
| iptables -t nat -A PREROUTING -s 0.0.0.0/0.0.0.1 -p tcp \
|  --destination-port 3128 -j REDIRECT --to-ports 4128
|
|
| More instances (in powers of 2) should be possible using similar tricks.
|
|
| -- 
| kinkie (kinkie-squid [at] kinkie [dot] it)
| Random fortune, unrelated to the message:
| Can't act.  Slightly bald.  Also dances.
| -- RKO executive, reacting to Fred Astaire's screen test.
|Cerf/Navasky, "The Experts Speak"
|



Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Kinkie
"Masood Ahmad Shah" <[EMAIL PROTECTED]> writes:

> hmmm but what do u think if the proxy is transparent ..:)

[...]

The trick is the same. Just do two rules, one with source

-s 0.0.0.0/0.0.0.1

redirecting to the first instance of the transparent proxy, the other with 

\! -s 0.0.0.0/0.0.0.1 

redirecting to the other instance.

-- 
kinkie (kinkie-squid [at] kinkie [dot] it)
Random fortune, unrelated to the message:
Yow!  Am I in Milwaukee?


Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Masood Ahmad Shah
In my sense if one proxy will down another will not take it's place because
iptable rules are redirecting packets to both port and port instance is not
running.. so what type of  load balancing .:)
Better to run Linux clustering that is much better then things like that...

-- 

Best Regs,
Masood Ahmad Shah
System Administrator

^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
|   * * * * * * * * * * * * * * * * * * * * * * * *
|   Fibre Net (Pvt) Ltd. Lahore, Pakistan
|   Tel: +92-42-6677024
|   Mobile: +92-300-4277367
|   http://www.fibre.net.pk
|   * * * * * * * * * * * * * * * * * * * * * * * *
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
"All I want is a few minutes alone with the source code for the universe and
a quick recompile."


- Original Message - 
From: "Kinkie" <[EMAIL PROTECTED]>
To: "Masood Ahmad Shah" <[EMAIL PROTECTED]>
Cc: "Marc Elsen" <[EMAIL PROTECTED]>; "Dusan Djordjevic"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 07, 2003 2:34 PM
Subject: Re: [squid-users] Load balancing on single machine


| "Masood Ahmad Shah" <[EMAIL PROTECTED]> writes:
|
| > hmmm but what do u think if the proxy is transparent ..:)
|
| [...]
|
| The trick is the same. Just do two rules, one with source
|
| -s 0.0.0.0/0.0.0.1
|
| redirecting to the first instance of the transparent proxy, the other with
|
| \! -s 0.0.0.0/0.0.0.1
|
| redirecting to the other instance.
|
| -- 
| kinkie (kinkie-squid [at] kinkie [dot] it)
| Random fortune, unrelated to the message:
| Yow!  Am I in Milwaukee?
|



Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Kinkie
"Masood Ahmad Shah" <[EMAIL PROTECTED]> writes:

> In my sense if one proxy will down another will not take it's place because
> iptable rules are redirecting packets to both port and port instance is not
> running.. so what type of  load balancing .:)

Load balancing _is_ in effect. It's the health-checking that's not.
For that you'd have to concot some script modifying the iptables rules
depending on service availability. I'll leave that as an exercise for the readers.

> Better to run Linux clustering that is much better then things like that...

It's just done in a different way. BTW, I tried to use linuxvirtualserver
on the same host, but for some reason it didn't really work.


-- 
kinkie (kinkie-squid [at] kinkie [dot] it)
Random fortune, unrelated to the message:
Successful and fortunate crime is called virtue.
- Seneca


Re: [squid-users] Load balancing on single machine

2003-07-07 Thread Dieter Bloms
Hi,

On Mon, Jul 07, Kinkie wrote:

> It's just done in a different way. BTW, I tried to use linuxvirtualserver
> on the same host, but for some reason it didn't really work.

I use the software called pen for loadbalancing and it works greate for
tcp connections

http://siag.nu/pen/

For ha cluster, you need the software vrrpd, too.

http://off.net/~jme/vrrpd/


-- 
Gruß

  Dieter

--
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
From field.


pgp0.pgp
Description: PGP signature


Re: [squid-users] Load balancing between 3 squid

2005-07-07 Thread Matus UHLAR - fantomas
On 07.07 00:41, Abbas Salehi wrote:
> I'm using squid as cache server ,
> How i can load balance the http traffic between this 3 cache server with
> round robin algorithm,

do you use 1 or 3 cache servers?

> Supposing that i,ve route http request from cisco router to these cache
> server,any solution please ,

just as normal, unless you want to use SLB... then you can look at this
thread: http://www.squid-cache.org/mail-archive/squid-users/200506/0662.html

> I've implement some solution ,such as load balancer on linux,using some
> software from surceforge,but is not very stable,

-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
He who laughs last thinks slowest. 


Re: [squid-users] Load balancing squid with squid

2005-11-18 Thread Christoph Haas
On Friday 18 November 2005 14:31, Stefano Mason wrote:
> I'm thinking to load balancing 2 squid processes with 1 squid. Is this
> idea stupid?
>
> Landscape:
>
> 1 SMP machine with:
>   squid1 with cache_dir (a real piece of disk) bind localhost
>   squid2 with cache_dir (a real piece of disk) bind localhost
>
>   squidv with cache_dir null
>   cache_peer 127.0.0.1 parent 3128 3130 no-query proxy-only round-robin
>   cache_peer 127.0.0.1 parent 4128 4130 no-query proxy-only round-robin
>   never_direct allow all
>
> Can someone supply me any comments?

Although this would technically work I don't see any gain here - just more 
overhead. IMHO two Squids on the same server won't make things go faster 
than a single Squid.

If your proxies are not fast enough (CPU, network bandwidth, etc.) then 
consider setting up Squids on different servers and put a decent hardware 
load balancer in front of it. We use a Foundry load balancer and four 
Squid nodes here.

Btw, you can use multiple cache directories (cache_dir) in case you want to 
use different hard disks to speed up the disk cache.

 Christoph
-- 
~
~
".signature" [Modified] 2 lines --100%--2,41 All


RE: [squid-users] RE : [squid-users] load balancing

2004-07-22 Thread Gert Brits
Awesome help thanks

I knew about the hardware way ... let me investigate the Linux way ;-)


Regards

Gert Brits
Senior Engineer
Technology Concepts
Tel +27 11 803 2169
Fax +27 11 803 2189
http://www.techconcepts.co.za

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: [squid-users] RE : [squid-users] load balancing


> -Message d'origine-
> De : Gert Brits [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 22 juillet 2004 13:40
> À : [EMAIL PROTECTED] Org
> Objet : [squid-users] load balancing
>
>
> Hi All
>
> Please could I have either some ideas or solutions to the following:
>
> I work for a BIG company, providing internet services for
> many customers.
>
> I am planning to install a load balancing plan for our cache
> server, which will obviously load balance, but will also have
> a redundant feature.
>
> What can I do this with?

You may perform using either solution like LVS (Linux Virtual Server)
http://www.linuxvirtualserver.org or load-balancing dedicated equipment such
as Radware Cache Server Director (or Web Server Director), F5 BIG IP, Nortel
Alteon, Cisco (I wouldn't recommend since they are not good in this market,
really).

The thing is you have an equipment (either special switchs or linux servers)
that dispatches the incoming requests to "real" servers. The load-balancer
"know" the states of each "real" servers to prevent dispatching requests to
an overloaded server.

And to avoir single point of failure, the dispatcher is doubled in an
active/passive way.

> Basically have to servers service the caching, but "they must
> look like one server" ... I am sure I sound stupid, but just
> to make sure.
>

I hope it will help you.

Sincerely yours, Mathieu.



Re: [squid-users] Load Balancing in ICAP - reg

2007-02-13 Thread Henrik Nordstrom
tis 2007-02-13 klockan 17:15 +0530 skrev Selvi:
> Hi All,
> 
> I am just checking the Load balancing feature available in squid-icap setup.

Squid-2.x patched with an ICAP patch, or Squid-3 with ICAP enabled?

Regards
Henrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel


Re: [squid-users] Load Balancing in ICAP - reg

2007-02-13 Thread Selvi

Hi,

Currently i am using Squid-2.x patched with ICAP.

Thanks,
Selvi


- Original Message - 
From: "Henrik Nordstrom" <[EMAIL PROTECTED]>

To: "Selvi" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, February 14, 2007 3:57 AM
Subject: Re: [squid-users] Load Balancing in ICAP - reg




Re: [squid-users] Load balancing multiple Squid servers

2003-12-18 Thread Duane Wessels



On Wed, 17 Dec 2003, Cavanagh, Kevin B wrote:

>
> Hi there,
>
> Please forgive me if this question has been asked/answered before (I
> searched the FAQs but quickly became too confused by all the various
> postings regarding load balancing, etc).
>
> We currently have six RedHat Linux V8.0 servers running Squid V2.5
> Stable in the following parent/child proxy chain:
>
> User U Iprism URL filters   Squid caching (child)   HTTP Anti-virus
> (parent)   Internet
>
> We have six of each - with each currently having a one-to-one
> relationship (ie. IPRISM1P SQUID1   AV1   INET, etc).We would like
> to create a load-balanced situation here if at all possible.

probably the only part we can help you with is the way that SQUID selects
which AV parent to send a request to.

One approach is to make a DNS name or /etc/hosts entry for the AV servers
that has all their IP addresses.  Then you put a single line in squid.conf:

 cache_peer av-servers.example.com parent  0 no-query

Another approach is to list all servers separately and use the round-robin option

 cache_peer 172.16.0.1 parent  0 no-query round-robin
 cache_peer 172.16.0.2 parent  0 no-query round-robin
 cache_peer 172.16.0.3 parent  0 no-query round-robin
 cache_peer 172.16.0.4 parent  0 no-query round-robin
 cache_peer 172.16.0.5 parent  0 no-query round-robin
 cache_peer 172.16.0.6 parent  0 no-query round-robin

Yet another approach is to use CARP:

 cache_peer 172.16.0.1 parent  0 no-query carp-load-factor=0.16
 cache_peer 172.16.0.2 parent  0 no-query carp-load-factor=0.16
 cache_peer 172.16.0.3 parent  0 no-query carp-load-factor=0.17
 cache_peer 172.16.0.4 parent  0 no-query carp-load-factor=0.17
 cache_peer 172.16.0.5 parent  0 no-query carp-load-factor=0.17
 cache_peer 172.16.0.6 parent  0 no-query carp-load-factor=0.17

Duane W.


Re: [squid-users] Load-balancing domain controllers with Squid

2008-01-22 Thread Kinkie
On Jan 22, 2008 5:05 PM, Nick Duda <[EMAIL PROTECTED]> wrote:
> I've googled around a bit and see things about using the ntlm_auth -b
> option, but I don't understand how/where?
>
> Problem: I have squid setup to do NTLM aunthetication of the proxy users
> against a local domain controller (samba/winbind installed on the proxy
> server), pretty straight forward. If the domain controller goes down or
> gets rebooted, the proxy users start getting popups to authenticate. I
> typically restart the winbind service when this happens once the DC
> comes back up. How can I setup squid, or samba/winbind so that when one
> DC goes down it uses the backup DC?

The Samba folks are probably better off in answering this question.
I'd be interested in knowing the answer tho.

-- 
/kinkie


RE: [squid-users] Load-balancing domain controllers with Squid

2008-01-22 Thread Nick Duda
Ok cool, I'll post over there. I'm just trying to see if anyone else has done 
this already with Squidkill 2 birds with one stone here.

-Original Message-
From: Kinkie [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 22, 2008 11:16 AM
To: Nick Duda
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Load-balancing domain controllers with Squid

On Jan 22, 2008 5:05 PM, Nick Duda <[EMAIL PROTECTED]> wrote:
> I've googled around a bit and see things about using the ntlm_auth -b
> option, but I don't understand how/where?
>
> Problem: I have squid setup to do NTLM aunthetication of the proxy users
> against a local domain controller (samba/winbind installed on the proxy
> server), pretty straight forward. If the domain controller goes down or
> gets rebooted, the proxy users start getting popups to authenticate. I
> typically restart the winbind service when this happens once the DC
> comes back up. How can I setup squid, or samba/winbind so that when one
> DC goes down it uses the backup DC?

The Samba folks are probably better off in answering this question.
I'd be interested in knowing the answer tho.

-- 
/kinkie


Re: [squid-users] Load balancing algorithms for an accelerator

2007-05-09 Thread Henrik Nordstrom
ons 2007-05-09 klockan 08:13 -0500 skrev Sean Walberg:

> Is there any way to balance based on least connections, or something else?

Not today, but probably quite easy to add.

Regards
Henrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel


Re: [squid-users] Load balancing algorithms for an accelerator

2007-05-11 Thread Sean Walberg

On 5/9/07, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:


> Is there any way to balance based on least connections, or something else?

Not today, but probably quite easy to add.


How would I go about getting this on a developer's radar screen?  I
don't think this is something I could do myself.

Thanks,

Sean

--
Sean Walberg <[EMAIL PROTECTED]>http://ertw.com/


Re: [squid-users] Load balancing algorithms for an accelerator

2007-05-11 Thread Adrian Chadd
On Fri, May 11, 2007, Sean Walberg wrote:
> On 5/9/07, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
> 
> >> Is there any way to balance based on least connections, or something 
> >else?
> >
> >Not today, but probably quite easy to add.
> 
> How would I go about getting this on a developer's radar screen?  I
> don't think this is something I could do myself.

You can submit a Wishlist request. I can add it to the Wiki. You can attach
a bounty, or you can say you'll donate to the Squid project on completion.




Adrian



Re: [squid-users] Load balancing algorithms for an accelerator

2007-05-11 Thread leongmzlist
You can setup a IPVS load balancer in front of your squid pool.  I 
use it load balance my 10 squid servers.  See 
http://www.linuxvirtualserver.org/



mike

At 07:10 AM 5/11/2007, Adrian Chadd wrote:

On Fri, May 11, 2007, Sean Walberg wrote:
> On 5/9/07, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
>
> >> Is there any way to balance based on least connections, or something
> >else?
> >
> >Not today, but probably quite easy to add.
>
> How would I go about getting this on a developer's radar screen?  I
> don't think this is something I could do myself.

You can submit a Wishlist request. I can add it to the Wiki. You can attach
a bounty, or you can say you'll donate to the Squid project on completion.




Adrian




Re: [squid-users] Load balancing WITHOUT parents over multiple WAN connections

2009-12-30 Thread Chris Robertson

Jon DeLee wrote:

*This message was scanned for all current viruses and is certified clean*


Hi All,

I'm using Squid 3.0. STABLE 8 as my main cache, and I have two other 
2.7 caches set up, one on each WAN connection.  The only reason we 
have multiple proxy servers is to load balance; in reality I only need 
the one 3.0 server, which has access to both WAN links.
I don't want any ACLs that force one group of users to one outgoing 
IP; I just want Squid to see that it has two paths to the internet and 
use them in a weighted round-robin fashion.
I have tried setting up one direct and one parent, but no weighting 
occurs because Squid prefers direct routes if possible.


I have tried to force squid to use an IP address on the machine and 
set up multiple weighted routes from that IP, but strange things 
happen with web sites that check source IP address, so it needs to be 
something that Squid can control.



Any suggestions?


For two links, I would think that an external_acl_type that makes a hash 
of the domain (or perhaps just the top level domain) and returns true 
for half (or whatever distribution you want) and false for the rest, 
associated with tcp_outgoing_address would work.


external_acl_type domainhash %DST /my/helper/scripts/domainhash
acl domainhash external domainhash
tcp_outgoing_address 192.168.18.45 domainhash
tcp_outgoing_address  10.32.97.43 !domainhash

I can't make any promises regarding the fail-over capability of this setup.



Thanks,

Jon DeLee


Chris



Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-20 Thread Ming-Ching Tiew

From: "Siju George" <[EMAIL PROTECTED]>
> 
> I have a System with two Internet connections.
> Is it possible to configure squid to load balance out going internet
> traffic through those two Internet Connections?
> 

This is assuming that you are running Linux :- 
Just set up multiple routing and weight assignment.
You might have to turn off kernel option which 
caches multiple routing.




Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-20 Thread Ming-Ching Tiew

From: "Ming-Ching Tiew" <[EMAIL PROTECTED]>
> 
> This is assuming that you are running Linux :- 
> Just set up multiple routing and weight assignment.
> You might have to turn off kernel option which 
> caches multiple routing.
> 

I meant MULTI PATH routing.


Important Warning! 

*** 

This electronic communication (including any attached files) may contain 
confidential and/or legally privileged information and is only intended for the 
use of the person to whom it is addressed. If you are not the intended 
recipient, you do not have permission to read, use, disseminate, distribute, 
copy or retain any part of this communication or its attachments in any form. 
If this e-mail was sent to you by mistake, please take the time to notify the 
sender so that they can identify the problem and avoid any more mistakes in 
sending e-mail to you. The unauthorised use of information contained in this 
communication or its attachments may result in legal action against any person 
who uses it.



Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-20 Thread Siju George
On Nov 21, 2007 6:29 AM, Ming-Ching Tiew <[EMAIL PROTECTED]> wrote:
>
> From: "Ming-Ching Tiew" <[EMAIL PROTECTED]>
> >
> > This is assuming that you are running Linux :-
> > Just set up multiple routing and weight assignment.
> > You might have to turn off kernel option which
> > caches multiple routing.
> >
>

Thank you so much Ching for your kind response:-)

I am running OpenBSD with route-to option in PF

http://www.openbsd.org/faq/pf/pools.html#outgoing

Is there any option to do it in the "squid.conf" file?

I know there is a "tcp_outgoing_address" option.

just wondering if it is possible to make it use all outgoing IP
address in a round-robin manner :-)

Thank you so much once again.

Kind Regards

Siju


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-20 Thread Ming-Ching Tiew

From: "Siju George" <[EMAIL PROTECTED]>
> 
> Is there any option to do it in the "squid.conf" file?
> 
> I know there is a "tcp_outgoing_address" option.
> 
> just wondering if it is possible to make it use all outgoing IP
> address in a round-robin manner :-)
> 

As far as I know, you could do "split access" using 
the 'tcp_outgoing_address' method, but you can't
get squid to use it in round-robin manner.

I might be wrong. :-)



Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-20 Thread Adrian Chadd
On Wed, Nov 21, 2007, Ming-Ching Tiew wrote:

> As far as I know, you could do "split access" using 
> the 'tcp_outgoing_address' method, but you can't
> get squid to use it in round-robin manner.
> 
> I might be wrong. :-)

I don't think there is, but making squid do that with a small source patch
wouldn't be difficult.


Adrian

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-20 Thread Tek Bahadur Limbu

Hi George,

Siju George wrote:

Hi,

I have a System with two Internet connections.
Is it possible to configure squid to load balance out going internet
traffic through those two Internet Connections?


To keep things simple, you can just use the "tcp_outgoing_address" 
parameter in squid.conf.


Thanking you...




Thank you so much

Kind Regards

Siju






--

With best regards and good wishes,

Yours sincerely,

Tek Bahadur Limbu

System Administrator

(TAG/TDG Group)
Jwl Systems Department

Worldlink Communications Pvt. Ltd.

Jawalakhel, Nepal

http://www.wlink.com.np

http://teklimbu.wordpress.com


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-21 Thread Siju George
On Nov 21, 2007 12:21 PM, Tek Bahadur Limbu <[EMAIL PROTECTED]> wrote:
> Hi George,
>
> Siju George wrote:
> > Hi,
> >
> > I have a System with two Internet connections.
> > Is it possible to configure squid to load balance out going internet
> > traffic through those two Internet Connections?
>
> To keep things simple, you can just use the "tcp_outgoing_address"
> parameter in squid.conf.
>

It didn't work :-(
I am running OpenSBD and using the route-to option in pf.conf
http://www.openbsd.org/faq/pf/pools.html#outgoing

to load balance Internet connections.
It is not multipath routing with two default routes.

Thank you so much for the response :-)

Kind Regards

Siju


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-21 Thread Henrik Nordstrom
On ons, 2007-11-21 at 13:50 +0900, Adrian Chadd wrote:
> On Wed, Nov 21, 2007, Ming-Ching Tiew wrote:
> 
> > As far as I know, you could do "split access" using 
> > the 'tcp_outgoing_address' method, but you can't
> > get squid to use it in round-robin manner.
> > 
> > I might be wrong. :-)
> 
> I don't think there is, but making squid do that with a small source patch
> wouldn't be difficult.

But not something I would recommend. Many sites dislikes clients coming
from more than one IP during the same session. The client IP is often
embedded in session cookies etc, making the session fail if the IP
changes.

Regards
Henrik


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-21 Thread Siju George
On Nov 22, 2007 2:16 AM, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
> On ons, 2007-11-21 at 13:50 +0900, Adrian Chadd wrote:
> > On Wed, Nov 21, 2007, Ming-Ching Tiew wrote:
> >
> > > As far as I know, you could do "split access" using
> > > the 'tcp_outgoing_address' method, but you can't
> > > get squid to use it in round-robin manner.
> > >
> > > I might be wrong. :-)
> >
> > I don't think there is, but making squid do that with a small source patch
> > wouldn't be difficult.
>
> But not something I would recommend. Many sites dislikes clients coming
> from more than one IP during the same session. The client IP is often
> embedded in session cookies etc, making the session fail if the IP
> changes.
>

Yes Henrik.
Such sites are identified and there is af firewall rule added to PF in
OpenBSD to route them through the same interface.. But it is not a
problem with majority of the sites.

Thank you so much for the response :-)

Kind Regards

Siju


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-21 Thread Ming-Ching Tiew
From: "Siju George" <[EMAIL PROTECTED]>
> >
> > But not something I would recommend. Many sites dislikes clients coming
> > from more than one IP during the same session. The client IP is often
> > embedded in session cookies etc, making the session fail if the IP
> > changes.
> >
>
> Yes Henrik.
> Such sites are identified and there is af firewall rule added to PF in
> OpenBSD to route them through the same interface.. But it is not a
> problem with majority of the sites.
>

Perhaps it will be interesting for squid to have an acl called random :-

( is there one already ? )

eg

   acl rnd random 50   # 50 %

   tcp_outgoing_address x.x.x.x rnd   <--- use x 50 % of time
   tcp_outgoing_address y.y.y.y rnd   < use y 50% of time
   tcp_outgoing_address z.z.z.z  <--- have to provide a
default in case nothing is matched

And the random acl can be used together with other acl too !

eg
acl link1 dst .
tcp_outgoing_address x.x.x.x link1 rnd

:-)










Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-21 Thread Adrian Chadd
It sounds like a coding project - are you volunteering? :)



Adrian

On Thu, Nov 22, 2007, Ming-Ching Tiew wrote:
> From: "Siju George" <[EMAIL PROTECTED]>
> > >
> > > But not something I would recommend. Many sites dislikes clients coming
> > > from more than one IP during the same session. The client IP is often
> > > embedded in session cookies etc, making the session fail if the IP
> > > changes.
> > >
> >
> > Yes Henrik.
> > Such sites are identified and there is af firewall rule added to PF in
> > OpenBSD to route them through the same interface.. But it is not a
> > problem with majority of the sites.
> >
> 
> Perhaps it will be interesting for squid to have an acl called random :-
> 
> ( is there one already ? )
> 
> eg
> 
>acl rnd random 50   # 50 %
> 
>tcp_outgoing_address x.x.x.x rnd   <--- use x 50 % of time
>tcp_outgoing_address y.y.y.y rnd   < use y 50% of time
>tcp_outgoing_address z.z.z.z  <--- have to provide a
> default in case nothing is matched
> 
> And the random acl can be used together with other acl too !
> 
> eg
> acl link1 dst .
> tcp_outgoing_address x.x.x.x link1 rnd
> 
> :-)
> 
> 
> 
> 
> 
> 
> 

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-21 Thread Tek Bahadur Limbu

Hi George,

Siju George wrote:

On Nov 21, 2007 12:21 PM, Tek Bahadur Limbu <[EMAIL PROTECTED]> wrote:

Hi George,

Siju George wrote:

Hi,

I have a System with two Internet connections.
Is it possible to configure squid to load balance out going internet
traffic through those two Internet Connections?

To keep things simple, you can just use the "tcp_outgoing_address"
parameter in squid.conf.



It didn't work :-(
I am running OpenSBD and using the route-to option in pf.conf
http://www.openbsd.org/faq/pf/pools.html#outgoing


I am not familiar with OpenBSD systems.
How many network interface cards does this OpenBSD system have?
And how is your network setup layout?



to load balance Internet connections.
It is not multipath routing with two default routes.


Why don't you create 2 alias in your network interface pointing to the 2 
routers having internet connectivity and then use the 
"tcp_outgoing_address" parameter?



Thanking you...



Thank you so much for the response :-)

Kind Regards

Siju






--

With best regards and good wishes,

Yours sincerely,

Tek Bahadur Limbu

System Administrator

(TAG/TDG Group)
Jwl Systems Department

Worldlink Communications Pvt. Ltd.

Jawalakhel, Nepal

http://www.wlink.com.np

http://teklimbu.wordpress.com


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-21 Thread Matus UHLAR - fantomas
> > On Wed, Nov 21, 2007, Ming-Ching Tiew wrote:
> > > As far as I know, you could do "split access" using 
> > > the 'tcp_outgoing_address' method, but you can't
> > > get squid to use it in round-robin manner.
> > > 
> > > I might be wrong. :-)

> On ons, 2007-11-21 at 13:50 +0900, Adrian Chadd wrote:
> > I don't think there is, but making squid do that with a small source patch
> > wouldn't be difficult.

On 21.11.07 21:46, Henrik Nordstrom wrote:
> But not something I would recommend. Many sites dislikes clients coming
> from more than one IP during the same session. The client IP is often
> embedded in session cookies etc, making the session fail if the IP
> changes.

We have squid servers behind L3 switch (balancer) which uses the
'sourcehash' technique for balancing requests because of this reason. Maybe
such functionality could be integrated into squid. Or into packetfilter :)

-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
There's a long-standing bug relating to the x86 architecture that
allows you to install Windows.   -- Matthew D. Fuller


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-22 Thread Siju George
On Nov 22, 2007 8:33 AM, Ming-Ching Tiew <[EMAIL PROTECTED]> wrote:
> From: "Siju George" <[EMAIL PROTECTED]>
> > >
> > > But not something I would recommend. Many sites dislikes clients coming
> > > from more than one IP during the same session. The client IP is often
> > > embedded in session cookies etc, making the session fail if the IP
> > > changes.
> > >
> >
> > Yes Henrik.
> > Such sites are identified and there is af firewall rule added to PF in
> > OpenBSD to route them through the same interface.. But it is not a
> > problem with majority of the sites.
> >
>
> Perhaps it will be interesting for squid to have an acl called random :-
>
> ( is there one already ? )
>
> eg
>
>acl rnd random 50   # 50 %
>
>tcp_outgoing_address x.x.x.x rnd   <--- use x 50 % of time
>tcp_outgoing_address y.y.y.y rnd   < use y 50% of time
>tcp_outgoing_address z.z.z.z  <--- have to provide a
> default in case nothing is matched
>
> And the random acl can be used together with other acl too !
>
> eg
> acl link1 dst .
> tcp_outgoing_address x.x.x.x link1 rnd
>
> :-)
>

If you use the

http://www.openbsd.org/faq/pf/pools.html#outgoing

method as I use now then even through the outgoing address will be
changed for 50% of the packets those same packets will be routed out
through the default interface only :-(

Thankyou so much

kind Regards

Siju


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-22 Thread Javed
There is another replacement for load-balancing, known as ClarkConnect. It is a 
perfect load balancer, firewall, with many other different solutions. Try it... 
http://www.clarkconnect.com/

-- 
Thank you, 
Javed 


- Original Message 
From: Siju George <[EMAIL PROTECTED]>
To: Ming-Ching Tiew <[EMAIL PROTECTED]>
Cc: squid-users 
Sent: Thursday, November 22, 2007 1:27:11 PM
Subject: Re: [squid-users] load balancing traffic through squid on systems with 
2 Internet connections

On Nov 22, 2007 8:33 AM, Ming-Ching Tiew <[EMAIL PROTECTED]> wrote:
> From: "Siju George" <[EMAIL PROTECTED]>
> > >
> > > But not something I would recommend. Many sites dislikes clients coming
> > > from more than one IP during the same session. The client IP is often
> > > embedded in session cookies etc, making the session fail if the IP
> > > changes.
> > >
> >
> > Yes Henrik.
> > Such sites are identified and there is af firewall rule added to PF in
> > OpenBSD to route them through the same interface.. But it is not a
> > problem with majority of the sites.
> >
>
> Perhaps it will be interesting for squid to have an acl called random :-
>
> ( is there one already ? )
>
> eg
>
>acl rnd random 50  # 50 %
>
>tcp_outgoing_address x.x.x.x rnd  <--- use x 50 % of time
>tcp_outgoing_address y.y.y.y rnd  < use y 50% of time
>tcp_outgoing_address z.z.z.z  <--- have to provide a
> default in case nothing is matched
>
> And the random acl can be used together with other acl too !
>
> eg
>acl link1 dst .
>tcp_outgoing_address x.x.x.x link1 rnd
>
> :-)
>

If you use the

http://www.openbsd.org/faq/pf/pools.html#outgoing

method as I use now then even through the outgoing address will be
changed for 50% of the packets those same packets will be routed out
through the default interface only :-(

Thankyou so much

kind Regards

Siju


  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-22 Thread Ming-Ching Tiew

> If you use the
>
> http://www.openbsd.org/faq/pf/pools.html#outgoing
>
> method as I use now then even through the outgoing address will be
> changed for 50% of the packets those same packets will be routed out
> through the default interface only :-(

First of all I don't know anything about OpenBSD but we have to
know, making squid use a particular tcp_outgoing_address is as much
as what we can ask squid to do, actual routing decision should
rightfully be left to the OPERATING SYSTEM. In Linux, all these
things are addressed :-

1. You can use POLICY ROUTING - one of the capabilities of policy
routing is be able to route based on SOURCE IP instead of destination
IP.

2. You can use MULTI PATH ROUTING - ie you can start a session
based on certain relative weight you assign to a default route.

3. You can also use netfilter 'recent'/CONNMARK match - they allow
you to tie a session to an interface for a configurable amount of
time.

I might not be even exhaustive here.

All in all, my conclusion is this :- You really have to look hard to
the operating system for this instead of squid. If you have exhausted
the capabilities of OpenBSD, you would have to throw it away !

:-)




Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-23 Thread Henrik Nordstrom
On tor, 2007-11-22 at 13:57 +0530, Siju George wrote:

> method as I use now then even through the outgoing address will be
> changed for 50% of the packets those same packets will be routed out
> through the default interface only :-(

There is two related components needed to make multipath routing work
properly for hosts connected to multiple ISPs

a) You need multi-path balancing support in the routing, balancing the
outgoing sessions on the available paths. The primary function of this
is to select the proper source IP.

b) You need policy routing based on source IP to route already assigned
traffic out via the correct ISP.

Regards
Henrik


signature.asc
Description: This is a digitally signed message part


Re: [squid-users] load balancing traffic through squid on systems with 2 Internet connections

2007-11-23 Thread Henrik Nordstrom
On tor, 2007-11-22 at 08:19 +0100, Matus UHLAR - fantomas wrote:

> We have squid servers behind L3 switch (balancer) which uses the
> 'sourcehash' technique for balancing requests because of this reason. Maybe
> such functionality could be integrated into squid. Or into packetfilter :)

That's a good coding project for some interested volunteer. Extend
tcp_outgoing_address with a "sourcehash" selector..

Regards
Henrik


signature.asc
Description: This is a digitally signed message part