We keep struggling with the right setup for our load balanced environment.
Following the documentation on
https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/load-balancing/flexible-advanced#explicit-schedulingpublisher-server we need to set the server role based on the code in a Composer.
We have the following setup for our CM (Backoffice) server:
LocalTempStorageLocation: EnvironmentTemp
LuceneDirectoryFactory: SyncedTempFileSystemDirectoryFactory
IsSchedulingPublisherServer: True
MainDomLock: FileSystemMainDomLock
UmbracoApplicationUrl:
https://acc-cm.ourwebsite.nl/
And the following setup for our CD (Frontend) server:
LocalTempStorageLocation: EnvironmentTemp
LuceneDirectoryFactory: TempFileSystemDirectoryFactory
IsSchedulingPublisherServer: False
MainDomLock: FileSystemMainDomLock
UmbracoApplicationUrl:
https://acc.ourwebsite.nl/
Based on the IsSchedulingPublisherServer appsetting we set the right ServerRegistrar (SchedulingPublisherServerRoleAccessor or SubscriberServerRoleAccessor).
So far so good.
But after a new deploy it seems that the index wouldn't be recreated on the CM environment and lost most of his items.
Do we need to do something with the property "ServerRole" in the appsettings (below Umbraco > CMS > Global) or is that outdated?
I heard that in v10 the ServerRole accessor won't work as expected and that it's solved in v11 or v12, but how can we fix this for v10?
Hopelfully someone does have the right answer for us.
Thanks in advance!
Grtz Sander