From ed72d6d9daae7ac62d3e25fa440195e87cc32ab5 Mon Sep 17 00:00:00 2001 From: Matthew Hart <11179749+mattou07@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:23:44 +0000 Subject: [PATCH 1/2] Update azure-web-apps.md umbraco load balancing settings --- .../load-balancing/azure-web-apps.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md b/14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md index 861b73339b3..cc5ad4c2108 100644 --- a/14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md +++ b/14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md @@ -23,6 +23,17 @@ The single instance Backoffice Administrative Web App should be set to use [Sync The multi-instance Scalable Public Web App should be set to use [TempFileSystemDirectoryFactory](file-system-replication.md#examine-directory-factory-options). +```json +{ + "Umbraco": { + "CMS": { + "Examine": { + "LuceneDirectoryFactory" : "TempFileSystemDirectoryFactory" + } + } + } +} +``` ## Umbraco TEMP files When an instance of Umbraco starts up it generates some 'temporary' files on disk. In a normal IIS environment, these would be created within the folders of the Web Application. In an Azure Web App, we want these to be created in the local storage of the actual server that Azure happens to be used for the Web App. So we set this configuration setting to 'true' and the temporary files will be located in the environment temporary folder. This is required for both the performance of the website as well as to prevent file locks from occurring due to the nature of Azure Web Apps shared files system. @@ -63,6 +74,27 @@ By default **Umbraco v9.4 & 9.5** uses a system-wide semaphore locking mechanism Apply this setting to both the **SCHEDULINGPUBLISHER** Administrative server and the **SUBSCRIBER** scalable public-facing servers. +You can also copy the following JSON directly into your Azure Web App configuration via the Advanced Edit feature. +![image](https://github.com/umbraco/UmbracoDocs/assets/11179749/ae53a26b-c45a-4b71-932a-0682f3d264a8) + +```json +{ + "name": "UMBRACO__CMS__Global__MainDomLock", + "value": "FileSystemMainDomLock", + "slotSetting": false +}, +{ + "name": "UMBRACO__CMS__Hosting__LocalTempStorageLocation", + "value": "EnvironmentTemp", + "slotSetting": false +}, +{ + "name": "UMBRACO__CMS__Examine__LuceneDirectoryFactory", + "value": "TempFileSystemDirectoryFactory", + "slotSetting": false +} +``` + ## Steps to set-up an environment 1. Create an Azure SQL database From e329baee840791e7c20eb6328f60a07fb4c31123 Mon Sep 17 00:00:00 2001 From: sofietoft Date: Thu, 7 Nov 2024 11:09:00 +0100 Subject: [PATCH 2/2] Update azure-web-apps.md --- .../setup/server-setup/load-balancing/azure-web-apps.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md b/14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md index cc5ad4c2108..105203430f0 100644 --- a/14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md +++ b/14/umbraco-cms/fundamentals/setup/server-setup/load-balancing/azure-web-apps.md @@ -75,6 +75,7 @@ By default **Umbraco v9.4 & 9.5** uses a system-wide semaphore locking mechanism Apply this setting to both the **SCHEDULINGPUBLISHER** Administrative server and the **SUBSCRIBER** scalable public-facing servers. You can also copy the following JSON directly into your Azure Web App configuration via the Advanced Edit feature. + ![image](https://github.com/umbraco/UmbracoDocs/assets/11179749/ae53a26b-c45a-4b71-932a-0682f3d264a8) ```json @@ -95,7 +96,7 @@ You can also copy the following JSON directly into your Azure Web App configurat } ``` -## Steps to set-up an environment +## Steps to set up an environment 1. Create an Azure SQL database 2. Install Umbraco on your backoffice administrative environment and ensure to use your Azure SQL Database