Copied to clipboard

Flag this post as spam?

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


  • Anton Oosthuizen 206 posts 486 karma points
    May 05, 2021 @ 09:37
    Anton Oosthuizen
    0

    Azure Load Balanced Environment extreamly slow

    Azure Load Balanced Environment with azure blob service extremely slow. This only happens when the app spins up and the first click on every page takes forever to load.

    So it seems like it is loading the page into cache on the first visit, not when the app loads.

    My App config for both backoffice and frontend

    Frontdend

    aspnet:PortableCompilationOutput = true
    aspnet:PortableCompilationOutputSnapshotType = Microsoft.Web.Compilation.Snapshots.SnapshotHelper, Microsoft.Web.Compilation.Snapshots, Version=1.0.0.0, Culture=neutral, PublicKeyToken=###############
    aspnet:DisableFcnDaclRead = true
    SCM_GIT_USERNAME = windowsazure
    SCM_GIT_EMAIL = windowsazure
    webpages:Version = 3.0.0.0
    webpages:Enabled = true
    webactivator:assembliesToScan = Kudu.Services.Web
    AzureBlobFileSystem.RootUrl:forms = https://#################.blob.core.windows.net/
    Umbraco.ModelsBuilder.ModelsMode = LiveDll
    AzureBlobFileSystem.ConnectionString:media = DefaultEndpointsProtocol=https;AccountName=#############;AccountKey=##+#/##/###==
    WEBSITE_SITE_NAME = #######-production-frontend
    CacheConnection = ########-production.redis.cache.windows.net:6380,password=######++####=,ssl=True,abortConnect=False
    PublishedSnapshotServiceOptions.IgnoreLocalDb =     
    AzureBlobFileSystem.UsePrivateContainer:forms = false
    WEBSITE_AUTH_AUTO_AAD = False
    AzureBlobFileSystem.MaxDays:media = 365
    MSBUILD_PATH = %ProgramFiles(x86)%\MSBuild-15.9.21.664\MSBuild\MSBuild\15.0\Bin\MSBuild.exe
    Umbraco.Core.LocalTempStorage = EnvironmentTemp
    WEBSITE_AUTH_ENABLED = False
    AzureBlobFileSystem.UseDefaultRoute:media = true
    ScmType = ExternalGit
    RecaptchaV3SiteKey = ###################-Hs
    azureAd:tenantId = ##############################
    AzureBlobFileSystem.MaxDays:forms = 365
    AzureBlobFileSystem.UsePrivateContainer:media = false
    FUNCTIONS_RUNTIME_SCALE_MONITORING_ENABLED = 0
    Umbraco.Examine.LuceneDirectoryFactory = Examine.LuceneEngine.Directories.TempEnvDirectoryFactory, Examine
    WEBSITE_AUTH_LOGOUT_PATH = /.auth/logout
    ApplicationInsightsAgent_EXTENSION_VERSION = ~2
    AzureBlobFileSystem.ConnectionString:forms = DefaultEndpointsProtocol=https;AccountName=###################;AccountKey=################3+################/###########/#############==
    AzureBlobFileSystem.RootUrl:media = https://########################.blob.core.windows.net/
    owin:appStartup = UmbracoStandardOwinStartup
    AzureBlobFileSystem.ContainerName:media = media
    AzureBlobFileSystem.ContainerName:forms = forms-data
    RecaptchaPublicKey = ###############################-Hs
    Umbraco.Core.MainDom.Lock = SqlMainDomLock
    XDT_MicrosoftApplicationInsights_Mode = default
    APPINSIGHTS_INSTRUMENTATIONKEY = ###-069b-482c-9f05-##########
    REMOTEDEBUGGINGVERSION = 16.0.30709.132
    

    Backoffice

    aspnet:PortableCompilationOutput = true
    aspnet:PortableCompilationOutputSnapshotType = Microsoft.Web.Compilation.Snapshots.SnapshotHelper, Microsoft.Web.Compilation.Snapshots, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    aspnet:DisableFcnDaclRead = true
    SCM_GIT_USERNAME = windowsazure
    SCM_GIT_EMAIL = windowsazure
    webpages:Version = 3.0.0.0
    webpages:Enabled = true
    webactivator:assembliesToScan = Kudu.Services.Web
    AzureBlobFileSystem.RootUrl:forms = https://#########################.blob.core.windows.net/
    azureAd:redirectUrl = https://###########################.azurewebsites.net/umbraco/
    Umbraco.ModelsBuilder.ModelsMode = Dll
    AzureBlobFileSystem.ConnectionString:media = DefaultEndpointsProtocol=https;AccountName=########################;AccountKey=################+##########/##############/###########==
    WEBSITE_SITE_NAME = ##############-production-backoffice
    MSBUILD_PATH = %ProgramFiles(x86)%\MSBuild-15.9.21.664\MSBuild\MSBuild\15.0\Bin\MSBuild.exe
    CacheConnection = #############-production.redis.cache.windows.net:6380,password=########++###############=,ssl=True,abortConnect=False
    AzureBlobFileSystem.UsePrivateContainer:forms = false
    WEBSITE_AUTH_AUTO_AAD = False
    AzureBlobFileSystem.MaxDays:media = 365
    AzureBlobFileSystem.ConnectionString:forms = DefaultEndpointsProtocol=https;AccountName=######################;AccountKey=###########+##############/###############/###############33==
    Umbraco.Core.LocalTempStorage = EnvironmentTemp
    WEBSITE_AUTH_ENABLED = False
    AzureBlobFileSystem.UseDefaultRoute:media = true
    ScmType = ExternalGit
    RecaptchaV3SiteKey = #######################-Hs
    azureAd:tenantId =##################################
    AzureBlobFileSystem.MaxDays:forms = 365
    AzureBlobFileSystem.UsePrivateContainer:media = false
    azureAd:clientId = ###################################
    FUNCTIONS_RUNTIME_SCALE_MONITORING_ENABLED = 0
    Umbraco.Examine.LuceneDirectoryFactory = Examine.LuceneEngine.Directories.SyncTempEnvDirectoryFactory, Examine
    WEBSITE_AUTH_LOGOUT_PATH = /.auth/logout
    ApplicationInsightsAgent_EXTENSION_VERSION = ~2
    AzureBlobFileSystem.RootUrl:media = https://######################.blob.core.windows.net/
    owin:appStartup = UmbracoStandardOwinStartup
    AzureBlobFileSystem.ContainerName:media = media
    AzureBlobFileSystem.ContainerName:forms = forms-data
    RecaptchaPublicKey = ###########################-Hs
    Umbraco.Core.MainDom.Lock = SqlMainDomLock
    XDT_MicrosoftApplicationInsights_Mode = default
    APPINSIGHTS_INSTRUMENTATIONKEY = #####################
    REMOTEDEBUGGINGVERSION = 16.0.30709.132
    

    My packages

    <package id="AngleSharp" version="0.14.0" targetFramework="net48" />
      <package id="AngleSharp.Css" version="0.14.2" targetFramework="net48" />
      <package id="ClientDependency" version="1.9.9" targetFramework="net48" />
      <package id="ClientDependency-Mvc5" version="1.9.3" targetFramework="net48" />
      <package id="CSharpTest.Net.Collections" version="14.906.1403.1082" targetFramework="net48" />
      <package id="EPPlus" version="4.5.3.2" targetFramework="net48" />
      <package id="Examine" version="1.1.0" targetFramework="net48" />
      <package id="Examine.AzureDirectory" version="0.1.90" targetFramework="net48" />
      <package id="HtmlAgilityPack" version="1.8.14" targetFramework="net48" />
      <package id="HtmlSanitizer" version="5.0.376" targetFramework="net48" />
      <package id="ImageProcessor" version="2.7.0.100" targetFramework="net48" />
      <package id="ImageProcessor.Web" version="4.10.0.100" targetFramework="net48" />
      <package id="ImageProcessor.Web.Config" version="2.5.0.100" targetFramework="net48" />
      <package id="LightInject" version="5.4.0" targetFramework="net48" />
      <package id="LightInject.Annotation" version="1.1.0" targetFramework="net48" />
      <package id="LightInject.Mvc" version="2.0.0" targetFramework="net48" />
      <package id="LightInject.Web" version="2.0.0" targetFramework="net48" />
      <package id="LightInject.WebApi" version="2.0.0" targetFramework="net48" />
      <package id="Lucene.Net" version="3.0.3" targetFramework="net48" />
      <package id="Markdown" version="2.2.1" targetFramework="net48" />
      <package id="Microsoft.AspNet.Cors" version="5.2.7" targetFramework="net48" />
      <package id="Microsoft.AspNet.Identity.Core" version="2.2.2" targetFramework="net48" />
      <package id="Microsoft.AspNet.Identity.Owin" version="2.2.2" targetFramework="net48" />
      <package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net48" />
      <package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net48" />
      <package id="Microsoft.AspNet.SignalR.Core" version="2.4.0" targetFramework="net48" />
      <package id="Microsoft.AspNet.WebApi" version="5.2.7" targetFramework="net48" />
      <package id="Microsoft.AspNet.WebApi.Client" version="5.2.7" targetFramework="net48" />
      <package id="Microsoft.AspNet.WebApi.Core" version="5.2.7" targetFramework="net48" />
      <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.7" targetFramework="net48" />
      <package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net48" />
      <package id="Microsoft.Azure.ConfigurationManager" version="4.0.0" targetFramework="net48" />
      <package id="Microsoft.Azure.KeyVault.Core" version="3.0.3" targetFramework="net48" />
      <package id="Microsoft.Azure.Storage.Blob" version="11.1.2" targetFramework="net48" />
      <package id="Microsoft.Azure.Storage.Common" version="11.1.2" targetFramework="net48" />
      <package id="Microsoft.CodeAnalysis.Analyzers" version="2.6.1" targetFramework="net48" developmentDependency="true" />
      <package id="Microsoft.CodeAnalysis.Common" version="2.10.0" targetFramework="net48" />
      <package id="Microsoft.CodeAnalysis.CSharp" version="2.10.0" targetFramework="net48" />
      <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net48" />
      <package id="Microsoft.Data.Edm" version="5.8.4" targetFramework="net48" />
      <package id="Microsoft.Data.OData" version="5.8.4" targetFramework="net48" />
      <package id="Microsoft.Data.Services.Client" version="5.8.4" targetFramework="net48" />
      <package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="2.0.0" targetFramework="net48" />
      <package id="Microsoft.IdentityModel.JsonWebTokens" version="5.5.0" targetFramework="net48" />
      <package id="Microsoft.IdentityModel.Logging" version="5.5.0" targetFramework="net48" />
      <package id="Microsoft.IdentityModel.Protocol.Extensions" version="1.0.4.403061554" targetFramework="net48" />
      <package id="Microsoft.IdentityModel.Protocols" version="5.3.0" targetFramework="net48" />
      <package id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="5.3.0" targetFramework="net48" />
      <package id="Microsoft.IdentityModel.Tokens" version="5.5.0" targetFramework="net48" />
      <package id="Microsoft.IO.RecyclableMemoryStream" version="1.2.2" targetFramework="net48" />
      <package id="Microsoft.Owin" version="4.0.1" targetFramework="net48" />
      <package id="Microsoft.Owin.Host.SystemWeb" version="4.0.1" targetFramework="net48" />
      <package id="Microsoft.Owin.Security" version="4.0.1" targetFramework="net48" />
      <package id="Microsoft.Owin.Security.Cookies" version="4.0.1" targetFramework="net48" />
      <package id="Microsoft.Owin.Security.OAuth" version="4.0.1" targetFramework="net48" />
      <package id="Microsoft.Owin.Security.OpenIdConnect" version="4.0.1" targetFramework="net48" />
      <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net48" />
      <package id="MiniProfiler" version="4.0.138" targetFramework="net48" />
      <package id="MiniProfiler.Shared" version="4.0.138" targetFramework="net48" />
      <package id="Newtonsoft.Json" version="12.0.1" targetFramework="net48" />
      <package id="NPoco" version="3.9.4" targetFramework="net48" />
      <package id="Owin" version="1.0" targetFramework="net48" />
      <package id="Semver" version="2.0.4" targetFramework="net48" />
      <package id="Serilog" version="2.8.0" targetFramework="net48" />
      <package id="Serilog.Enrichers.Process" version="2.0.1" targetFramework="net48" />
      <package id="Serilog.Enrichers.Thread" version="3.0.0" targetFramework="net48" />
      <package id="Serilog.Filters.Expressions" version="2.0.0" targetFramework="net48" />
      <package id="Serilog.Formatting.Compact" version="1.0.0" targetFramework="net48" />
      <package id="Serilog.Formatting.Compact.Reader" version="1.0.3" targetFramework="net48" />
      <package id="Serilog.Settings.AppSettings" version="2.2.2" targetFramework="net48" />
      <package id="Serilog.Sinks.Async" version="1.3.0" targetFramework="net48" />
      <package id="Serilog.Sinks.File" version="4.0.0" targetFramework="net48" />
      <package id="Serilog.Sinks.Map" version="1.0.0" targetFramework="net48" />
      <package id="SharpZipLib" version="0.86.0" targetFramework="net48" />
      <package id="Skybrud.Essentials" version="1.1.20" targetFramework="net48" />
      <package id="Skybrud.Umbraco.Redirects" version="2.0.4" targetFramework="net48" />
      <package id="Skybrud.WebApi.Json" version="1.0.4" targetFramework="net48" />
      <package id="Superpower" version="2.0.0" targetFramework="net48" />
      <package id="System.AppContext" version="4.3.0" targetFramework="net48" />
      <package id="System.Collections" version="4.3.0" targetFramework="net48" />
      <package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net48" />
      <package id="System.Collections.Immutable" version="1.5.0" targetFramework="net48" />
      <package id="System.Console" version="4.3.0" targetFramework="net48" />
      <package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net48" />
      <package id="System.Diagnostics.DiagnosticSource" version="4.4.1" targetFramework="net48" />
      <package id="System.Diagnostics.FileVersionInfo" version="4.3.0" targetFramework="net48" />
      <package id="System.Diagnostics.StackTrace" version="4.3.0" targetFramework="net48" />
      <package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="net48" />
      <package id="System.Dynamic.Runtime" version="4.3.0" targetFramework="net48" />
      <package id="System.Globalization" version="4.3.0" targetFramework="net48" />
      <package id="System.IdentityModel.Tokens.Jwt" version="5.5.0" targetFramework="net48" />
      <package id="System.IO" version="4.3.0" targetFramework="net48" />
      <package id="System.IO.Compression" version="4.3.0" targetFramework="net48" />
      <package id="System.IO.FileSystem" version="4.3.0" targetFramework="net48" />
      <package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="net48" />
      <package id="System.Linq" version="4.3.0" targetFramework="net48" />
      <package id="System.Linq.Expressions" version="4.3.0" targetFramework="net48" />
      <package id="System.Reflection" version="4.3.0" targetFramework="net48" />
      <package id="System.Reflection.Metadata" version="1.6.0" targetFramework="net48" />
      <package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="net48" />
      <package id="System.Runtime" version="4.3.0" targetFramework="net48" />
      <package id="System.Runtime.CompilerServices.Unsafe" version="4.5.0" targetFramework="net48" />
      <package id="System.Runtime.Extensions" version="4.3.0" targetFramework="net48" />
      <package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="net48" />
      <package id="System.Runtime.Numerics" version="4.3.0" targetFramework="net48" />
      <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net48" />
      <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net48" />
      <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net48" />
      <package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net48" />
      <package id="System.Spatial" version="5.8.4" targetFramework="net48" />
      <package id="System.Text.Encoding" version="4.3.0" targetFramework="net48" />
      <package id="System.Text.Encoding.CodePages" version="4.5.0" targetFramework="net48" />
      <package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="net48" />
      <package id="System.Threading" version="4.3.0" targetFramework="net48" />
      <package id="System.Threading.Tasks" version="4.3.0" targetFramework="net48" />
      <package id="System.Threading.Tasks.Dataflow" version="4.9.0" targetFramework="net48" />
      <package id="System.Threading.Tasks.Extensions" version="4.3.0" targetFramework="net48" />
      <package id="System.Threading.Tasks.Parallel" version="4.3.0" targetFramework="net48" />
      <package id="System.Threading.Thread" version="4.3.0" targetFramework="net48" />
      <package id="System.ValueTuple" version="4.5.0" targetFramework="net48" />
      <package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="net48" />
      <package id="System.Xml.XDocument" version="4.3.0" targetFramework="net48" />
      <package id="System.Xml.XmlDocument" version="4.3.0" targetFramework="net48" />
      <package id="System.Xml.XPath" version="4.3.0" targetFramework="net48" />
      <package id="System.Xml.XPath.XDocument" version="4.3.0" targetFramework="net48" />
      <package id="Umbraco.ModelsBuilder" version="8.1.6" targetFramework="net48" />
      <package id="Umbraco.ModelsBuilder.Api" version="8.1.6" targetFramework="net48" />
      <package id="Umbraco.ModelsBuilder.Ui" version="8.1.6" targetFramework="net48" />
      <package id="Umbraco.SqlServerCE" version="4.0.0.1" targetFramework="net48" />
      <package id="UmbracoCms" version="8.12.2" targetFramework="net48" />
      <package id="UmbracoCms.Core" version="8.12.2" targetFramework="net48" />
      <package id="UmbracoCms.IdentityExtensions" version="2.0.0" targetFramework="net48" />
      <package id="UmbracoCms.IdentityExtensions.AzureActiveDirectory" version="2.0.0" targetFramework="net48" />
      <package id="UmbracoCms.Web" version="8.12.2" targetFramework="net48" />
      <package id="UmbracoFileSystemProviders.Azure" version="2.0.1" targetFramework="net48" />
      <package id="UmbracoFileSystemProviders.Azure.Media" version="2.0.1" targetFramework="net48" />
      <package id="UmbracoForms" version="8.7.1" targetFramework="net48" />
      <package id="UmbracoForms.Core" version="8.7.1" targetFramework="net48" />
      <package id="uSync" version="8.8.3" targetFramework="net48" />
      <package id="uSync.BackOffice.Core" version="8.8.3" targetFramework="net48" />
      <package id="uSync.Community.Contrib" version="8.8.3" targetFramework="net48" />
      <package id="uSync.ContentEdition" version="8.8.3" targetFramework="net48" />
      <package id="uSync.Core" version="8.8.3" targetFramework="net48" />
      <package id="WindowsAzure.Storage" version="9.3.1" targetFramework="net48" />
    
  • Anton Oosthuizen 206 posts 486 karma points
    May 05, 2021 @ 15:10
    Anton Oosthuizen
    0

    I also noticed that when clicking on "save and preview" on the backoffice it does not update the content

  • Anton Oosthuizen 206 posts 486 karma points
    May 05, 2021 @ 16:19
    Anton Oosthuizen
    0

    Frontend External Index enter image description here

    Backend External Index enter image description here

  • Anton Oosthuizen 206 posts 486 karma points
    May 05, 2021 @ 16:39
    Anton Oosthuizen
    0

    I also noticed that the examine indexes in the backoffice instance are built in app_data/temp/ is this correct?

  • Anton Oosthuizen 206 posts 486 karma points
    May 06, 2021 @ 05:11
    Anton Oosthuizen
    0

    More info from logfile I can see it is hitting the database 189 hits whilst first load of the page in 2 min

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft