VB.net中的群集感知Windows服务 [英] Cluster Aware windows Service in VB.net

查看:67
本文介绍了VB.net中的群集感知Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Sql Server 2008 R2,故障转移群集,该群集运行与共享磁盘通信的主动和被动节点.

I have a Sql Server 2008 R2 Failover cluster running an active and passive node talking to a shared disk.

我开发了一个vb.net Windows服务,该服务需要在群集条件下的每个节点上运行.

I have developed a vb.net windows service which needs to run on each node under clustering conditions.

我需要了解我需要对服务做些什么才能使其了解群集.

I need to understand what I need to do to the service to make it cluster aware.

服务中有一些繁重的类,它们在故障转移条件下需要根据它们中的数据来了解它们的位置,以便在被动节点启动并且服务启动时,它会在节点2上拾取在节点上停止 1.

There are a few heavy classes in the service which under failover conditions need to understand where they are in terms of what data is in them so that when the passive node kicks in and the service starts it picks up on node 2 where it left off on node 1.

我几乎可以在网上找到有关此主题的文档,而且随着公司对故障转移感到高兴,这需要进行更改.

There is near little documentation on this subject I can find on the net and with companies becoming failover happy this needs to change.

复原力是我业务的重中之重,因此,对此表示感谢.

Resilience is a high priority in my business so would really appreciate some feedback on this.

我是否可以使用一组API通过心跳来帮助检测/保存状态等?

Is there a set of API's i can utilise to help sense / save state etc through the heartbeat?

任何帮助都非常感激.....

Any help greatly appreciated.....

安德鲁·巴洛

推荐答案

Andrew这是一个开发人员论坛,其数据库部分在任意集群中的某个地方运行(我认为这是为什么群集).

Andrew this is a developers forum for which the database part runs somewhere in an whatever cluster (what is in my idea the reason for clustering).

在我的想法中,您需要知道什么集群.但是,我不再是这个问题的专家,但对我来说,这听起来就像是我想确切知道我的应用程序在Azure上运行时所在的云一样.

You need in my idea to know what cluster. However, I'm not anymore an expert in this question, but for me it sounds the same as I want to know exact the cloud my application is when it is running with Azure. 

对此有更多了解的人的论坛是

The forums for those who know much more from this are 

http://technet.microsoft.com/forums

如果他们有VBS解决方案(其中大多数是程序语言)或Shell,并且您不知道如何在VB中使用它,请在此处显示该解决方案.

If they have there a VBS solution (the program languages of most of them) or shell, and you don't know how to use it in VB, then show that solution here. 

对于我们大多数人来说,可能很容易将其更改为VB for Net.

Probably for most of us easy to change to VB for Net.


这篇关于VB.net中的群集感知Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆