473,738 Members | 8,848 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Load balancing window services

Hi,
We have a requirement where windows service application XX will be deployed
on two servers that is load balanced. The windows service polls the file
directory and performs some logic when the file is being copied to the UNC
path. The window service uses FileSystemWatch er to perform file operations.
How does it work when the window service on two servers is pointing to same
file location.

Are there any articles or can somebody please point me in the right direction.

Thanks
Anand
May 29 '07 #1
2 2019
Anand,

Are you talking about Active/Active or Active/Passive balancing? Are you
using Windows clustering?

You don't want it to run on two servers at the same time, on the same
directory. I would have it only run on one instance at a time (like
Active/Passive mode).

BTW, make sure the files are finished being written before performing any
operation. The easiest way to do this is to attempt to open the file using
write access:

Try
Using fs As New IO.FileStream(" <file name>", IO.FileMode.Ope n,
IO.FileAccess.W rite)
fs.Close()
End Using
Catch ex As Exception
' do something
End Try

Hope this helps,
Steve

"anand kumar" <an***@biztalks olutions.comwro te in message
news:27******** *************** ***********@mic rosoft.com...
Hi,
We have a requirement where windows service application XX will be
deployed
on two servers that is load balanced. The windows service polls the file
directory and performs some logic when the file is being copied to the UNC
path. The window service uses FileSystemWatch er to perform file
operations.
How does it work when the window service on two servers is pointing to
same
file location.

Are there any articles or can somebody please point me in the right
direction.

Thanks
Anand

Jun 4 '07 #2
Thanks for your reply. For scability purpose we need to run window service on
a multiple servers which is windows clustered. We will receive thousands of
files from our partner, which we cannot process on a single box. It looks
like there is no solution out there with window services clustered on a
multiple servers.

We will go with the windows scheduler instead of window service.

Thanks,
Anand
"PlatinumBa y" wrote:
Anand,

Are you talking about Active/Active or Active/Passive balancing? Are you
using Windows clustering?

You don't want it to run on two servers at the same time, on the same
directory. I would have it only run on one instance at a time (like
Active/Passive mode).

BTW, make sure the files are finished being written before performing any
operation. The easiest way to do this is to attempt to open the file using
write access:

Try
Using fs As New IO.FileStream(" <file name>", IO.FileMode.Ope n,
IO.FileAccess.W rite)
fs.Close()
End Using
Catch ex As Exception
' do something
End Try

Hope this helps,
Steve

"anand kumar" <an***@biztalks olutions.comwro te in message
news:27******** *************** ***********@mic rosoft.com...
Hi,
We have a requirement where windows service application XX will be
deployed
on two servers that is load balanced. The windows service polls the file
directory and performs some logic when the file is being copied to the UNC
path. The window service uses FileSystemWatch er to perform file
operations.
How does it work when the window service on two servers is pointing to
same
file location.

Are there any articles or can somebody please point me in the right
direction.

Thanks
Anand


Jun 4 '07 #3

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

Similar topics

2
4853
by: yagish | last post by:
Hi Techies, Am really new with the Oracle 9i Forms and am searching for a way to perform Load Balancing in Oracle 9i Forms Application. Its not a J2EE application, so cannot go the OC4J way. I need Load Balancing at 2 levels - 1) Load Balancing of the Forms Server 2) Load Balancing of the Database
3
5163
by: Shabam | last post by:
When a web application becomes overloaded with traffic, one can offload it by load balancing and clustering the front end web servers. What happens when the back-end MSSQL database becomes overloaded? Does MYSQL offer load balancing and clustering?
10
2651
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's happy. Now -- how do I take advantage of that second computer to "load-balance" the web site? Will it really give my users a noticable performance increase? How do you accomplish this? I've read many of those MS articles and it's...
6
4066
by: Andrew Robinson | last post by:
I am running two servers with a hardware network load balancing device. I know that to share session information between the two servers I need to implement some type of SQL based session information, but I would simply like to share the SessionID. Mainly for some logging applications. The SessionID does currently seem to be shared between the two servers and I haven't changed anything with my configuration or implemented anything...
0
1548
by: HK | last post by:
I'm wanting to get rid of a hardware load balancer and just use the Windows 2003 software load balancing with 2003 Server Web Edition. I'm wondering if anyone here uploads ASP.NET code to 2 or more servers that are load balanced by Windows Server Network Load Balancing (software load balancing on Windows 2003). If so, or if you're sure of the answer anyway for windows-based load balancing, here's the questions: Can you do just one...
2
2321
by: RahulBose | last post by:
I am trying to implement Load Balancing but facing some problems: A Web farm usually consists of 2 or more computers, orchestrated by some form of load balancing. Consider my scenario: 1. I have an Intranet site say www.intranet.com 2. I arrive at a load balancing machine 3. This machine redirectes me to the machine WebServer01 (contents from www.01.intranet.com are shown) 4. I request another page, for example
1
2108
dmjpro
by: dmjpro | last post by:
Plzzzz give me the load balancing factors on application server. If our application is not logged off successfully then the database connection for that user is still alive. u can imagine with in a day above 500 connections made on that database server.... The database server and application server same ------------- Only single server provides two services.... How much it matters for application load balancing........
1
2578
by: Morgan Cheng | last post by:
This question may look silly. We have a cluster of Frontend ASP.NET Web Service calls other cluster of other ASP.NET Web Services. There is a hardware F5 BigIP load balancer between these two clusters. The topology is like below. Frontend Server1 --\ /--Backend Server 1 \ / Frontend Server2 --------- Load Balancer ----------- Backend Server 2
1
2273
by: m.a | last post by:
Hello, I am looking for a hosting solution for my asp.net application. I found that some ISP stated that session states are not preserved in a load balancing system. As I know, if the asp.net is configured to save the session states in SQL server or file system, it would be preserved in load balancing systems. What is the whole story from the hosting point of view?
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9476
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9263
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.