Load balancing window services

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?YW5hbmQga3VtYXI=?=

    #1

    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
  • PlatinumBay

    #2
    Re: Load balancing window services

    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" <anand@biztalks olutions.comwro te in message
    news:279369AF-F766-4A58-9FBA-87D4F0F06679@mi crosoft.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

    Comment

    • =?Utf-8?B?YW5hbmQga3VtYXI=?=

      #3
      Re: Load balancing window services

      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" <anand@biztalks olutions.comwro te in message
      news:279369AF-F766-4A58-9FBA-87D4F0F06679@mi crosoft.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
      >
      >
      >

      Comment

      Working...