Does Liferay support session affinity with Azure?
Written By
Marcos da Silva Xavier
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
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.
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.
Did this article resolve your issue ?