URL Hash Persistence synced to standby HA node?
in System
Hi,
We recently implemented URL Hash Persistence on a rather large Varnish cache server farm on an AX3000 cluster running 2.4.3-p7. Everything looks fine, and the cache hit-ratio on the cache-servers increased significantly. But I wonder if the url hash persistence is synchronized to the standby node in the cluster? I cannot find any info about it anywhere in the cli, and the statistics in "Service->Application->Persistent->" shows all zeros in the gui on the standby node.
Anyone got some info on how this works? My worst fear would be a failover where all cache persistence is lost. This would probably kill the website for hours..
We recently implemented URL Hash Persistence on a rather large Varnish cache server farm on an AX3000 cluster running 2.4.3-p7. Everything looks fine, and the cache hit-ratio on the cache-servers increased significantly. But I wonder if the url hash persistence is synchronized to the standby node in the cluster? I cannot find any info about it anywhere in the cli, and the statistics in "Service->Application->Persistent->" shows all zeros in the gui on the standby node.
Anyone got some info on how this works? My worst fear would be a failover where all cache persistence is lost. This would probably kill the website for hours..
0
Comments
I think the hash value is same on both node, so it does not need to sync to standby node, do it?
-pius
And, if another real server is inserted, or if an existing real server fails, will this have an impact on the calculation on which real server to use for all incoming request?
Our setup is based on the theory that a real server will get the same hashed requests as long as it is available, no matter what happens to other real servers. If I am wrong about this, I am sitting on a ticking bomb..
In a situation where a cache server fails, will the other cache servers still get the same hashed-content, and only a portion of the failed cache server's data, or will the entire data-set now be spread differently between the available cache servers, resulting in horrible cache-hit ratio for all cache servers until they have rebuilt their data set based on the new algorithm?
(Again, I am sorry for being somewhat vague about my concerns. English is not my first language).
A portion of the failed cache server’s data will be distributed to other cache servers. When the original cache server comes back, those request will be forwarded back to the original cache server again to preserve the cache hit. I hope this answers your questions.
Genard
Thanks for the reply. And yes, you are absolutely correct. Even better: the remaining real servers also still get the same hashed content as they did before one of them failed. Which means an object will hit the same cache server as long as the server is available no matter what happens to the other servers. We did some tests last night...
Thank you all for your help!
Sven