Increase the default limit range resources
Presslabs Dashboard has default limit ranges for memory and CPU, which you can modify to accommodate your site's requirements.
A LimitRange is a policy to constrain resource allocations (to Pods or Containers) in a namespace, you can read more about them in the Kubernetes Documentation .
Usually these default limit ranges need to be modified if your site has performance problems, like difficulties in scaling MySQL or is missing certain features.
The default limit ranges on the Presslabs Dashboard are:
spec: limits: - default: memory: 512Mi defaultRequest: cpu: 50m memory: 256Mi type: Container
To modify the resources limit ranges, follow the next steps:
- Connect to your cluster where Presslabs Dashboard is installed.
- Search for the project namespace of your site, you can see it in the Presslabs Dashboard, in the Runtime section of your site.
- Run the following command (replacing
<your_namespace>with the namespace of your project):
kubectl -n <your_namespace> edit limitrange presslabs-dashboard
- Edit the resources as needed.
Add a preemptible node
To reduce the costs, you can run PHP pods on cheaper nodes.
Add custom init containers
If you want to run migrations or perform other operations that are required before your site starts, [...]
Sometimes you will need to set custom variables in ProxySQL configuration or you will want to cache [...]
Invite a user to your organization
You can invite users to your organization, which will give them access to all the projects and sites [...]