Dispatcher flush is configure in all AEM publish instance multiple times | Community
Skip to main content
February 14, 2023
Solved

Dispatcher flush is configure in all AEM publish instance multiple times

  • February 14, 2023
  • 2 replies
  • 1661 views

I am trying to set up the dispatcher flush on publish agent from the AEM Author instance. I have multiple publish instances so for the same, have to define a dispatcher flush against all publish instances. 

 

Suppose, I am having 2 publish instances and accordingly I have set up 2 dispatchers for each publish instance. In the same way, need to set up the dispatcher flush agent to invalidate the cache for each dispatcher.

 

I have set up the dispatcher flush agent from the Author instance from the "Publish to Agent" from the replication section. After activating the flush agent, it shows 2 dispatchers flush agents on both publish instances. So when we publish the page then it sends 4 requests to invalidate the cache. But It should be 2 requests only. 

 

Can anyone suggest how can we resolve this scenario?

 

Thanks  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Saravanan_Dharmaraj

Can't you disable Dispatcher Flush Agent 2 in Publish Instance 1  and Dispatcher Flush Agent 1 in Publish Instance 2 directly? 

2 replies

Umesh_Thakur
Community Advisor
Community Advisor
February 14, 2023

Ideally if you have 4 publisher and 4 dispatcher then you should configure flush agent on each publisher to respective dispatcher. It should not be from author because it will create Race condition. this way it will be safer for cached content, whichever the publisher get replicated content, will trigger the flush agent for respective dispatcher.

If you have 4 publisher and 2 dispatcher, you can create flush agent from any of the two category publisher.

but I would say don't use from Author.

I am not sure why you are publishing FLush agent from author to publisher?

Hope this helps.

Umesh Thakur

February 14, 2023

Thanks Umesh

Actually, I have some restrictions to accessing the publish instance. that's why set up the dispatcher from the author instance. And Even in future, if we have any updation in the setting then I can update directly from the Author's "Publish to agent" and don't need to go publish instance.

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
February 14, 2023

Can't you disable Dispatcher Flush Agent 2 in Publish Instance 1  and Dispatcher Flush Agent 1 in Publish Instance 2 directly?