LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2008, 02:37 PM   #1
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
High Availability Squid Cache Servers?


I've got a (mostly Microsoft) network with access via a pair of Cisco ASA firewalls to the Internet.

I want to deploy two Squid proxies in some kind of HA arrangement so that all users will be configured to use the proxies (and can't browse through the firewalls direct) and will each use one or other proxy, and when either proxy fails, they failover to the other.

I've looked at Ultramonkey, LVS, Heartbeat and a bunch of other stuff, but I don't think I've come up with a decent solution. Has anyone done this before, and has anyone got a good solution, with howtos, configs, etc (yeah, I know I'm being lazy!)

Thanks
 
Old 09-14-2008, 07:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Best option i think, which from the squid side is zero config, is to use a decent proxy.pac file, and do something like a hash of the uri to pick the order of what server to use. this makes for very even 50/50 load balancing (or 33/33/33 etc...) with guarenteed cache hits when the servers are all running. there are good examples around, but I can't remember the name of the best one, something like the "super mega proxy script" or something pretty similar.... actually just checking now and the site appears to have died. there's a copy of the good stuff here though: http://www.novell.com/coolsolutions/appnote/12952.html and so here you have NO HA config at all, there's just no need if you let each browser do the work for you. Distributed Computing!

to finish off the circle, i'd suggest putting the final script on an httpd instance on each squid box, and set their browsers (e.g via some AD gubbins with group policy, or wpad if you can get it working) to obtain the proxy.pac from the server. Having a simple centralized way to control how proxies are used by browsers it really useful in many other ways too, esp if you have internal web servers doing odd things too.

Last edited by acid_kewpie; 09-14-2008 at 07:21 AM.
 
Old 09-15-2008, 02:23 AM   #3
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Original Poster
Rep: Reputation: 33
Hi Kewpie!

Thanks for the suggestion. I have been playing with proxy.pac files, with some level of success, but there's one issue that drove me towards trying HA, which was the idea of having an HA-delivered virtual IP address, so that rather than targeting a real IP address (which could fail) the client goes to a VIP, which will work as long as there is at least one working Proxy.

The reason for this is that once a windows client starts using proxy under control of proxy.pac, it doesn't release from that proxy if the proxy "goes away", and you have to reload the browser as a minimum, to get browsing to work with the alternative. I have some seriously "non-computer-literate" users for whom this may be too taxing and result in reams of "my browser's bust!" calls to the Help Desk.....
 
Old 09-15-2008, 01:14 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I thought that if you specified multiple proxies it'd try the later ones if it stopped hearing from the first. not what you're experiencing? browser specific implementation of course...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Heartbeat(High Availability) mahabooba Linux - Networking 2 05-25-2010 01:23 PM
High Availability & Linux Virtual Servers....???? crosaire Slackware 1 01-10-2007 02:52 PM
High Availability on SLES9 gurl4sh25 Linux - Server 1 10-22-2006 04:55 PM
High availability itziar2 Linux - General 5 12-02-2005 07:40 AM
high availability squid without LVS--------- pal Linux - Networking 0 02-17-2005 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration