Issue
- Is Azure Zone Redundant app service compatible with Liferay DXP?
- It appears that when you select an App Service to be Zone Redundant, Azure manages the cluster for you. That is, you don’t get access to individual nodes. However if session affinity with Azure App Service is enabled, different Liferay bundles work independently of one another, without enabling clustering.
Environment
- Liferay DXP 7.0+
Resolution
-
This is not a supported configuration because clustering must be enabled for proper node functioning. They will notify each other of updated (stale) cached entities, scheduled job notifications, etc. Thus clustering is required when more than 1 node is being used.
Additionally, session affinity is always recommended. It benefits cache management - if I hit one node and it retrieves records to serve my request, it is highly likely that those records would be used in my subsequent requests.
With session affinity enabled, the node will have all of the things cached I may need, whereas other nodes would not. Without session affinity, I could end up on a different node and it would have to retrieve and cache data to service my request.
So, not only session affinity should be enabled as a recommendation but also clustering if you have more than one node functioning.
Additional Information