Loads balance Umbraco 13+
# help-with-umbraco
t
Hi I have an Umbraco 13 which I've developed locally and it's working nice. I need to upload this to a new environment but a last minute change had meant the environment is going to be load balanced. How can I test this locally (if possible) to ensure the site doesn't break in a load balanced environment? This is applicable to Umbraco 13 and 15 Thank you
Anyone have any idea? Or is this not possible and can only test on a server that is load balanced?
k
You can test it on local IIS. Or maybe even just fire up several VSs. Just connect them to the same database and configure them for load balancing. In the old days you had to implement your own "application ID resolver" if running two instances on the same machine (since the machine name was used as the application ID; I think this confused multi-instance setups), not sure if this is still the case. This should work both for backoffice+front setups and backoffice+multi-frontend setups.
m
you can use..
dotnet www.dll --urls=https://localhost:44589/  --configuration Release --environment Subscriber
{www}.dll is you site assmebly name and environment will be whatever your subscribers are called from an environment name perspective (to pick up on the correct appsettings.{env}.config override to explicitly set your server role etc.... (Not sure if you can run from the same files.. or have to simply dupe the folder, file locking maybe though....)and then change the port to run multiple sites. But as long as they are pointing at the same DB with serverroles set.. you should have a local load balanced simulation.
22 Views