Checking Load Balancing servers if it's SchedulingPublisher or a Subscriber
Hi all
Was wondering if there's a way we can check in the Database to make sure that a load balancing server is setup correctly to be either a SchedulingPublisher or a Subscriber?
Just making sure the settings are doing things correctly post setup
Checking Load Balancing servers if it's SchedulingPublisher or a Subscriber
Hi all
Was wondering if there's a way we can check in the Database to make sure that a load balancing server is setup correctly to be either a SchedulingPublisher or a Subscriber?
Just making sure the settings are doing things correctly post setup
Thanks
Hi Jay,
You can inject the IServerRoleAccsessor interface in to your code and get the CurrentServerRole from that.
You can see a example here : https://docs.umbraco.com/umbraco-cms/reference/scheduling#using-serverroleaccessor
Dave
Oh thanks Dave, my saviour, will test it out today and let you know how it goes
Works like a charm, save me tonnes of time searching. Thanks again Dave
is working on a reply...