Could not persist PublisherOperations in the service : Error in publishing logs due to Sitecore Publishing Service
The Problem
Our production environment is monitored and maintained by a third-party vendor. They consistently provide us with updates on the performance of our CM/CD servers. Recently, we received the following notification from them -
We have observed spike in response time due to the slowness from External Service:cm-stagex-publis...rvice.testsite.com
Most of the calls triggered from the below transactions:
Sum of External service callers in seconds (13.9 k)
PublishingJob/All
5.93 k
42.57%
PublishingMaintenance/IsRunning
4.6 k
33.02%
PublishingJob/ItemPublish
1.7 k
12.2%
PublishingJob/Status
Is there any publishing activity triggered from your end ?
This basically meant that our CM server is currently facing slowness as it has to wait for a long time to process responses from the publishing service, causing delays.
The Analysis
We started looking into the root cause of this behavior. We looked into CM logs and found that the publishing logs were full of entries like -
2364 04:04:22 WARN Could not persist PublisherOperations in the service
Exception: Polly.CircuitBreaker.BrokenCircuitException
Message: The circuit is now open and is not allowing calls.
The occurrence of this event coincided with the period when our publishing service encountered difficulties. Let us briefly discuss the issue with our publishing service. We have a scheduled application pool recycle for our publishing service. Occasionally, there are instances where the publishing service fails to start after the application pool recycle. As a result, the publishing service becomes inactive. Typically, a developer needs to restart the publishing service to make it active again. We are currently working on finding a suitable solution to address this problem.
Consequently, the slowness experienced on CM was a result of the delays it had to endure while waiting for the publishing service to respond in a timely manner.
If you encounter a similar error in your logs, there is a high likelihood that you are facing the same issue as us. We hope this information proves helpful to you!
Comments
Post a Comment