Workload

MySQL and MariaDB on a Dedicated Box

MySQL rewards memory first and fast writes second. Our 128 GB machines start at $88.72 a month and hold a sizable working set in RAM.

What decides MySQL speed on a dedicated machine?

Whether the rows your queries touch already sit in the InnoDB buffer pool. A read served from memory takes microseconds; a read that has to fetch a page from disk takes far longer, even on NVMe. So the first sizing question is not cores but RAM: how large is the data that gets read every hour? Fit that into the buffer pool with room to spare, and MySQL feels fast on modest hardware.

The second factor is commit latency. Every transaction with innodb_flush_log_at_trx_commit=1 waits for the redo log to reach stable storage. NVMe drives make that wait short, which is why every model from S1 upward uses NVMe instead of SATA SSDs.

How big should the buffer pool be?

On a machine that runs only MySQL, give the buffer pool roughly 70 to 75 percent of RAM and leave the rest for connections, sort buffers, the operating system and the page cache used by binary logs. On a 128 GB box such as S5 that means about 92 GB; on M1 with 512 GB DDR4, around 380 GB.

# /etc/mysql/mysql.conf.d/zz-sizing.cnf (Ubuntu path; Rocky uses /etc/my.cnf.d/)
[mysqld]
innodb_buffer_pool_size = 92G          # roughly 72 percent of 128 GB
innodb_buffer_pool_instances = 8
innodb_redo_log_capacity = 8G
innodb_io_capacity = 4000
innodb_io_capacity_max = 12000
max_connections = 600

innodb_redo_log_capacity replaced the older log file size settings in MySQL 8.0.30 and later. A larger redo log lets heavy write bursts finish without forcing checkpoints. MariaDB uses innodb_log_file_size for the same purpose.

Which model fits which database size?

Hot data setPickWhy
Up to 40 GBS364 GB DDR4 and 2x 1 TB NVMe for a mirror
40 to 90 GBS5 or S7128 GB DDR4, two NVMe drives
Busy OLTP, high clock wantedS11Intel Core i9-14900K, DDR5, 2x 2 TB NVMe
90 to 180 GB, many connectionsD516 cores on two sockets, 256 GB DDR4
180 GB and upM1512 GB DDR4 and 2x 4 TB NVMe

Should the two drives be mirrored?

For a primary database, yes. Machines arrive with the image on the first drive and the second drive empty; RAID is not set up for you, so build a mirror yourself after delivery. A simple route is to create a software RAID 1 with mdadm on the spare drive plus a partition you free on the first, or to keep the system where it is and place the MySQL data directory on a ZFS mirror. The Two-drive mirror (RAID 1) entry walks through the trade-offs. A mirror protects against a dead drive; it does not protect against a bad DELETE, so backups stay mandatory.

How do I back up and replicate across cities?

Run a replica in a second city and take backups from the replica, never from the primary during peak hours. Replication travels over the public network, since private networks are not part of the offer, so turn on TLS for the replication user with REQUIRE SSL and allow port 3306 only from the replica's address.

  • Use GTID-based replication; it makes failover and re-pointing replicas much simpler.
  • Take physical backups with Percona XtraBackup or MariaDB's mariabackup for fast restores of large data sets.
  • Keep binary logs long enough to replay from the last full backup to any point in time.
  • Test a restore every month on a spare box; a backup that was never restored is only a hope.

Where does a single MySQL box stop scaling?

Writes are the ceiling. Reads scale out to replicas, but every write still lands on one primary. When the primary's CPU or commit rate becomes the limit, the next steps are sharding by customer or tenant, moving analytic queries to a replica, or stepping up to a larger dual-socket model. Most growing applications reach that point much later than expected once the buffer pool fits the working set.

Shortlist for MySQL and MariaDB

Monthly prices are the same in all six cities. The smallest order is the shortest term that reaches the $40 minimum.

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
S3Intel Xeon E-2356G6 / 1264 GB DDR42x 1 TB NVMe2x 10 Gbps$80.38$80.38 (1 month)
S5Intel Xeon E-2276G6 / 12128 GB DDR42x 1 TB NVMe2x 10 Gbps$88.72$88.72 (1 month)
S7Intel Xeon E-2288G8 / 16128 GB DDR42x 1 TB NVMe2x 10 Gbps$100.72$100.72 (1 month)
S11Intel Core i9-14900K24 / 32128 GB DDR52x 2 TB NVMe2x 10 Gbps$149.39$149.39 (1 month)
D52x Intel Xeon Gold 5315Y16 / 32256 GB DDR42x 2 TB NVMe2x 25 Gbps$305.34$305.34 (1 month)
M12x Intel Xeon Gold 5315Y16 / 32512 GB DDR42x 4 TB NVMe2x 25 Gbps$414.70$414.70 (1 month)

Compare all 68 servers »

Keep Reading

Database servers

PostgreSQL, MongoDB, ClickHouse and other engines on machines picked by working set, write rate and core count.

Open

Two-drive mirror (RAID 1)

How RAID 1 keeps a full copy of your data on two drives, which machines have two drives and how to check it with mdadm.

Open

NVMe endurance (TBW and DWPD)

How much data a flash drive can absorb before it wears out, and how to watch wear on your own machine.

Open

High memory servers

512 GB to 1 TB of RAM, from $414.70 a month.

Open

FAQ

Quick Answers

Enough to keep the frequently read data in the buffer pool, plus about a quarter of the machine for everything else. A 128 GB box like S5 suits a hot data set of up to roughly 90 GB.

No. The image is installed on the first drive and RAID is not configured for you. You can build an mdadm or ZFS mirror yourself after delivery.

Yes. Both install from the default repositories of every Linux image we offer, and the sizing advice here applies to both.

There is no private network in the offer. Replicate over the public addresses with TLS and allow the database port only from the partner address.

The S1 at $53.32 a month gives 64 GB of RAM and NVMe, which is plenty for most small and mid-size applications.