The Short Answer
Vertical scaling (scaling up) means giving one server more resources: more CPU cores, more memory, faster disks. Horizontal scaling (scaling out) means adding more servers and spreading the work across them. Scaling up is simpler and needs no change to the application. Scaling out has a much higher ceiling and keeps running when one server fails, but the application must be built for it.
Side by Side
| Vertical | Horizontal | |
|---|---|---|
| How | A bigger server | More servers |
| Complexity | Low | Higher |
| Upper limit | The largest machine | Much higher |
| Resize downtime | Often a restart | Usually none |
| One server fails | Service down | Others continue |
| App changes | None | Often needed |
Scaling Up
On a VPS, scaling up usually means moving to a larger plan. Extra memory and vCPUs usually take effect after a restart; this depends on the provider. A larger disk also needs its partition and file system grown before the space can be used; see how to grow a partition after a disk upgrade. Before you scale up, find out which resource is actually short:
uptime
vmstat 5 3A load average well above the number of vCPUs, steady swapping, or long waits for the disk each point at a different resource; see Linux load average and how to check memory usage in Linux. Sometimes the fix is a slow query or a missing cache, not a bigger server.
Why Scaling Up Is Often the Right First Step
A single modern server handles a lot of traffic. Doubling its memory is often a plan change and a restart, while splitting an application across several servers means a load balancer, shared sessions, a plan for the database, and more parts that can fail. Until one server is truly not enough, or until the service must survive the loss of a server, the extra complexity usually costs more time than it saves.
What an Application Needs Before It Can Scale Out
- No local state: any server must be able to answer any request. Uploaded files go to shared or object storage, not to one server's disk; see what is object storage.
- Shared sessions: login sessions live in a shared store such as Redis or the database, not in files on one server; see how to install Redis.
- A load balancer in front to spread requests and skip failed servers; see what is a load balancer.
- Identical servers: every node is built the same way, from an image, a configuration tool, or containers.
- A plan for the database, which is usually the last part to scale.
A Load Balancer in Front
With two or more application servers, a load balancer such as HAProxy or Nginx receives every request and passes it on. A minimal Nginx example with two servers on a private network:
upstream app {
server 10.0.0.11:8080;
server 10.0.0.12:8080;
}
server {
listen 80;
location / {
proxy_pass http://app;
}
}Health checks, weights, and sticky sessions are covered in Nginx load balancing.
Scaling the Database
Databases resist scaling out because every server must agree on the same data. The usual order: scale the database server up, add a cache, then add read replicas that answer read queries while one primary takes all writes, as in MySQL replication. Sharding, which splits the data itself across several primaries by a key such as a customer ID, comes last, because it changes how the application queries its data.
Scaling and Availability
Horizontal scaling and high availability use the same tools but answer different questions: one adds capacity, the other survives failures. Two servers behind a load balancer give you both only if either one can carry the full load alone. See high availability.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations