What is a database server?
A database server is a machine whose main job is running a database engine for other applications. It can be one process on a shared box or a whole dedicated server.
Why give the database its own machine?
Because databases are the part of most systems that is hardest to scale and most painful to lose. On its own hardware the database gets all the memory for caching, all the disk bandwidth for its log and never competes with a web tier during a traffic spike. Its configuration, kernel settings and update schedule can be tuned for one job, and access can be restricted to the few application servers that need it. Separating it also makes the web tier stateless and easy to duplicate.
How should memory be sized for the database?
Enough to hold the working set: the tables and indexes touched in a typical hour, not the whole database. A 400 GB database whose busy portion is 60 GB runs well with 96 to 128 GB of memory. Measure cache hit ratios to find out. In PostgreSQL, a ratio below about 99 percent on an OLTP workload suggests more memory would help:
SELECT datname, round(100.0 * blks_hit / nullif(blks_hit + blks_read, 0), 2) AS hit_pct FROM pg_stat_database WHERE datname NOT LIKE 'template%';
Memory in our catalogue is fixed per model, so choose the model with the right amount from the start; upgrades are not sold. Moving to a larger model later is a planned migration with a replica.
Which disks suit a database?
NVMe in a mirror for almost every transactional workload. Databases issue many small random reads and synchronous log writes; NVMe answers both in well under a millisecond. Keep the write-ahead log and data on the same mirrored pair unless you have measured a need to split them. Hard disks remain useful for archive tables, backups and analytical data scanned sequentially. The Storage line combines both: STORAGE-2 2026 pairs 2x 960 GB SSD NVMe (system) + 2x 24 TB HDD SAS, Soft RAID.
How many cores does it need?
As many as concurrent active queries, with headroom. Most OLTP queries run on one core each, so 200 connections that are mostly idle may need only 8 to 16 cores, while a reporting database running parallel scans can use 32 or more. High clock speed shortens every single query, which matters more than core count for many web databases. BUSINESS-4 2026 with 16 at high boost clocks suits that pattern; ENTERPRISE-a3 2026 gives 32 for heavy parallel work.
| Workload | Memory first? | Cores | Disks |
|---|---|---|---|
| Web shop or CMS | Yes, fit the catalogue | 8 to 16, high clock | NVMe mirror |
| SaaS application, many tenants | Yes | 16 to 32 | NVMe mirror |
| Analytics and reporting | Helpful | 32 and more | NVMe, plus HDD for history |
Which operating system settings matter?
A few, and they are well known. Turn off transparent huge pages for engines that recommend it, set swappiness low so the kernel keeps database memory resident, use XFS or ext4 with noatime, and raise file and process limits for the service user. Leave the I/O scheduler at none for NVMe. Put these in configuration management so a reinstall reproduces them.
echo 'vm.swappiness = 1' > /etc/sysctl.d/60-db.conf && sysctl --system cat /sys/block/nvme0n1/queue/scheduler findmnt -no OPTIONS /var/lib/postgresql
How do application servers reach it safely?
Over an encrypted, restricted path. The database port should never answer the whole internet. Allow it in the host firewall only from your application servers' addresses, require TLS in the database configuration, or run the traffic over a WireGuard tunnel, which also gives you stable private addresses. A private network between servers is not sold here, so WireGuard is the usual answer.
What about replicas and backups?
Both, for different reasons. A replica on a second machine takes over quickly if the primary fails and can serve read-only queries; place it in the same city for synchronous replication or another for disaster recovery. Backups protect against mistakes and corruption that replicas copy instantly. Keep nightly physical backups plus a continuous log archive on another server, and restore one into a test instance monthly. Our Rescue a database from a dead system guide covers getting data back from a damaged system, and High availability covers failover.
Machines for a database server
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-3 | AMD Ryzen 9 5900X | 12 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $61.20 |
| BUSINESS-3 2024 | AMD EPYC 4464P | 12 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $141.60 |
| BUSINESS-4 2026 | AMD EPYC 4585PX | 16 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $212.40 |
| ENTERPRISE-a3 2026 | AMD EPYC TURIN 9355 | 32 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $481.80 |
| STORAGE-2 2026 | AMD EPYC 4345P | 8 | 32 GB | 2x 960 GB SSD NVMe + 2x 24 TB HDD SAS | 3 Gbps unmetered | $273.00 |
Related pages
Database servers
NVMe machines with large memory for PostgreSQL, MySQL, MariaDB and MongoDB, from a single primary to replicated pairs.
Read moreDBMS
What a database management system does beyond storing data: queries, transactions, concurrency, recovery, security, and the main families in use today.
Read moreIOPS
Input and output operations per second explained: block size, queue depth, latency, how NVMe, SATA SSD and hard disks compare, and measuring with fio.
Read moreRescue a database from a dead system
Get a consistent MariaDB, MySQL or PostgreSQL dump out of a server whose operating system no longer starts, working entirely from rescue mode.
Read moreQuestions and answers
Should the database run on the same server as the website?
For small sites it can. As traffic grows, a separate database server gives it all the memory and disk bandwidth and makes the web tier easy to duplicate.
What decides the RAM a database machine needs?
Enough to hold the working set, the data touched regularly. Measure cache hit ratios; for transactional databases aim for about 99 percent of reads served from memory.
Can I add memory to a server later?
No, memory upgrades are not sold. Choose a model with enough memory at the start, or migrate to a larger model with a replica later.
How do application servers connect to a separate database server securely?
Restrict the database port in the firewall to the application servers, and use TLS or a WireGuard tunnel for the traffic between them.
Are NVMe drives worth it for databases?
Yes. NVMe handles the small random reads and synchronous log writes of transactional databases far faster than SATA SSDs or hard disks.