Provider wants to update limits of a particular Apache website(s), e.g. increase number of processes or memory limit.
The solution below is applicable only for POA versions between 2.9 and 5.4. Starting with POA 5.5, the Apache resource limits can be managed via POA UI. Refer to the POA Provider's Guide and the Parallels Knowledgebase article #117998 for more details.
POA does not allow to update limits of a particular website, Provider may update limits of all Apache websites hosted in a particular customer subscription (webspace) using the instruction below.
Change activation parameters in the Linux Shared Hosting resource type (based on the Physical hosting (Apache) resource class) included in a customer subscription or in a Service Template a customer subscription is based on (parameters defined in a Service Template override ones defined in a resource type).
Use the pem.apache.updateLimits POA OpenAPI request to apply changes to a particular customer subscription. This API method is supported starting from POA 2.9 and updates the following Apache webspace limits:
- Limit of simultaneous requests
- Limit of maximum bandwidth allowed per website
- Limit of used CPU per website
- Limit of used memory per website
Limit number of processes per website
Follow the steps below to apply changes in the activation parameters in the Apache resource type or Service Template to the existing subscriptions:
- Log into POA Management Node
Create XML file pem.apache.updateLimits.xml on POA MN with the following content:
<?xml version='1.0'?> <methodCall> <methodName>pem.apache.updateLimits</methodName> <params> <param> <value> <struct> <member> <name>subscription_id</name> <value><i4>1000101</i4></value> </member> </struct> </value> </param> </params> </methodCall>
Replace 1000101 with the ID of subscription which has to be updated.
- Send the request to POA XML RPC server using e.g. curl utility:
# curl -email@example.comLimits.xml http://localhost:8440