[squid-users] RE: Two squid servers to talk to each other before the internet

From: Tóth Tibor Péter <tibor.peter.toth_at_mtv.hu>
Date: Tue, 7 Sep 2010 08:37:35 +0200

Anybody? Any Idea regarding this problem?
How can I check if two Squid nodes are talking to each other?

Thanks,
Tibby

-----Original Message-----
From: Tóth Tibor Péter [mailto:tibor.peter.toth_at_mtv.hu]
Sent: Monday, August 30, 2010 8:43 AM
To: Bucci, David G; squid-users_at_squid-cache.org
Subject: [squid-users] RE: Two squid servers to talk to each other before the internet

The documentation on the wiki says:

"In case you want to be able to use direct connections when all the parents go down you should use a different approach:
cache_peer parentcache.foo.com parent 3128 0 no-query
prefer_direct off

The default behavior of Squid in the absence of positive ICP, HTCP, etc replies is to connect to the origin server instead of using parents. The prefer_direct off directive tells Squid to try parents first."


You've mentioned I should use
cache_peer other-server-name sibling 3128 3130

Two questions: I dont have to set up a parent first?
The other squid node should be a sibling, not a parent.

What about the Prefer_direct function?
It says works for the parents first.
What if I have siblings, and no parents?

Is there a way to check if squids are talking to each other?

Thanks,
Tibby

-----Original Message-----
From: Bucci, David G [mailto:david.g.bucci_at_lmco.com]
Sent: Friday, August 27, 2010 6:00 PM
To: Tóth Tibor Péter; squid-users_at_squid-cache.org
Subject: RE: Two squid servers to talk to each other before the internet

Absolutely ... you can examine the Wiki Features/CacheHierarchy information for the basics, http://wiki.squid-cache.org/Features/CacheHierarchy

For a very basic setup, you'll want in each squid instance's squid.conf:

     cache_peer other-server-name sibling 3128 3130

For more details, check out your Squid version's documentation on cache_peer, cacahe_peer_access, etc. -- http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid#Do_you_have_a_squid.conf_example.3F has links to configuration guides for your version.


-----Original Message-----
From: Tóth Tibor Péter [mailto:tibor.peter.toth_at_mtv.hu]
Sent: Friday, August 27, 2010 9:33 AM
To: squid-users_at_squid-cache.org
Subject: EXTERNAL: [squid-users] Two squid servers to talk to each other before the internet

I was wondering, if is there any way to get two squid servers to talk to each other before going out and cacheing data from the internet?

Here is what I would need to do:

             ┌────────┐
             │ INTERNET │
             └────────┘
                     │
    ┌───────────────────┐
    │ │
    │ │
┌────┐ ┌────┐
│SQUID01│<---- I NEED THIS ---->│SQUID02│
└────┘ └────┘
    │ │
    │ │
┌────┐ ┌────┐
│CLIENT1│ │CLIENT2│
└────┘ └────┘

I want SQUID01 and SQUID02 to "ask" each other if the other have the data, before going out to the web. I guess you call this exchanging data between squids? In case if one server go down, the other need to go directly to the internet, and not just standing and waiting for answer from a disabled machine.

Can this be done int he squid.conf file?

Thanks,
Tibby
Received on Tue Sep 07 2010 - 06:37:45 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 07 2010 - 12:00:01 MDT