Copied to clipboard

Flag this post as spam?

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


  • Michael 125 posts 409 karma points
    Aug 17, 2016 @ 12:45
    Michael
    0

    Umbraco load balancing setup Azure VM

    Hi all,

    Flexible load balancing works ok for Azure Web Apps.

    But now I need to setup load balancing between two Virtual Machines with under single cloud service.

    I have 2 internal IPs for that machines. I set

    umbracoApplicationUrl="http://10.39.7.4/umbraco"

    What else I need to setup.

    I've added umbraco.config replication but Memory cache is not updated.

    log on first VM say: 2016-08-17 13:33:47,992 [P3968/D2/T37] INFO Umbraco.Core.Publishing.PublishingStrategy - Content 'CONTENT' with Id '11334' has been published.

    DistCache file on VM2 show id with correct id from umbracoCacheInstruction.

    Who can help me with this? How I can use flexible load balancing with VM?

    Thanks, Mike

  • Yakov Lebski 591 posts 2346 karma points
    Aug 20, 2016 @ 22:43
    Yakov Lebski
    0

    Hi, You don't need replicate umbraco.config. Umbraco (7.3.0 and higher take care about synchronizing )

    Please find more details in umbraco documentation

  • Michael 125 posts 409 karma points
    Aug 21, 2016 @ 11:04
    Michael
    0

    Hi Yakov,

    Can I setup flexible lb between two vm?

    I'm going to upgrade to latest 7.5.0

    What umbracoapplicationurl should be in umbracosettings?

    Thanks, Mike

  • Yakov Lebski 591 posts 2346 karma points
    Aug 21, 2016 @ 11:38
    Yakov Lebski
    0

    Yes you can do it for VM too, you need choose what server is master for content editing and how you solve media folder synchronization.

    umbracoApplicationUrl - Is only for backoffice, I think you don't need change it

  • Michael 125 posts 409 karma points
    Aug 21, 2016 @ 12:08
    Michael
    0

    I'm using azure blob storage plugin. How I can directly set master server? I thought that we can set this with umbracoapplucationurl

  • Yakov Lebski 591 posts 2346 karma points
    Aug 21, 2016 @ 12:34
    Yakov Lebski
    0

    Master is server that you manage content, I choose on of them, no special setting needed

  • Michael 125 posts 409 karma points
    Aug 21, 2016 @ 12:50
    Michael
    0

    But in my case if I have 2 vm with one cloud service for them through load balancer I should set lb umbraco requests only for first vm or set first as master manually.

  • Yakov Lebski 591 posts 2346 karma points
    Aug 21, 2016 @ 13:03
    Yakov Lebski
    0

    For example:

    VM1 - front 1 - www.xxx.com

    VM1 - master - master.xxx.com

    VM2 - front 2 - www.xxx.com

    3 sites connected to the same DB and same storage

  • Michael 125 posts 409 karma points
    Aug 21, 2016 @ 15:29
    Michael
    0

    With azure web sites flexible lb works out of box without config changes. Strange why this isn not working with azure vm. Tomorrow I try this https://our.umbraco.org/Documentation/Getting-Started/Setup/Server-Setup/Load-Balancing/flexible-advanced

  • Michael 125 posts 409 karma points
    Aug 26, 2016 @ 08:37
    Michael
    0

    Hi Yakov

    Seems flexible LB works ok for XML cache, but it is not update my memory cache.

    Server 1 log:

    2016-08-26 09:34:30,861 [P2784/D6/T5] INFO Umbraco.Core.Publishing.PublishingStrategy - Content 'global' with Id '11334' has been published. 2016-08-26 09:34:41,145 [P2784/D6/T19] INFO umbraco.content - Save Xml to file... 2016-08-26 09:34:41,410 [P2784/D6/T19] INFO umbraco.content - Saved Xml to file.

    Server 2 log:

    2016-08-26 09:34:18,363 [P6048/D7/T7] DEBUG Umbraco.Web.Scheduling.BackgroundTaskRunner - [Umbraco.Web.Scheduling.IBackgroundTask] Task added Umbraco.Web.Strategies.ServerRegistrationEventHandler+TouchServerTask 2016-08-26 09:34:57,899 [P6048/D7/T44] DEBUG Umbraco.Web.Scheduling.ScheduledTasks - Does not run on slave servers. 2016-08-26 09:34:57,899 [P6048/D7/T44] DEBUG Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledTasks] Task added Umbraco.Web.Scheduling.ScheduledTasks 2016-08-26 09:34:58,503 [P6048/D7/T52] DEBUG Umbraco.Web.Scheduling.ScheduledPublishing - Does not run on slave servers. 2016-08-26 09:34:58,503 [P6048/D7/T52] DEBUG Umbraco.Web.Scheduling.BackgroundTaskRunner - [ScheduledPublishing] Task added Umbraco.Web.Scheduling.ScheduledPublishing

    But umbraco.config contains latest changes

    Cheers, Mike

  • Yakov Lebski 591 posts 2346 karma points
    Aug 26, 2016 @ 10:14
    Yakov Lebski
    0

    I think that memory cache, session ant other not related to cms storages are not part of umbraco sync process, you need implement by you self.

  • Michael 125 posts 409 karma points
    Aug 26, 2016 @ 10:18
    Michael
    100

    But it works for azure app service. Both servers have valid cache.

  • Michael 125 posts 409 karma points
    Sep 06, 2016 @ 09:28
    Michael
    0

    Fixed with subscribing to pagecacherefresher event.

Please Sign in or register to post replies

Write your reply to:

Draft