Issue
- How to properly scale up Search nodes instead of deleting the Search service and deploying it again?
Environment
- Liferay PaaS
- Liferay DXP 7.4+
Resolution
-
Following the Liferay Cloud Upgrading to a High Availability Subscription documentation, which also describes the procedures to scale up search services, what you need to do is:
(… to) update the
searchservice to increase its number of instances it uses by increasing thescaleproperty in your project repository’ssearch/LCP.jsonfile. Increment the value to the next odd number of instances to prevent issues with the service starting (generally from1to3when upgrading to the High Availability subscription):{ "kind": "StatefulSet", "id": "search", "image": "liferaycloud/elasticsearch:6.8.13-4.1.1", "memory": 8192, "cpu": 8, "scale": 3, "podManagementPolicy": "Parallel", ... }WARNING
In order to ensure your
searchservice’s instances can connect to each other properly, increase thescaleproperty to an odd number of nodes, and ensure that thepodManagementPolicyproperty is set toParallel.So the advisory in this WARNING must be followed exactly to prevent connection issues.