CPU, RAM, and Storage Configuration: Starting Specs for Common Workloads
Bottom line: Start with memory based on workload type (databases and caches need most, web apps less), then choose CPU cores based on concurrency and compute load, finally pick storage type and size based on read/write patterns. Leave 30-50% headroom in your initial spec; don't go straight to max config.
This checklist is for provisioning a new server when you have requirements but no historical metrics. If you already have a production system with monitoring data, use that instead—this guide helps you set a reasonable baseline when starting from scratch.
Starting Configuration Checklist by Workload
- Static site or corporate website (Nginx + static files): 1 CPU core, 1-2 GB RAM, 20-40 GB SSD. Static files use almost no memory; bottleneck is usually bandwidth, not CPU. If you're just serving a website with no backend logic, 1 core is enough. Keep Nginx worker_processes at or below your core count.
- WordPress or similar PHP+MySQL single site: 2 cores, 2-4 GB RAM, 40-60 GB SSD. MySQL needs at least 1 GB (innodb_buffer_pool_size should be 50-70% of physical RAM); PHP-FPM child processes use 20-50 MB each. For sites under a few thousand daily visitors, 2 cores and 2 GB work; scale up memory and add Redis for higher traffic.
- Node.js or Python web app (single process/container): 2 cores, 2-4 GB RAM, 20-40 GB SSD. Node.js default heap limit is around 1.4 GB (adjustable with --max-old-space-size); Python varies by framework. Express, Flask, and FastAPI typically start at 2 cores/2 GB—load test and decide whether to add cores or memory.
- MySQL or PostgreSQL single instance: 2-4 cores, 4-8 GB RAM, 50+ GB SSD. Databases are memory and IOPS hungry. Buffer pool (innodb_buffer_pool_size for MySQL, shared_buffers for PostgreSQL) should get 60-70% of total RAM. SSD is mandatory; spinning disks will bottleneck random I/O. For analytical queries with complex JOINs, prioritize memory.
- Redis or Memcached cache: 2 cores, 2-4 GB RAM, 10-20 GB storage. Memory is key; size based on cached data and maxmemory policy. Redis persistence (RDB/AOF) uses CPU and disk I/O—SSD significantly reduces write latency with AOF everysec. Don't colocate with databases to avoid memory and I/O contention.
- Docker single host (3-5 small containers): 2-4 cores, 4-8 GB RAM, 60-100 GB SSD. Memory per container depends on the app; Docker's overhead is minimal. Storage holds images and logs—configure log rotation or logs will fill the disk. Image layers take more space than expected; allocate generously.
- Kubernetes single node or test cluster (1 master + 2 workers): 2 cores/4 GB minimum per node, 4 cores/8 GB recommended; 100+ GB storage. etcd, kube-apiserver, and kubelet alone use 1-2 GB; add CNI, monitoring, and logging and 4 GB is the bare minimum. For production, use at least 3 nodes for high availability.
- CI/CD build server (Jenkins, GitLab Runner): 4 cores, 4-8 GB RAM, 100+ GB SSD. Compilation and packaging are CPU-bound; more cores mean faster builds. Memory depends on concurrent jobs and project size—Maven builds for Java or npm install for Node.js can spike several GB. Storage caches dependencies and artifacts; clean periodically or mount a separate data disk.
- Object storage or file server (MinIO, Nextcloud): 2-4 cores, 4-8 GB RAM, storage to match actual needs (recommend separate data disk). MinIO prefers XFS and direct-attached disks (avoid RAID5/6 write penalty). Nextcloud with many users, full-text search, and preview generation will use significantly more memory and CPU.
- Game server or real-time app (room-based, not MMO): 4-8 cores, 8-16 GB RAM, 40-100 GB SSD. Real-time logic and physics are CPU-bound; single-core performance matters more than core count. Memory scales with room count and player count—each room's state, AI, and physics objects consume RAM. For latency-sensitive apps, choose a nearby datacenter with stable routing, not just better specs.
- ML inference service (CPU inference, no GPU): 8+ cores, 16-32 GB RAM, 100+ GB SSD. Model loading and inference use substantial memory—BERT and ResNet models are several GB each. CPU inference is compute-bound; more cores improve batch throughput, but GPU is more cost-effective. This workload usually fits dedicated servers or GPU instances better.
- Log collection and analysis (ELK, Loki): 4-8 cores, 8-16 GB RAM, 200+ GB SSD or separate data disk. Elasticsearch is a memory and IOPS hog—JVM heap should stay under 32 GB (pointer compression threshold) and leave half the RAM for system cache. Logstash or Fluentd also use 1-2 GB. Size storage by retention days × daily volume, or configure auto-cleanup.
Two Often-Overlooked Details
First: disk IOPS, not just capacity and SSD vs HDD. Cloud SSD typically allocates IOPS by capacity (e.g., 1 GB = 3-10 IOPS), so a small disk may only provide a few hundred IOPS. Databases and log-heavy workloads will hit this ceiling. If monitoring shows high IO wait but CPU and memory are fine, check IOPS first—expanding disk size or upgrading to a higher IOPS tier is more effective than adding cores.
Second: CPU architecture and clock speed. Cloud VPS CPU models are often opaque, but you can SSH in and run lscpu or cat /proc/cpuinfo after provisioning. Single-core performance varies widely: an older Xeon E5-2680 v2 (2.8 GHz) vs a newer EPYC 7763 (2.45 GHz base, 3.5 GHz boost) can differ by 30-50% on single-threaded tasks at the same core count. For game servers, real-time compute, or compilation, don't just count cores—test or ask support for actual CPU models.
When to Use This Approach
| Appropriate | Not Recommended |
|---|---|
| New project with no historical data—use checklist to provision quickly | Existing production system with full monitoring—use actual CPU, memory, and I/O metrics instead of generic estimates |
| Limited budget or uncertain traffic—start with lower specs, scale up based on real usage | Known high-concurrency or large-dataset workload—underprovisioning wastes time on repeated adjustments |
| Dev and test environments—spec one tier lower than production to save cost | Production using dev-environment specs to save money—peak load will likely overwhelm the system |
| Using SSD and estimating IOPS needs by workload to avoid I/O bottlenecks | Running databases, logs, or containers on HDD or small SSD—inadequate IOPS will drag down overall performance |
After selecting your config, set a balance alert in the member center to avoid service deletion from missed renewals.