Auto Re-starting Solr when Indexes get locked in an Azure App Service
I’ve written about a solution for the issue with Solr cores getting locked when using an Azure App Service before but we still had intermittent issues even with this solution provided by Sitecore support. TLDR – follow these steps to add the script to re-start Solr if there are issues. Why does this happen? Talking to others it seems the App Service storage is shared, therefore If only one Service is running all is fine. But disk locks can occur when Azure tries to run more Solr instances, e.g. when: scaling, overlapped recycle, internal azure load balancing, fail over etc. Ok how do I fix it? On a previous project I started looking at an solution (based on an answer on SSE from BikerP [Pete Newal] a while back) to check the service status periodically and restart Solr automatically when it errors like this, but never completed it due to other … Continue reading Auto Re-starting Solr when Indexes get locked in an Azure App Service