On izCloud you first buy resources as a pool and then distribute them to servers. If your estimate is off, you can redistribute the pool's resources or upgrade the pool without rebuilding the server.
How do you determine server resources?
Measuring is the safest way to determine resources. The general approach has four steps: define the workload, measure current usage, find the peak value and add a margin on top.
If you do not have an existing server, start with a small size and measure with real traffic. Since you can change resources later on a cloud server, the first estimate does not have to be exactly right.
Measurement time matters too. One day of data does not show weekly or monthly cycles. To catch periodic loads such as a month-end report, a campaign or a backup hour, watch at least one full business cycle.
- Write down what the application does: a website, a database, an application server or a mix of these.
- Measure processor, memory, disk and network usage during the busiest hours for several days.
- Look at the peak values, because the average hides short bursts.
- Add a safety margin on top of the peak value and pick that amount as your starting size.
- Repeat the measurement regularly and scale up according to the bottleneck.
Which tools measure CPU, RAM and disk?
On Linux, the top, htop, free, vmstat and iostat commands give the basic measurements. On Windows Server, Task Manager and Performance Monitor do the same job.
| Resource | Linux tool | What to look at |
|---|---|---|
| Processor (vCPU) | top, htop, vmstat, uptime | Usage percentage and load average; if the load average stays above the vCPU count, the processor is not enough |
| Memory (RAM) | free -m, vmstat | Available memory and swap usage; if swap keeps filling, RAM is not enough |
| Disk space | df -h, du | Usage percentage and growth rate |
| Disk performance | iostat -x | Wait time and disk busy percentage |
| Network | iftop, sar -n DEV | Bandwidth usage and packet loss |
How many vCPUs do I need?
The number of vCPUs you need depends on how much work runs at the same time. If the load average stays above the vCPU count, the processor is the bottleneck and adding vCPUs helps.
A single-threaded application does not benefit from extra vCPUs. Find out whether your application uses multiple cores. Some software is licensed by core count, so check this before buying.
How a vCPU maps to a physical core differs by provider. So trust the performance you measure more than the number.
A common rule for the safety margin is to add a buffer of 30 to 40 percent on top of peak usage. This ratio is not exact. Raise or lower it according to how sudden the load spikes are. For workloads with sharp spikes, keep a wider margin.
How do you decide RAM and disk size?
RAM is the application's peak memory plus the share for the operating system and cache. If swap use is constant, memory is not enough. Disk is sized by the current data, its growth rate and extra space for logs, backups and temporary files.
For read and write heavy workloads such as databases, disk performance matters as much as disk space. On izCloud the disk type is NVMe SSD, but your measurements decide the real need of the application.
The rule for disk space is simple: a server with a high fill rate slows down and operations can fail. Watch the fill rate regularly and plan growth ahead.
In an application that uses a database, disk growth is often not linear. Logs, temporary tables and backup files can take up space unexpectedly. Measure the growth rate weekly and calculate the approximate date the disk will fill.
What are the starting points for sample workloads?
The values below are only starting points and are not a performance promise. The real need varies a lot with the application structure, traffic and software efficiency. Start small, then tune by measuring.
Keep this in mind when reading the table: the same workload can use very different resources with a different software stack. A site that uses caching, serves images separately and has tuned database queries can serve the same traffic with far fewer resources.
| Workload | vCPU | RAM | Disk | Note |
|---|---|---|---|---|
| Small corporate site | 1-2 | 2-4 GB | 40-80 GB | Caching lowers the load |
| Mid-size online store | 4 | 8-16 GB | 100-200 GB | Leave headroom for campaign periods |
| Application and API server | 2-4 | 4-8 GB | 50-100 GB | The number of concurrent requests decides |
| Database server | 4 | 16 GB and up | Depends on data size | Memory and disk performance are critical |
| Test and development environment | 1-2 | 2-4 GB | 40 GB | Can be turned on and off when needed |
How should I scale up resources?
To scale up, first find the bottleneck and increase only that resource. If the processor is full, add vCPUs; if swap is in use, add RAM; if the disk is slow, look into disk performance. Increasing everything at once raises cost and may not fix the problem.
Vertical scaling means increasing the resources of a single server and is the simplest way. Horizontal scaling means splitting the load across several servers and is needed when you approach the limit of one server. For example, moving the database and the application to separate servers is the first horizontal step.
Measure again after every increase. Do not make a new increase before you see the result.
Before adding resources, also look at improvements on the software side. A slow database query, a missing index or an unnecessary background process are problems that can be solved without extra vCPU and RAM.
- If the processor stays high at peak load, increase vCPUs.
- If swap is in use, increase RAM.
- If the disk is about to fill, enlarge the space and clean old logs.
- If a single server has hit its limit, separate the application and the database.
How do you plan resources on izCloud?
On izCloud you first buy the total resources as a pool and then build servers inside this pool. vCPU, RAM, NVMe SSD and IPv4 capacity is bought once as a pool. There is no limit on the number of servers in the pool; only the pool's resources decide.
You share the resources between servers yourself. You can give the database server more RAM and the application server more vCPU, and change the split according to your measurements. When needed, you upgrade the pool from the panel.
Changing vCPU and RAM on a server requires the server to be powered off. So plan the change for a time when traffic is low. Capacity is not oversold.
Frequently asked questions
How much RAM is enough for a website?
It depends on the site, the software it uses and the traffic. For a small corporate site, 2-4 GB can be a starting point. Determine the real value by measuring and leave headroom above peak usage.
How many vCPUs do I need?
Increase them if the load average stays above the vCPU count. Start measuring with 1-2 vCPUs and check whether your application uses multiple cores.
Can I change resources later?
Yes. In a pool you can redistribute resources between servers or upgrade the pool. Changing vCPU and RAM on a server requires the server to be powered off.
Should I look at the average or the peak?
Look at the peak. Even if average usage looks low, the load can rise several times during a campaign or a busy hour.
Why does disk performance matter?
Applications that use a database or write logs read and write the disk constantly. If the disk is slow, the application slows down even when CPU and RAM are enough. Measure disk wait time with iostat.
What happens if I pick too many resources?
You pay for resources you do not use. In the pool model, you can shrink the extra resources on one server and give them to another.