Performance settings of the Web site hosted within the subscription are defined by the performance node. This node is specified by complex type DomainPerformanceType (
plesk_domain.xsd). This type is structured as follows:
- The bandwidth node is optional. It restricts the network use by the specified value (Kb/sec) for the subscription. Data type: integer. If set to -1, the bandwidth is unlimited.
- The max_connections node is optional. It restricts the number of connections by the specified value for the subscription. Data type: integer. If set to -1, the number of connections is unlimited.
The following sample packet creates a subscription and sets performance settings:
<packet version="18.104.22.168"> <webspace> <add> <gen_setup> <name>newsite.com</name> <owner-id>1234</owner-id> <ip_address>192.0.2.123</ip_address> </gen_setup> <performance> <bandwidth>1000</bandwidth> <max_connections>20</max_connections> </performance> </add> </webspace> </packet>
To undo the performance settings for this subscription, send a packet as follows:
<packet version="22.214.171.124"> <webspace> <set> <filter> <name>example.com</name> </filter> <values> <performance> <bandwidth>-1</bandwidth> <max_connections>-1</max_connections> </performance> </values> </set> </webspace> </packet>
Leave your comments on this page
Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.