Running same script on two servers for redundancy

Welcome Forums General PowerShell Q&A Running same script on two servers for redundancy

Viewing 1 reply thread
  • Author
    Posts
    • #239489
      Participant
      Topics: 13
      Replies: 40
      Points: 276
      Helping Hand
      Rank: Contributor

      Less a coding question, and I guess more of a methodology question.

      I Have a pretty lengthy (4-5 hours) script that absolutely must run nightly.

      To achieve this, I have two servers in different geographic locations that will run the script each night.

      My plan is to have each script write to an azure table when it starts, when it ends and when it has created csv files.

      Whichever script finishes first, can check that the second script has started.
      Whichever script finishes second can then check that both scripts ran, and that the csv files are the same (via MD5 hash or just file size).
      If either script didn’t run, or the files are not the same, an alert would be generated.

      Does this sound too convoluted? I like Azure Tables as an easy way to keep track of scripts, but I am curious if anyone has suggestions for improvements…

    • #239549
      Participant
      Topics: 8
      Replies: 565
      Points: 2,158
      Helping Hand
      Rank: Community Hero

      Lars,
      when you crosspost the same question at the same time to different forums you should at least post links to the other forums along with your question to avoid people willing to you help making their work twice or more.

      https://www.reddit.com/r/PowerShell/comments/hj7jm7/running_same_script_on_two_servers_for_redundancy/

      Thanks

      • This reply was modified 2 months, 3 weeks ago by Doug Maurer.
Viewing 1 reply thread
  • You must be logged in to reply to this topic.