# Kubernetes resources calculator

Size CPU and memory requests and limits, and see how many nodes your replicas need.

## How it works

The scheduler places pods by their requests. Each node has its CPU and memory minus what the system reserves, and the resource that runs out first sets how many pods fit.

```
pods per node = min(node CPU ÷ CPU request, node memory ÷ memory request)
```

## Questions

### Should I set a CPU limit?

Many teams skip it, because CPU limits throttle the pod even when the node has spare CPU. Always set a memory limit.

### Why does my pod get OOMKilled?

It used more memory than its limit. Raise the limit, or find what’s growing.

## Related tools

- [Regex tester](https://powertraces.com/tools/regex-tester)
- [Diff checker](https://powertraces.com/tools/diff-checker)
- [YAML ⇄ JSON converter](https://powertraces.com/tools/yaml-json)
- [cURL to code converter](https://powertraces.com/tools/curl-to-code)

[All tools](https://powertraces.com/tools)
