I have 3 nodes in a web server cluster. Each node is running Squid on the LAN interface and Apache on the localhost interface. Squid caches properly for each server individually, but I don't believe I setup cache peers correctly.
cache_peer 127.0.0.1 parent 80 0 no-query originserver name=Server1 cache_peer Server2 sibling 80 3130 proxy-only cache_peer Server3 sibling 80 3130 proxy-only cache_peer_access Server1 allow MYDOMAIN
Each server has similar cache_peer settings except each is its own parent and uses the other two servers as siblings. My goal is to improve hit rate as much as possible, but I don't know if I'm understanding the cache peer logic correctly.
I want Squid to try to find http://www.example.com/mypage/ in it's local cache, and if it's not query the siblings until it finds it. If it can't find it, THEN it should hit Apache.
Am I doing this right?