Friday, September 3, 2021

Liferay check master node

Use below groovy script to find the master node.


import com.liferay.portal.kernel.cluster.*;

out.println("** Master: "+ ClusterMasterExecutorUtil.isMaster());


No comments:

Post a Comment