473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Scheduling Job in a Web Farm

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

Jul 14 '06 #1
2 2139
Hi,

Not clear how this is related to C# , reading your post it seems is more
related to win admin than to C# programming language.

You better post this in a Win Server NG
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"pranshu" <pr*********@gmail.comwrote in message
news:11**********************@35g2000cwc.googlegro ups.com...
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

Jul 14 '06 #2
Hi Ignacio,
The relation to C# is - that I am evaluating how to develop this job:
As a service
As a console exe
As a .NET remoting/ web service component which can be triggered by DTS

I am sure many people in this thread would have written batch jobs and
would have opinions on the way to go.
Personally, I have created such jobs as console applications in the
past and have left it for the administrator to figure out how to run
it. However while talking to collegues working on Java, they indicated
that they make such classes run within Quartz or Flux - which are
clustered schedulers in Java with ability to invoke Java classes.

I coulnot find anything equivalent - which could trigger .NET classes.

Pranshu

Jul 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tony Proctor | last post by:
Hi everyone We're experiencing some serious anomalies with the scheduling of ASP threads. I'd be interested to hear if anyone knows what algorithm is used (e.g. simple round-robin, or something...
3
by: Chris Curvey | last post by:
Has anyone seen a simple open source job-scheduling framework written in Python? I don't really want to reinvent the wheel. All I need is the ability to set up a series of atomic "jobs" as a...
3
by: Steve | last post by:
Hi What is difference between web farm and web garden? What i understand so far Web Farm Multi Server Environment Support Session share Application object not supported Caching not...
3
by: Alphonse Giambrone | last post by:
Can anyone point me toward a good example of an asp.net scheduling app? Preferrably in vb.net. TIA -- Alphonse Giambrone Email: a-giam at customdatasolutions dot us
0
by: LearninGuru | last post by:
Hi Folks, I am creating a web service that will be hosted on a web farm. The web service also uses sessions to store user specific data. I have the following doubts about session timeout in a...
5
by: Dominic | last post by:
My question is about how to maintain view state in mobile ASP.NET across postback / request in a web farm environment. First of all, let's assume the web-farm does NOT use stick-session feature....
4
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a...
2
Ritchie
by: Ritchie | last post by:
Please can anyone help me with d programs in C for CPU scheduling: WAP to show FCFS scheduling algorithm. WAP to show SJF scheduling algorithm. WAP to show Priority scheduling algorithm. WAP...
3
by: latif87 | last post by:
An example of how the XML file is structured: <xml> <farm name="NAME1"> <size x="INTEGER1" y="INTEGER2" /> <neighbor name="NAME2" /> <crop name="PLANT" area="INTEGER3" /> <crop … /> … </farm>...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.