Please or Register to create posts and topics.

JasperReports Server: Scheduler Job Executed Twice in Load-Balanced Multi-Instance Setup

I am running JasperReports Server in a high-availability setup with two identical instances behind a load balancer. The load balancer distributes incoming user requests dynamically to the instance with the lower load.

On both instances, I have configured the same scheduler job, which runs a report at a defined time and sends an email notification. The intention behind this setup was to ensure redundancy and fault tolerance.

However, the issue is that the scheduler job is executed independently on both instances. As a result, I receive duplicate emails for each scheduled execution—one from each instance.

My question is:
How can I ensure that a scheduled job is executed only once in a multi-instance JasperReports Server environment? Are there recommended best practices for this scenario (e.g., centralized scheduling or proper clustering configuration)?

Thank you in advance.