Front End and Back Office servers without a load b...
# help-with-umbraco
b
Are there any examples of setting up Umbraco 14 where one server is the "front end" (public user access) and a "back end" (Back Office management)? When I publish content from the BO server the Front End server displays a 404 page. When I unpublish the Front end shows the default umbraoc "no content published page". I've done the following: Created a new server election composer (Back end server returns ServerRole.SchedulingPublisher while front end returns ServerRole.Subscriber) Both the front end and back end point to the same database Mind you I'm testing all of this running 2 instances of Visual Studio
We've run many load-balanced installations like this (on 8-12) but I don't think I've tried this with two
localhost
instances that only differ by port number; is this the case for you?
Did you set the
UmbracoApplicationUrl
? And if you look at the Umbraco Servers database table (forgor the name), are both instances there correctly?
b
I've followed the docs in the URL you provided but I do not have a load balance device etc in front. I'm not seeing values in the dbo.umbracoServer table I have each app's Umbraco.WebRouting.UmbracoApplicationUrl set to itself (example: 1 app is running at https://localhost:44363/ and the other at https://localhost:44318/) The only part in the documentation I did not try out is the filesystem such as setting up a central directory and creating a virtual directory in both projects and pointing them to it. I guess I'll have to spin up a virtual domain to weed out VS issues https://cdn.discordapp.com/attachments/1313965745582903366/1313997120277057638/image.png?ex=67522aae&is=6750d92e&hm=9c55c1967e0505fdfdc9a7e15f95a6db4cb3fa2f15413d2f79a7158d7b566580&
m
@BoogerFinger if you run with explicit server roles then there will not be any entries in the umbracoServer table.. that's only if you have *not * explicitly set the serverroles and umbraco has to try and work out auto election of serverroles. (first booting server becomes publisher...) Also I think, with a pinch of salt.. you can consider two frontends talking to the same DB is a loadbalanced set up.. (even if you have no real loadbalancing going on.. though giving urls to publisher vs subscriber you are manually load balancing... 😉 )
k
Thanks, didn't know about the servers table. (But doesn't the subscriber need to know who the publisher is?) Yes, the Umbraco documentation uses "load balanced" to describe "separate backoffice and frontend instances" consistently. So it doesn't matter @BoogerFinger that you don't have an actual load balancing mechanism, which would only distribute load among the "subscriber" Umbraci anyway. We sometimes host in local IIS and just use
x.localho.st
as URL, but that's alot of setup compared to F5 in VS.
m
AFAIK subscriber simply polls the DB for distributed cache instructions to process. (you can control the frequency on that in appsettings) So no the subscriber doesn't need to know about the publisher.. (application url did previously to say it's the publisher url.. but there was a discussion on discord and docs updated now to say it's just the url for the server to contact itself)
k
Such a load of knowledge to balance mentally
I'm spinning up a domain to deploy the instances to and see if that will get beyond my issue point with testing this out in VS. I figured it would be better than trying to etc/hosts with local IIS stuff. Initially I figured VS and all of its "magic" would be a viable option. Will keep you all posed.
k
*.localho.st
is in external DNS, no need to
hosts
. 🙂
b
"docs updated now to say it's just the url for the server to contact itself" -- This is a nice nugget of info. to know.
6 Views