Expand my Community achievements bar.

How to confirm that a bundle is running on a primary or a cold standby instance?

Avatar

Level 2

Hi,

I am is now working on upgrading CQ5 to AEM 6.2.

In CQ5 we implement ClusterAware in our bundles to check if the bundle is running on a master or a slaver to prevent unnecessary running, but in AEM 6.2 ClusterAware was deleted. 

We will run TarMK with cold standby, is there all of bundles are also running on  the cold standby instance, and how can we to check whether the bundle is running on a primary instance or not?

 

Thank you and best regards.

1 Reply

Avatar

Level 2

I found a link, use TopologyEventListener  seems to solve this problem, but I don't confirm it still. 

https://github.com/Adobe-Consulting-Services/acs-aem-samples/blob/master/bundle/src/main/java/com/ad...