Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow publishing in Azure umbraco website

Tags:

azure

umbraco

I have an umbraco website setup in Azure. The front-end website loads fine but the back end takes more than 15 seconds from when you hit the "Save and Publish" to show the check mark denoting success. I setup a test website but in Azure VM pointing to the same Azure sql database that hosts the same umbraco Azure website and I don't get this problem.

like image 725
OsaJulian Avatar asked Oct 30 '22 22:10

OsaJulian


1 Answers

I just spent some time debugging this same scenario. We had a situation where once someone saved a node, it would take 30 seconds before the UI would become responsive again. Network trace confirmed that we were waiting on API calls back from Umbraco.

We were on an S0 SQL instance, so I bumped it to S1 and the perf got worse!? (guessing indexes rebuilding?).

We already have a few Azure specific web.config options set (like useTempStorage="Sync" in our ExamineSettings.config). Ended up adding the line below and now our saves went from 30-35s to 1-2s!

<add key="umbracoContentXMLUseLocalTemp" value="true" />

This is from the load balancing guide available here - https://our.umbraco.org/documentation/Getting-Started/Setup/Server-Setup/load-balancing/flexible

like image 180
Kolchy Avatar answered Nov 09 '22 15:11

Kolchy