Cluster service shared resource in C#
I noticed, when setting up a generic service (my C# service) in a cluster configuration, it assigns a shared resource ($T
).
What's the best way to share configurations between both server nodes, while keeping the service applicable for non-cluster enviroments?
Currently the service uses an XML settings fil开发者_运维知识库e that is in the services local directory.
A favorable solution, would be that the service is aware of a cluster envoriment and then uses the shared resource. I'm not sure if this is achievable.
You should store the configuration in a resource that is handled by the cluster. You can store the config file on a disk partition that belongs to the same resource group as your service. I think that it is also possible to mark registry keys as clustered so that they are automatically replicated between the cluster nodes.
精彩评论