Foren

Liferay Cluster not working for Quartz

thumbnail
Subhasis Roy, geändert vor 7 Jahren.

Liferay Cluster not working for Quartz

Expert Beiträge: 275 Beitrittsdatum: 20.01.12 Neueste Beiträge
Hi All,

I am facing an issue in Liferay 6.2 cluster environment while working with quartz scheduler.

I have deployed the quartz scheduler in both the nodes.
Added the following entries for cluster environment in portal-ext.properties


cluster.link.enabled=true
cluster.link.autodetect.address=<dbserver:dbport>
</dbserver:dbport>


Scenario:
1. Run the first liferay instance(tomcat) and the its showing the scheduler entries in the console
2. Started the second instance - tomcat server (No entries in the console)
3. Stopped the first instance, and immediately the second tomcat console started showing the schedular entries

Till now its working fine. Next I performed the following step
4. Started again the first instance, but now schedular entries are coming on both the tomcat console

As per my understanding untill I stop the second instance the first instance should not take over and run the schedular in case of cluster environment.

Please suggest .
Also please correct me if my understanding is wrong about the schedulars in Cluster environment.