Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How to Adjust PHP Workers in xCloud?

PHP workers are processes that execute PHP code concurrently, improving the performance and scalability of web applications. When creating your server in xCloud or updating a new PHP version, xCloud adjusts PHP workers count automatically based on the RAM and CPU core available on your server specification.

xCloud provides you the flexibility to set the number of PHP workers to your exact needs from your dashboard. You can find the recommended number of workers count later in this documentation. Optimizing workers can significantly impact your website’s performance, speed, and reliability. 

How Do You Adjust PHP Workers in xCloud? #

Following the steps below, you can effectively manage PHP workers to meet your website’s specific requirements.

Note: Incorrectly configuring workers count in PHP can affect your website’s performance. It is essential to carefully consider your server’s resources and workload before adjusting.

Step 1: Access Your Site in xCloud #

To adjust the PHP workers of your site, first, log in to your xCloud dashboard. Then, head over to the โ€˜Sitesโ€™, and choose the website to navigate to the selected siteโ€™s โ€˜Overviewโ€™ page where you want to make the changes.

Adjust PHP Workers in xCloud

Step 2: Access PHP Settings #

From the websiteโ€™s โ€˜Overviewโ€™ page, click on the ‘Settings‘ tab from the left panel. 

Adjust PHP Workers in xCloud

Step 3: Adjust the Number of PHP Workers #

In the PHP Settings, set the maximum workers limit in the โ€˜Max PHP Workersโ€™ section considering your site traffic, server’s RAM and CPU resources and click on โ€˜Save Settingsโ€™.

Note: We recommend allocating max 1 worker per 256MB of RAM and 4 workers per CPU core to avoid overflow and underflow. When adjusting automatically xCloud follows this calculation.

Adjust PHP Workers in xCloud

That is how you adjust PHP workers in xCloud to enhance your website’s speed, reliability, and user experience.

Determining the Optimal Number of Workers in xCloud #

While the exact number of PHP workers needed varies for each website, understanding your website’s specific requirements can help you find the optimal configuration. Here is how:

Consider Website Type And Workload #

Different website types have varying demands on workers. Here are some general recommendations to get you started (remember, testing and customization are crucial)

  • Low-Traffic Websites (Blogs, Portfolios): Begin with a conservative number, like 2 to 3 static workers per CPU core.
  • Medium-Traffic Websites (E-commerce Stores): For moderate traffic, consider starting with 3 to 4 static workers per CPU core. Websites with complex product catalogs or high user interaction might require further adjustments.
  • High-Traffic Websites (Forums, Social Networks): These resource-intensive websites might benefit from a wider range (4 to 8+ workers) depending on the complexity of user interactions and database operations.

Before changing the PHP worker count, a thorough assessment of your server’s capacity and workload is recommended.

Emphasize Testing And Monitoring #

A data-driven approach is key. Here are some valuable strategies:

  • Test incrementally: Increase workers gradually (e.g., +1 per core) and monitor website performance after each change. Use tools like Google PageSpeed Insights or Load Impact to evaluate website speed and identify bottlenecks.
  • Analyze Resource Utilization: Keep an eye on server resources like CPU and RAM usage within the xCloud dashboard. Too many workers can lead to resource exhaustion, negatively impacting performance.

Note: PHP worker adjustment is only available NGINX servers. Because OpenLiteSpeed uses a different approach to handling PHP requests compared to NGINX. While NGINX typically relies on PHP-FPM (FastCGI Process Manager), which allows for the adjustment of PHP worker processes (or pools), OpenLiteSpeed integrates PHP directly using its own PHP process management mechanism.

Still stuck! Contact our dedicated support team for assistance with your queries.

What are your feelings
Updated on October 24, 2024

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00