LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2010, 02:34 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
What is the best way to enable HA in Squid proxy?


I have setup proxy server as squid Now i would like to enable High Availability between two squid proxy servers acting as one.
 
Old 09-29-2010, 02:39 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Read about Heartbeat Cluster
 
Old 09-29-2010, 02:41 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Set up HeartBeat on both servers so that they communicate their state (alive, dead, ...). Set up and use a virtual IP for your Squid service to offer to your users. Only one server at a time 'owns' the virtual IP and offers the 'virtual service'. If that one server fails for whatever reason the resources get passed on to the other node and, if set up correctly, you'll get a message mentioning the change of state of the nodes.

Have a look at this site as a starting point.

Linux High Availability

Kind regards,

Eric

Last edited by EricTRA; 09-29-2010 at 02:41 AM. Reason: typo
 
1 members found this post helpful.
Old 09-29-2010, 04:05 AM   #4
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
I m using oracle distribution where in i get O2FS clustering inbuild .

Should i go for O2FS instead of heartbeat?
 
Old 09-29-2010, 04:11 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
How are you using these proxies? I would suggest looking at an intelligent browser side script assuming the predominant use is desktop web access. You don't actually need to do anything on the server side to make the configuration HA from the users perspective. If you write a decent proxy.pac file for the browsers to pull down you can do some sexy stuff like hashing the URI's that the browser wants, and using a modulus to convert any old string into a 0 or 1 (or more...), and use this logic to direct the browsers to the appropriate proxy.
 
1 members found this post helpful.
Old 09-29-2010, 05:47 AM   #6
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Does this mean the best way to enable HA is by using intelligence at browser end?
 
Old 09-29-2010, 05:50 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by pinga123 View Post
Does this mean the best way to enable HA is by using intelligence at browser end?
well best means a lot of things, there is not really a best here. But you can make the browsers do all the hard work, and have a proxy architecture that means every identical link will always hit the same machine, whilst they are all functional, so utilize the cache as well as possible.

http://www.pacfiles.com/images/SSP.htm
 
Old 05-09-2015, 02:00 AM   #8
AMaksimov
LQ Newbie
 
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by pinga123 View Post
I have setup proxy server as squid Now i would like to enable High Availability between two squid proxy servers acting as one.
Use UCARP package for Debian/Ubuntu

---------- Post added 05-09-15 at 09:01 AM ----------

Quote:
Originally Posted by AMaksimov View Post
Use UCARP package for Debian/Ubuntu
http://blog.it-kb.ru/2015/05/08/high...s-round-robin/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to recompile squid to enable -enable-storeio=coss ejinh Fedora 2 08-11-2010 05:15 AM
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 02:16 PM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 02:38 AM
How to enable squid proxy to accept webtraffic from two networks sakthi.s Linux - Server 6 04-05-2007 10:02 AM


All times are GMT -5. The time now is 11:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration