With the surge in the number of Database-as-a-Service providers in the market today, many DBaaS providers claim to offer competitive database performance for your applications. The only true way of evaluating the performance of the database is by running performance benchmarks for the databases running on the cloud. In this article, we run performance benchmarks to evaluate, analyze, and compare the performance of MySQL database engines running on the AWS cloud for Tessell. We have used the Sysbench benchmarking tool for the benchmarking process.
Before starting the benchmarking process, you need to get your environment ready.
Prepare your environment
To prepare the environment for the benchmarking process, perform the following high-level tasks:
- Provision a Tessell RDS MySQL instance to benchmark the performance testing. We are using the Tessell shape “tesl_8h_a” on the AWS cloud. This shape comes with 8 vCPUs and 64 GB RAM. While provisioning the instance, note down the username and password to connect to your database instance.
- Launch or create an Amazon EC2 instance to install the Sysbench benchmarking tool, and set up the load. It is recommended that you create the instance in the same Virtual Private Cloud (VPC) as your Tessell RDS instance to keep the latency minimum.
- Set up the security groups for the client and server machines in a way that the client machine can connect to the server machine over the database port TCP:3306. For more information, see Default security groups for your VPC.
The following diagram shows the recommended environment for running the benchmarking process. The VPC located in the AWS cloud contains the Tessell RDS MySQL instance and the Sysbench client installed in the Amazon EC2 instance.
Provision the Sysbench client machine
Firstly, provision the client Linux machine to install the Sysbench benchmarking tool. For our test, we provisioned the Amazon Linux instance with the following configuration details:
Download Sysbench and configure MySQL
Once Sysbench is installed we need to configure following MySQL server items:
Login to MySQL server via any client and follow below steps.
Sysbench can be downloaded and configured from the repository link below for respective OS.
- Database Name to run the Test: CREATE DATABASE sysbench
Run the benchmark
1. Load the instance with desired database size
• Below Settings will load 100 Million Rows with 26 GB Data. For every 100 Million Rows it is 26 GB Data. Load per the benchmark requirements. Max Limits - Table size: 999 Million
2. Run Write-Only Load Test and capture results.
• Adjust the no of threads, table size, time as per the test requirements. Max Limits - Threads: 1000, Time: 9999 seconds, Table_size: 999 Million, report-interval: This option outputs the ongoing test runs every n seconds defined.
3. Run Read-Only Load Test and capture results.
4. Run Read-Write Load Test and capture results.
Results
When the performance test completes, We get the following TPCC based output.
- QPS - Questions/Query Per Second
- TPS - Transactions Per Second
Tessell MySQL Instance High Performance Shape - 8 vCPUs, 64 GB Memory
1. Read Only Load
2. Read Write Load
RDS for MySQL - 8 vCPUs, 64 GB Memory
1. Read Only Load
2. Read Write Load
Conclusion
It is, therefore, safe to conclude that Tessell RDS produced 321% higher IOPS as compared to AWS RDS for the identical Sysbench workload at the same cost. The image below depicts the visual comparison of the performance benchmark results that Tessell RDS and AWS RDS produce: