Hey there! I'm planning to take web hosting for a real estate agency website built on Yii2. The hosting provider states that the processor can handle a load of 4-6%. However, I am wondering whether this capacity would suffice or if they would recommend switching to a higher plan every month depending on the load. I would appreciate your advice on what kind of load would necessitate a stronger hosting plan. Thank you in advance!
If the admin crashes, the dormant processes can cause the server to reach a critical state. A powerful server can easily become overwhelmed by 100 sleeping processes that have been inactive for several hours. It's important to note that LA is a result of this critical state, rather than the root cause of the problem.
Rather than immediately expelling the client in such a scenario, it's more reasonable to limit their database requests to a reasonable extent and inform them that they need to fix their script or organize their database tables.
In critical situations, it can be useful to personally adjust the MySQL config so that sleeping processes are prevented. However, this may inconvenience other clients. Additionally, if there are 10 or more overlays per core during peaks in LA, and if the daily average exceeds 2 per core, then it's necessary to consider reducing the server load. Otherwise, the server will become unstable, and every client with even a modest amount of site traffic can quickly become an adversary.
Digital Ocean is an excellent choice for a VPS, as they offer full automation and comprehensive dоcumentation. If you find that your chosen plan isn't sufficient (which is easily monitored via the panel's load indicators), you can quickly upgrade to a more powerful option with just a few clicks.
Additionally, their hourly payment system is very convenient - you can disable it if you prefer not to pay for an entire month's worth of service.
If you're experiencing constant server load, the first step is to analyze your logs. If traffic is consistently high, then the issue may be located in your CMS's code. As a developer, you have the option to utilize the php XHProf module, which, when paired with web developer tools, can provide useful code profiling information.
For non-developers, we recommend enabling CMS caching (if supported) and disabling any unused CMS modules. Additionally, consider switching to a CMS that consumes fewer server resources if necessary.
When database servers are overloaded, it's important to analyze query structures and create additional indexes and optimize databases (see our article for more information). We keep logs of slow queries and can provide them upon request.
If you don't have the ability or desire to manage server load, there are several solutions. You can use the "increased CPU load" add-on service, rent a VDS (which places all virtual dedicated server resources at your disposal), or rent a dedicated server (which provides a familiar environment and eliminates the need for administration and backup concerns).
Let's break down what the hosting provider means by "4-6% processor capacity". This refers to the amount of CPU resources allocated to your website, which is typically measured in terms of percentage of the total available resources. In other words, if the hosting provider's server has 100% CPU capacity, your website is allocated 4-6% of that capacity.
Now, whether this capacity would suffice for your real estate agency website depends on several factors, including:
Website complexity: If your website is built on a complex framework like Yii2, it may require more resources to run smoothly.
Traffic volume: If your website receives a high volume of traffic, it will put more strain on the server's resources.
Database queries: If your website performs a large number of database queries, it can slow down the server and increase the processor load.
As a general rule of thumb, if your website consistently uses more than 4-6% of the processor capacity, you may need to consider upgrading to a higher plan. However, it's not just about the processor load alone. You should also consider other factors such as:
Memory usage: If your website uses a significant amount of memory, you may need to upgrade to a plan with more RAM.
Disk space: If your website generates a large amount of data, such as images and videos, you may need to upgrade to a plan with more disk space.
Database size: If your website has a large database, you may need to upgrade to a plan with more database storage.
Here are some rough guidelines to help you determine when you might need to upgrade:
If your website consistently uses more than 10% processor capacity, you may need to consider upgrading to a higher plan.
If your website uses more than 20% processor capacity, you should definitely consider upgrading to a higher plan to avoid performance issues.
If your website uses more than 30% processor capacity, you may need to consider upgrading to a dedicated server or a cloud hosting solution.
It's also important to note that the hosting provider's recommendation is based on their own internal metrics and may not necessarily reflect the actual performance of your website. As a hosting specialist, I would recommend monitoring your website's performance using tools like New Relic, GTmetrix, or Pingdom to get a better understanding of its resource usage.
While the hosting provider's recommendation of 4-6% processor capacity is a good starting point, it's not a hard and fast rule. You should monitor your website's performance and adjust your hosting plan accordingly. If you're unsure about your website's resource usage or need help determining the right hosting plan for your needs, feel free to reach out to me anytime for guidance.
I'd advise you that a 4-6% processor load is a decent starting point, but it's essential to consider the site's traffic, complexity, and expected growth. A general rule of thumb is that a 10% processor load is a good threshold for a standard hosting plan. However, this can vary depending on the specific requirements of your real estate agency website.
For instance, if your site is relatively simple, with a moderate amount of traffic (less than 1,000 unique visitors per day), and doesn't require extensive processing power, the 4-6% load might be sufficient. On the other hand, if your site is more complex, with high-traffic and resource-intensive features, such as property search, mapping, or video integration, you may need to consider a stronger hosting plan.
To give you a better idea, here are some rough estimates of the types of loads that may necessitate a stronger hosting plan:
10-20% processor load: Suitable for small to medium-sized businesses with moderate traffic (1,000-5,000 unique visitors per day).
20-30% processor load: Ideal for larger businesses with high traffic (5,000-20,000 unique visitors per day).
30%+ processor load: Typically required for high-traffic, resource-intensive websites, such as e-commerce platforms or online marketplaces.
Keep in mind that these are general guidelines, and the specific requirements of your website may vary. It's essential to monitor your site's performance and adjust your hosting plan accordingly to ensure optimal performance and scalability.