Hello,
I have a farm of .NET servers. The application also needs scheduled
jobs - like sending reports / notifications periodically.
The question is - what is the best way to schedule this job?
I want the same set of software to run on all machines - so that if in
case one machine goes down, the other is able to run the scheduled job.
The options I am considering:
1) making them SQL Server jobs ( which are failed over in a cluster),
but these jobs need resources available on the .NET servers, and I
donot think that opening a backward connectivity from DB to App would
be the best way.
2) To have some kind of a lock in the database, and schedule the job on
all the machines in windows scheduler. The one which wakes up first,
gets the lock and executes the job. The others just exit.
3) Same as 2, but windows service instead of scheduled job. In this
case - I am unable to find a good way of allowing users to schedule the
job. Is there a library which can read a unix style cron job setting
and run the programs accordingly?
Is there a better way of doing this ? Are there any clustered scheduler
available for windows?
Regards
Pranshu