Time for action – adding a cache peer
Let's add a proxy server (parent.example.com
) that will act as a parent proxy to our proxy server:
cache_peer parent.example.com parent 3128 3130 default proxy-only
3130
is the standard ICP port. If the other proxy server is not using the standard ICP port, we should change the code accordingly. This code will direct Squid to use parent.example.com
as a proxy server to satisfy client requests in case it's not able to do so itself.
The option default
specifies that this cache peer should be used as a last resort in the scenario where other peers can't be contacted. The option proxy-only
specifies that the content fetched using this peer should not be cached locally. This is helpful when we don't want to replicate cached web documents, especially when the two peers are connected with a high bandwidth backbone.
What just happened?
We added parent.example.com
as a cache peer or parent proxy to our Squid proxy server. We also used the option proxy-only
, which...