1 Reply Latest reply on Oct 22, 2010 4:04 AM by Francesco Marchioni

    How to schedule a cron job on only one server node in a load balanced scenario?

    code Nombre Newbie

      Hi All,

       

      I have a nightly batch process runing with Spring/Quartz. In the production, it needs to run on only one node. The approach we followed is controlled by a build script which invokes modified maven script during build time for the first server where it needs to push the code and rest gets a different version i.e. with the property set to false (or the profile which is meant for the batch process not included as part of their build). This is a good working solution. However, I wanted to know how do you guys approach it and is there a way to it where we can dynamically reassign the batch job to run on different node incase of failure.

       

      It would really help me if you can give your valuable inputs.

       

      Thanks,