Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sanjay Sen 33 posts 97 karma points
    May 30, 2017 @ 11:42
    Sanjay Sen
    0

    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.

    Thanks Sanjay

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    May 30, 2017 @ 11:45
    Jeavon Leopold
    0

    Have you added this to your web.config appsettings?

    <add key="umbracoContentXMLUseLocalTemp" value="true" />
    
  • Sanjay Sen 33 posts 97 karma points
    May 30, 2017 @ 11:49
    Sanjay Sen
    0

    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

  • Sanjay Sen 33 posts 97 karma points
    Jun 01, 2017 @ 10:18
    Sanjay Sen
    0

    Hi All,

    Can anybody please answer my above question?

    Sanjay

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jun 01, 2017 @ 10:34
    Jeavon Leopold
    0

    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.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jun 01, 2017 @ 10:31
    Dave Woestenborghs
    0

    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

  • Sanjay Sen 33 posts 97 karma points
    Jun 01, 2017 @ 10:38
    Sanjay Sen
    0

    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

  • Sanjay Sen 33 posts 97 karma points
    Jun 05, 2017 @ 09:21
    Sanjay Sen
    0

    Hi All,

    Any final words would be much appreciated on my last question above^.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft