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?
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.
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
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
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
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
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
I'm using azure blob storage plugin. How I can directly set master server? I thought that we can set this with umbracoapplucationurl
Master is server that you manage content, I choose on of them, no special setting needed
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.
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
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
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
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.
But it works for azure app service. Both servers have valid cache.
Fixed with subscribing to pagecacherefresher event.
is working on a reply...