NEW
BYOC PROMOTION

Best MySQL™ DigitalOcean Performance – ScaleGrid vs. DigitalOcean Managed Databases

5 min read
Best MySQL™ DigitalOcean Performance – ScaleGrid vs. DigitalOcean Managed Databases

SHARE THIS ARTICLE

MySQL is the all-time number-one open-source database in the world and a staple in the RDBMS space. DigitalOcean is quickly building its reputation as the developers’ cloud by providing an affordable, flexible, and easy-to-use cloud platform for developers to work with. MySQL on DigitalOcean is a natural fit, but what’s the best way to deploy your cloud database? In this post, we are going to compare the top two providers, DigitalOcean Managed Databases for MySQL vs. ScaleGrid MySQL hosting on DigitalOcean.

MySQL DigitalOcean Performance Benchmark

In this benchmark, we compare equivalent plan sizes between ScaleGrid MySQL on DigitalOcean and DigitalOcean Managed Databases for MySQL. We are going to use a common, popular plan size using the below configurations for this performance benchmark:

Comparison Overview

ScaleGridDigitalOcean
Instance TypeMedium: 4 vCPUsMedium: 4 vCPUs
MySQL Version8.0.208.0.20
RAM8GB8GB
SSD140GB115GB
Deployment TypeStandaloneStandalone
RegionSF03SF03
SupportIncludedBusiness-level support included with account sizes over $500/month
Monthly Price$120$120

As you can see above, ScaleGrid and DigitalOcean offer the same plan configurations across this plan size, apart from SSD where ScaleGrid provides over 20% more storage for the same price.

To ensure the most accurate results in our performance tests, we run the benchmark four times for each comparison to find the average performance across throughput and latency over read-intensive workloads, balanced workloads, and write-intensive workloads.

Throughput

In this benchmark, we measure MySQL throughput in terms of queries per second (QPS) to measure our query efficiency. To quickly summarize the results, we display read-intensive, write-intensive, and balanced workload averages below for 150 threads for ScaleGrid vs. DigitalOcean MySQL:

ScaleGrid MySQL vs DigitalOcean Managed Databases - Throughput Performance Graph

For the common 150-thread comparison, ScaleGrid averages almost 40% higher throughput over DigitalOcean for MySQL, with up to 46% higher throughput in write-intensive workloads.

Read-Intensive Throughput Benchmark

Client ThreadsScaleGridDigitalOceanScaleGrid Improvement
2510,5767,26845.5%
5012,3748,59843.9%
10012,9849,21540.9%
15012,8459,59033.9%
17513,2479,72036.3%
20012,9169,67733.5%

For read-intensive workloads, ScaleGrid for MySQL averages 39% higher throughput over DigitalOcean Managed Databases across all thread counts.

Balanced Workload Throughput Benchmark

Client ThreadsScaleGridDigitalOceanScaleGrid Improvement
257,9156,41523.4%
509,7257,61327.7%
10011,1068,51230.5%
15011,9368,55239.6%
17512,2878,44745.5%
20012,5078,57945.8%

ScaleGrid for MySQL averages 35.4% higher throughput for balanced workloads over DigitalOcean Managed Databases across all thread counts. The greatest performance improvement can be seen in the higher thread count rows of 175 and 200 threads where ScaleGrid achieves over 45% higher throughput.

Write-Intensive Throughput Benchmark

Client ThreadsScaleGridDigitalOceanScaleGrid Improvement
256,5955,35323.2%
507,7816,38421.9%
1009,2687,13229.9%
15010,4097,12446.1%
17510,3387,07546.1%
20010,5037,17646.4%

For write-intensive workloads, ScaleGrid for MySQL averages 35.6% higher throughput over DigitalOcean Managed Databases across all thread counts. As you can see from the above table, ScaleGrid achieves a 46% higher throughput in thread counts over 150 threads over DigitalOcean.

Latency

Now that we’ve compared throughput performance, let’s look at ScaleGrid vs. DigitalOcean latency for MySQL. We measure latency in ms 95th Percentile latency and again compare across read-intensive, write-intensive, and balanced workloads.

ScaleGrid MySQL vs DigitalOcean Managed Databases - Latency Performance Graph

In the above chart, we compare ScaleGrid vs. DigitalOcean MySQL latency across the common workloads for 150 threads and see that on average, ScaleGrid achieves almost 30% lower latency than DigitalOcean for the same deployment configurations.

Now let’s take a look at the latency across different thread counts for read-intensive, balanced workload, and write-intensive scenarios.

Read-Intensive Latency Benchmark

Client ThreadsScaleGridDigitalOceanScaleGrid Improvement
256192-33.8%
50112152-26.4%
100213279-23.6%
150336419-19.9%
175388496-21.8%
200456594-23.2%

On average, ScaleGrid for MySQL achieved a 24.8% lower latency over DigitalOcean Managed Databases from read-intensive scenarios across all thread counts.

Balanced Workload Latency Benchmark

Client ThreadsScaleGridDigitalOceanScaleGrid Improvement
253953-26.3%
506787-23.6%
100117158-25.7%
150170246-30.8%
175197300-34.3%
200222342-35.1%

On average, ScaleGrid for MySQL achieved a 29.3% lower latency over DigitalOcean Managed Databases from balanced workload scenarios across all thread counts. Most notably, the 175 and 200 thread scenarios latency were reduced by over a third at ScaleGrid.

If you’re also deploying PostgreSQL, and interested to see how these two providers compare across throughput and latency, check out our Comparing PostgreSQL DigitalOcean Performance & Pricing – ScaleGrid vs. DigitalOcean Managed Databases post

Write-Intensive Latency Benchmark

Client ThreadsScaleGridDigitalOceanScaleGrid Improvement
254555-17.5%
507493-20.9%
100119166-28.5%
150164261-37.4%
175192311-38.1%
200219359-38.9%

On average, ScaleGrid for MySQL achieved a 29.3% lower latency over DigitalOcean Managed Databases from write-intensive workloads across all thread counts. In particular, scenarios with 150 threads or higher achieved over 37% lower latency at ScaleGrid than DigitalOcean.

MySQL Benchmark Setup

Here is a breakdown of the benchmark configurations we used to compare MySQL deployments at ScaleGrid and DigitalOcean.

Sysbench Configuration

ConfigurationDetails
ToolSysbench version 1.0.20
HostMedium (4 vCPUs, 8GB RAM) SF03 region
# Tables100
# Rows per table2,000,000
# Threads25-200
Random numbers distributionUniform

We used two DigitalOcean Droplets to benchmark each instance simultaneously.

MySQL Parameters

ConfigurationScaleGridDigitalOcean
MySQL Version8.0.208.0.20
innodb_buffer_pool_size5GB3.6GB
innodb_log_file_size12.2
Innodb_io_capacity3,000200
innodb_io_capacity_max6,0002000
binlog_group_commit_sync_delay00

DigitalOcean does not allow you to customize your MySQL configurations, which is why they are limited to the default values displayed here. At ScaleGrid, you can customize your MySQL configurations to optimize your deployment for your unique use case.

Read-Intensive Workload

80% reads and 20% writes, with 12 reads and 3 writes per transaction.

Balanced Workload

50% reads and 50% writes, running 3 selects, 1 insert, 1 update and 1 delete as part of each transaction.

Write-Intensive Workload

20% reads and 80% writes, with 4 writes and 1 read for every transaction.

MySQL on DigitalOcean Pricing

Pricing is of course one of the most significant considerations when it comes to making an infrastructure investment. Fortunately, just as we outlined above, ScaleGrid pricing is the same as DigitalOcean’s for MySQL when it comes to RAM and vCPUs across standalone, 2-node, and 3-node deployments:

ScaleGrid MySQL vs DigitalOcean Managed Databases - Pricing Chart

While pricing is the same, ScaleGrid also offers, on average, 30% more storage for the same price as DigitalOcean, and as we discovered above also provides significantly higher performance. Both providers also offer support for PostgreSQL and Redis at the same price, and ScaleGrid is the only DBaaS to offer support for the MongoDB® database on DigitalOcean.

Reduce your Database Hosting Costs

ScaleGrid also offers a Nano plan size with 1GB of RAM, 1 core, and 18GB of storage for only $10/month. This is a great affordable plan for developer projects. Additionally, ScaleGrid offers a Startup Program where early-stage companies can get 50% off their MySQL hosting on DigitalOcean for up to 12 months.

Features for MySQL DigitalOcean

Both ScaleGrid and DigitalOcean offer the basic DBaaS features, like scaling, restores, and alerts that we’ve come to expect from a managed database provider. But, as any DBA knows, there’s much more to managing a deployment than the basics. Let’s take a look at some of the advanced MySQL features offered between ScaleGrid and DigitalOcean:

ScaleGrid MySQLDigitalOcean MySQL
Supported MySQL Versions5.6.x, 5.7.x, 8.0.x8.0.x
MySQL Super User AccessYesNo
Replication OptionsSemisynchronous & AsynchronousAsynchronous
MySQL Configuration Management & TuningYesNo
On-Demand Slow Query AnalysisYesNo
24/7 Support OptionsYesBusiness support is only available for accounts over $500/month

These are just a few of the advanced MySQL management features. To compare the full list, check out the ScaleGrid vs. DigitalOcean MySQL page.

To learn more about ScaleGrid, please visit ScaleGrid.io. Connect with ScaleGrid on LinkedIn, X, Facebook, and YouTube.

Table of Contents

Stay Ahead with ScaleGrid Insights

Dive into the world of database management with our monthly newsletter. Get expert tips, in-depth articles, and the latest news, directly to your inbox.

Related Posts

Beyond RDS - Managed Databases on Infrastructure You Control

Beyond RDS: Managed Databases on Infrastructure You Control

Cost and geography are the main reasons customers bring cross-cloud database questions to us at ScaleGrid. They need a recovery...

The Hidden Costs of Self-Hosting RabbitMQ

The Hidden Costs of Self-Hosting RabbitMQ (vs. Using RabbitMQ-as-a-Service)

Executive Summary RabbitMQ is a proven message broker for reliable, event-driven applications, but operating it in production requires sustained engineering...

Blog feature image: Best PostgreSQL GUI Tools

Best PostgreSQL GUI Tools: Compare Features, Pricing & Use Cases

Whether you’re writing complex SQL queries, troubleshooting slow database performance, or managing multiple PostgreSQL instances, the right graphical user interface...