LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-07-2010, 03:56 PM   #1
bentech4u
LQ Newbie
 
Registered: Feb 2009
Posts: 27

Rep: Reputation: 0
Squid load balancing


Hi

i want to make a squid load balancing

this is my squid.conf (a part)
Code:
cache_peer 127.0.0.1 parent 9090 0 no-query originserver name=server_1
acl sites_server_1 dstdomain www.benvin.com
cache_peer_access server_1 allow sites_server_1
cache_peer 127.0.0.1 parent 9090 0 no-query originserver round-robin


cache_peer 127.0.0.1 parent 8080 0 no-query originserver name=server_2
acl sites_server_2 dstdomain www.benvin.net
cache_peer_access server_2 allow sites_server_2
cache_peer 127.0.0.1 parent 8080 0 no-query originserver round-robin

in my pc i installed 2 web server's..is there any way to balance load to two websserver's on a single system..?

when i re-started my squid service,i got an error like this..


Code:
[root@server Documents]# service squid restart

Stopping squid:                                            [FAILED]
Starting squid:                                            [FAILED]
2010/10/07 23:14:56| Processing Configuration File: /etc/squid/squid.conf (depth 0)
FATAL: ERROR: cache_peer 127.0.0.1 specified twice

Squid Cache (Version 3.1.8): Terminated abnormally.
CPU Usage: 0.006 seconds = 0.003 user + 0.003 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0

please help me..i am a beginner

thanks
Ben
 
Old 10-07-2010, 11:31 PM   #2
bentech4u
LQ Newbie
 
Registered: Feb 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Please help me
 
  


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
Squid Cache with 2 Bandwidth [Load Balancing] ?؟ _root Linux - Server 1 04-05-2010 05:01 AM
[SOLVED] Squid Load Balancing isururj Linux - Networking 1 12-11-2009 07:28 AM
Load balancing through squid proxy server punit1985 Linux - Newbie 3 11-02-2008 01:51 AM
Squid Load Balancing drmouse1981 Linux - Server 1 04-14-2007 02:31 AM
squid with load balancing (?) no2nt Linux - Networking 1 09-12-2001 09:25 AM


All times are GMT -5. The time now is 12:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration