I have a java application which has been scheduled to run once every night at a set time. The application sends e-mails if a condition is met. All the scheduling code is in Java and I am not using any of Amazon's features to schedule it. This application has been deployed on an EC2 instance and it sits behind an elastic load balancer. Based on the load, additional nodes could be added. My java application gets replicated to other nodes as well and the nightly job executes on all instances.
Is there a way by which I can make a single node execute this job?
Thanks.