# Horizontal Scaling

> For AI agents: the complete glossary index is at [llms.txt](https://glossary.cncf.io/llms.txt).
> Markdown versions of every glossary page are available by appending `index.md` to the page URL.

Horizontal scaling is a technique where a system's capacity is increased by adding more [nodes](https://glossary.cncf.io/nodes/) 
versus adding more compute resources to individual nodes (the latter being known as [vertical scaling](https://glossary.cncf.io/vertical-scaling/)). 
Let's say, we have a system of 4GB RAM and want to increase its capacity to 16GB RAM. 
Scaling it horizontally means doing so by adding 3 nodes x 4GB RAM rather than switching to 
a 16GB RAM system.

This approach enhances the performance of an application by adding new instances, or nodes, 
to better distribute the workload. 
In simple words, it aims to decrease the server's load 
rather than expanding capacity of the individual server.

## Problem it addresses

As demand for an application grows beyond the current capacity of that application instance, 
we need to find a way to [scale](https://glossary.cncf.io/scalability/) (add capacity to) the system. 
We can either add more nodes to the system (horizontal scaling) 
or more compute resources to existing nodes (vertical scaling).

## How it helps

Horizontal scaling allows applications to scale to whatever limits the underlying cluster provides. 
By adding more instances to the system, the app can process a greater number of requests. 
If a single node can handle 1,000 requests per second, 
each additional node should increase the total number of requests by around 1,000 requests per second. 
This allows the application to do more work concurrently 
without needing to increase the capacity of any node in particular.

## Related terms

* [Vertical Scaling](https://glossary.cncf.io/vertical-scaling/)
* [Auto Scaling](https://glossary.cncf.io/auto-scaling/)

---

- Canonical URL: https://glossary.cncf.io/horizontal-scaling/
- Status: Completed
- Last modified July 24, 2024: ` [en] Small fix for horizontal-scaling.md ` ([7798060](https://github.com/cncf/glossary/commit/7798060b8079312004c527613f39c0a2485181df))
- Source: https://github.com/cncf/glossary/blob/main/content/en/horizontal-scaling.md
- License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
