Disable distributed cache to keep the server in sync in flexible load balanced environment
Hi All,
We have been running flexible load balancing on Azure environment with umbraco version 7.3.8. Every now and then we got error related to Distributed cache in the logs and changes made in Admin doesn't get reflected to front-end servers. Error is something like below:
2017-04-18 04:42:19,714 [P6528/D7/T32] ERROR
Umbraco.Core.Sync.DatabaseServerMessenger - DISTRIBUTED CACHE IS NOT
UPDATED. Failed to execute instructions (8662:
"{"RefreshType":3,"RefresherId":"55698352-dfc5-4dbe-96bd-a4a0f6f77145","GuidId":"00000000-0000-0000-0000-000000000000","IntId":0,"JsonIds":"[101955]","JsonPayload":null},000000000000","IntId":0,"JsonIds":"[102046]","JsonPayload":null},{"RefreshType":3,"RefresherId":"27ab3022-3dfa-47b6-9119-5945bc88fd66","GuidId":"00000000-0000-0000-0000-000000000000","IntId":0,"JsonIds":"[102047]","JsonPayload":null},{"RefreshType":3,"RefresherId":"55698352-dfc5-4dbe-96bd-a4a0f6f77145","GuidId":"00000000-0000-0000-0000-000000000000","IntId":0,"JsonIds":"[102047]","JsonPayload":null},{"RefreshType":3,"RefresherId":"55698352-dfc5-4dbe-96bd-a4a0f6f77145","GuidId":"00000000-0000-0000-0000-000000000000","IntId":0,"JsonIds":"[102046]","JsonPayload":null},{"RefreshType":3,"RefresherId":"55698352-dfc5-4dbe-96bd-a4a0f6f77145","GuidId":"00000000-0000-0000-0000-000000000000","IntId":0,"JsonIds":"[102028]","JsonPayload":null},{"RefreshType":3,"RefresherId":"55698352-dfc5-4dbe-96bd-a4a0f6f77145","GuidId":"00000000-0000-0000-0000-000000000000","IntId":0,"JsonIds":"[102027]","JsonPayload":null},{"RefreshType":3,"RefresherId":"55698352-dfc5-4dbe-96bd-a4a0f6f77145","GuidId":"00000000-0000-0000-0000-000000000000","IntId":0,"JsonIds":"[101693]","JsonPayload":null}]").
Instruction is being skipped/ignored
System.Threading.ThreadAbortException: Thread was being aborted.
If we disable the XML cache from the website i.e. setting up as below
<!-- Enable / disable XML content cache -->
<XmlCacheEnabled>False</XmlCacheEnabled>
Do we still need to care about the distributed cache and will it make front-end servers updated without XML cache and dist cache? I know doing this will make the website slow as all content calls will be made to database.
Yes, its there at the moment. I want to disable the XML cache and doing that will I still need to care about dist cache?
To add more, I know there is issue with distributed cache with version(7.3.8) we are on and it is addressed in higher version(7.5.5+). I am looking for a way if its possible if I disable the XML cache, still I need to care about dist cache?
I doubt anyone will have attempted this and I don't personally recommend disabling the XML cache.
You can run Umbraco perfectly well in a load balanced configuration so as you already suggested if you have a specific issue that has been addressed in a upgrade I would recommend you upgrade to solve the issue.
If you disable the xml cache this means that the cache is not written to the umbraco.config file in the App_Data folder. But Umbraco still caches the content in memory. So you still need the distributed cache to update changes made on the admin one.
I have seen issues like this when there is Automatic master selection. Then the first server that comes online acts as master. And this is not always your editing server.
Many thanks for your quick reply. From your answer I gather XML cache and distributed cache both are different and there is no way to disable distributed cache so we get the content every time from the database?
@Jeavon, there is a long process for getting the upgrade done on the client environment so I was looking for a suggestion if its possible to have dist cache removed. We also have CDN in place for content delivery and caching.
Disable distributed cache to keep the server in sync in flexible load balanced environment
Hi All,
We have been running flexible load balancing on Azure environment with umbraco version 7.3.8. Every now and then we got error related to Distributed cache in the logs and changes made in Admin doesn't get reflected to front-end servers. Error is something like below:
If we disable the XML cache from the website i.e. setting up as below
Do we still need to care about the distributed cache and will it make front-end servers updated without XML cache and dist cache? I know doing this will make the website slow as all content calls will be made to database.
Thanks Sanjay
Have you added this to your web.config appsettings?
Hi Jeavon,
Yes, its there at the moment. I want to disable the XML cache and doing that will I still need to care about dist cache?
To add more, I know there is issue with distributed cache with version(7.3.8) we are on and it is addressed in higher version(7.5.5+). I am looking for a way if its possible if I disable the XML cache, still I need to care about dist cache?
Sanjay
Hi All,
Can anybody please answer my above question?
Sanjay
I doubt anyone will have attempted this and I don't personally recommend disabling the XML cache.
You can run Umbraco perfectly well in a load balanced configuration so as you already suggested if you have a specific issue that has been addressed in a upgrade I would recommend you upgrade to solve the issue.
Hi Sanjay,
If you disable the xml cache this means that the cache is not written to the umbraco.config file in the App_Data folder. But Umbraco still caches the content in memory. So you still need the distributed cache to update changes made on the admin one.
I have seen issues like this when there is Automatic master selection. Then the first server that comes online acts as master. And this is not always your editing server.
Read more about that here : https://our.umbraco.org/documentation/Getting-Started/Setup/Server-Setup/load-balancing/flexible#scheduling-and-master-election
Dave
Hi Dave and Jeavon,
Many thanks for your quick reply. From your answer I gather XML cache and distributed cache both are different and there is no way to disable distributed cache so we get the content every time from the database?
@Jeavon, there is a long process for getting the upgrade done on the client environment so I was looking for a suggestion if its possible to have dist cache removed. We also have CDN in place for content delivery and caching.
Thanks Sanjay
Hi All,
Any final words would be much appreciated on my last question above^.
Thanks
is working on a reply...