Issue
While deploying a client extension to a Liferay SaaS EXT environment, this error is thrown:
Some error has happened during the build. Try again. [{"message":"Exceeded Quota Limit","status":403,"errors":[{"reason":"exceededPlanMaximum","context":{"message":"Desired service spec cpu exceeded the max limit for provided plan ext<projectID-projectName>. The max limit is 1","param":"cpu","attemptUsage":2,"quotaMax":1}}]}].
Environment
- Liferay SaaS
Resolution
- If you encounter this error, adjust the "cpu" field in each client extension LCP.json file so the sum total of all EXT environment deployments is less than or equal to the max limit.
- For example, assuming a Liferay SaaS plan offering 1 vCPU:
- Example 1: If you deploy two client extensions to the EXT environment, define
"cpu": 0.5in the LCP.json of both services for a total of “1” - Example 2: If you already have eight client extensions with the "cpu" value of 0.1 (0.8 in total), you can add a ninth client extension with a "cpu" value of 0.2, as this would equate to 1 total vCPU
- Example 1: If you deploy two client extensions to the EXT environment, define
- When the error instead notes that memory is exceeded, you can resolve the issue using the same principles listed in this article for cpu.