Capacity planning
We have to make sure individual nodes and the entire cluster has optimal hardware and software configuration in order to perform better. Following is a set of recommended configurations for CockroachDB:
- Operating system: Container-optimized OSs such as Ubuntu, Red Hat Linux, and CentOS are the preferred operating systems. A container-optimized OS, as the name suggests, is an operating system that is optimized for running Docker containers.
- Node configuration: Following are node configurations for optimal performance:
- CPU: At least four vCPUs per node. For more throughput per node, you can increase the number of vCPUs.
- Memory: 4 GiB RAM per vCPU.
- IOPS (input/output operations per second): 500 per vCPU.
- Disk I/O in MiB/second: 30 MiB/second per vCPU.
- Storage
- 150 GiB per vCPU.
- 2.5 TiB max per node.
- Dedicated volumes only used for CockroachDB are preferred.
VM capacities differ between cloud providers. So, based on the preceding recommendations...