Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jay 425 posts 652 karma points
    Mar 01, 2023 @ 09:45
    Jay
    0

    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

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Mar 01, 2023 @ 09:53
    Dave Woestenborghs
    100

    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

  • Jay 425 posts 652 karma points
    Mar 01, 2023 @ 11:16
    Jay
    0

    Oh thanks Dave, my saviour, will test it out today and let you know how it goes

  • Jay 425 posts 652 karma points
    Mar 01, 2023 @ 15:27
    Jay
    0

    Works like a charm, save me tonnes of time searching. Thanks again Dave

Please Sign in or register to post replies

Write your reply to:

Draft