Copied to clipboard

Flag this post as spam?

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


  • John Botibol 7 posts 87 karma points
    Aug 31, 2016 @ 10:06
    John Botibol
    0

    Scheduled Tasks and Azure Load Balancer

    Hi I am using Umbraco behind an Azure Load Balancer. The backend comprises 2 VMs. The database is an Azure SQL Database with Geo-Replication.

    The site uses https and I am using MS URL Rewriter to ensure that visitors to the http url are redirected to the https url.

    All appears to work well. However I do have one issue and wondered if anyone has a solution.

    I use the Umbraco Scheduled Tasks feature to call a controller action to update exchange rates every 4 hours. The problem is of course that both websites do this but the actual update is performed on whichever server is receiving traffic from the Load Balancer.

    It does not seem to be causing a problem except for the exchange rate update happening a bit too frequently. I suppose that I could change the frequency to every 8 hours or perhaps only run the task on one of the servers but this does seems like a fudge and not a proper solution.

    Many thanks for any input.

    John

Please Sign in or register to post replies

Write your reply to:

Draft