SlideShare a Scribd company logo
Copyright © 2016 Oracle and/or its affiliates. All rights reserved. |
MySQL Multi Thread Slave
Performance Evaluation on OPC (OC3)
MySQL Global Business Unit
Shinya Sugiyama
Copyright © 2016 Oracle and/or its affiliates. All rights reserved.
Environment
2
Oracle Cloud MySQL Service
Master and Slave Instance: OC3 (1OCPU(2 vCPU), 7.5 GB Mem)
MySQL Version: MySQL5.7.16
Monitoring: MySQL Enterprise Monitor (Separate Instance)
Copyright © 2016 Oracle and/or its affiliates. All rights reserved.
Benchmark
Changed parameter:
slave_parallel_workers
Thread 1, 2, 4, 8, 16,32
Other Parameter is OPC MySQL Service Default (Only Server ID was Changed)
3
+------------------------+-------+
| Variable_name | Value |
+------------------------+-------+
| slave_parallel_workers | 8 |
+------------------------+-------+
/u01/bin/mysql/bin/mysqlslap --no-defaults --create-schema=SLAP --engine=InnoDB --auto-generate-sql
--auto-generate-sql-add-autoincrement --number-int-cols=3 --number-char-cols=5 --concurrency=10 --
auto-generate-sql-write-number=50000 --auto-generate-sql-execute-number=50000 --auto-generate-sql-
load-type=mixed -h localhost -u oracle
+-----------------------------+-------+
| Variable_name | Value |
+-----------------------------+-------+
| slave_preserve_commit_order | ON |
+-----------------------------+-------+
+---------------------+---------------+
| Variable_name | Value |
+---------------------+---------------+
| slave_parallel_type | LOGICAL_CLOCK |
+---------------------+---------------+
Copyright © 2016 Oracle and/or its affiliates. All rights reserved.
Benchmark1
4
[oracle@study01-mysql-1 ~]$ ./mysqlslap.sh
Benchmark
Running for engine InnoDB
Average number of seconds to run all queries: 185.845 seconds
Minimum number of seconds to run all queries: 185.845 seconds
Maximum number of seconds to run all queries: 185.845 seconds
Number of clients running queries: 10
Average number of queries per client: 50000
Study02: slave_parallel_workers = 1
Study03: slave_parallel_workers = 16
CPU USAGE:
Elapsed time is much longer in case of
parallel_workers 1 . CPU usage of
parallel_workers 16 is less than 1 even
total thread number is larger than 1.
QUERIES and DELAY
parallel_workers 16 is much faster than
parallel_workers 1, so Behind_master is
resolved soon.
Copyright © 2016 Oracle and/or its affiliates. All rights reserved.
Benchmark2
5
[oracle@study01-mysql-1 ~]$ ./mysqlslap.sh
Benchmark
Running for engine InnoDB
Average number of seconds to run all queries: 190.973 seconds
Minimum number of seconds to run all queries: 190.973 seconds
Maximum number of seconds to run all queries: 190.973 seconds
Number of clients running queries: 10
Average number of queries per client: 50000
Study02: slave_parallel_workers = 2
Study03: slave_parallel_workers = 16
CPU USAGE:
Elapsed time is longer in case of
parallel_workers 2 . CPU usage of
parallel_workers 16 is less than 2 even
total thread number is larger than 2.
QUERIES and DELAY
parallel_workers 16 is faster than
parallel_workers 2, so Behind_master is
resolved soon.
Copyright © 2016 Oracle and/or its affiliates. All rights reserved.
Benchmark3
6
[oracle@study01-mysql-1 ~]$ ./mysqlslap.sh
Benchmark
Running for engine InnoDB
Average number of seconds to run all queries: 186.468 seconds
Minimum number of seconds to run all queries: 186.468 seconds
Maximum number of seconds to run all queries: 186.468 seconds
Number of clients running queries: 10
Average number of queries per client: 50000
Study02: slave_parallel_workers = 4
Study03: slave_parallel_workers = 16
CPU USAGE:
Elapsed time is little longer in case of
parallel_workers 4 . CPU usage of
parallel_workers 16 is less than 4 even
total thread number is larger than 4.
QUERIES and DELAY
parallel_workers 16 is still faster than
parallel_workers 4, so Behind_master is
resolved little faster than 4.
Copyright © 2016 Oracle and/or its affiliates. All rights reserved.
Benchmark4
7
[oracle@study01-mysql-1 ~]$ ./mysqlslap.sh
Benchmark
Running for engine InnoDB
Average number of seconds to run all queries: 188.104 seconds
Minimum number of seconds to run all queries: 188.104 seconds
Maximum number of seconds to run all queries: 188.104 seconds
Number of clients running queries: 10
Average number of queries per client: 50000
Study02: slave_parallel_workers = 8
Study03: slave_parallel_workers = 16
CPU USAGE:
Elapsed time is almost same beteen
parallel_workers 8 and parallel_workers
16.
QUERIES and DELAY
There is not much difference between
parallel_workers 8 and parallel_workers
16, so Behind_master is almost same.
Copyright © 2016 Oracle and/or its affiliates. All rights reserved.
Trial (トライアル)
8
■ Oracle MySQL Cloud Service
English
https://cloud.oracle.com/mysql
日本語サイト
https://cloud.oracle.com/ja_JP/mysql
■ MySQL Enterprise Monitor Trial
http://edelivery.oracle.com/
https://www-jp.mysql.com/trials/
Multi thread slave_performance_on_opc

More Related Content

PDF
MySQL8.0 in COSCUP2017
PDF
MySQL High Availability with Group Replication
PDF
[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama
PDF
MySQL Group Replication
PPTX
MySQL InnoDB Cluster 미리보기 (remote cluster test)
PDF
Introduction to ClustrixDB
PDF
Intro ProxySQL
PDF
MySQL 5.7 GIS-Norvald H. Ryeng
MySQL8.0 in COSCUP2017
MySQL High Availability with Group Replication
[B34] MySQL最新ロードマップ – MySQL 5.7とその先へ by Ryusuke Kajiyama
MySQL Group Replication
MySQL InnoDB Cluster 미리보기 (remote cluster test)
Introduction to ClustrixDB
Intro ProxySQL
MySQL 5.7 GIS-Norvald H. Ryeng

What's hot (20)

PDF
MySQL Monitoring 101
PDF
Overview of Optimizer Features in 5.6 and 5.7-Manyi Lu
ODP
MySQL 5.7 - What's new and How to upgrade
PPTX
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
PDF
MySQL JSON Functions
KEY
Perf Tuning Short
PDF
MySQL Cluster Performance Tuning - 2013 MySQL User Conference
PDF
My sql 5.7-upcoming-changes-v2
PDF
MySQL as a Document Store
PDF
MySQL Audit using Percona audit plugin and ELK
PDF
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
PDF
Introduction to MariaDB MaxScale
PDF
MySQL Replication Update -- Zendcon 2016
PDF
MySQL Replication Basics -Ohio Linux Fest 2016
PDF
MySQL Group Replication - an Overview
PDF
MySQL Group Replication - Ready For Production? (2018-04)
PDF
Ohio Linux Fest -- MySQL's NoSQL
PDF
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
PDF
Greenplum versus redshift and actian vectorwise comparison
PDF
MySQL 5.5&5.6 new features summary
MySQL Monitoring 101
Overview of Optimizer Features in 5.6 and 5.7-Manyi Lu
MySQL 5.7 - What's new and How to upgrade
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
MySQL JSON Functions
Perf Tuning Short
MySQL Cluster Performance Tuning - 2013 MySQL User Conference
My sql 5.7-upcoming-changes-v2
MySQL as a Document Store
MySQL Audit using Percona audit plugin and ELK
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Introduction to MariaDB MaxScale
MySQL Replication Update -- Zendcon 2016
MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Group Replication - an Overview
MySQL Group Replication - Ready For Production? (2018-04)
Ohio Linux Fest -- MySQL's NoSQL
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
Greenplum versus redshift and actian vectorwise comparison
MySQL 5.5&5.6 new features summary
Ad

Similar to Multi thread slave_performance_on_opc (20)

PDF
MySQL Manchester TT - 5.7 Whats new
PDF
MySQL 5.7 - What's new, How to upgrade and Document Store
PDF
제3회난공불락 오픈소스 인프라세미나 - MySQL Performance
PDF
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
PDF
MySQL 5.7: What's New, Nov. 2015
PPTX
MySQL Tech Tour 2015 - 5.7 Whats new
PDF
MySQL Manchester TT - Performance Tuning
PDF
My sql 5.6&MySQL Cluster 7.3
PPTX
MySQL Performance Tuning 101
PPTX
Analyze database system using a 3 d method
PPTX
Cloud Performance Benchmarking
PDF
MySQL Performance Metrics that Matter
PDF
How should I monitor my idaa
PDF
Oracle 11g R2 RAC setup on rhel 5.0
PDF
MySQL 5.7 what's new
PDF
What's New in MySQL 5.7
PDF
DB12c: All You Need to Know About the Resource Manager
PDF
20161029 py con-mysq-lv3
PPTX
ProxySQL & PXC(Query routing and Failover Test)
PDF
Exploring mysql cluster 7.4
MySQL Manchester TT - 5.7 Whats new
MySQL 5.7 - What's new, How to upgrade and Document Store
제3회난공불락 오픈소스 인프라세미나 - MySQL Performance
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
MySQL 5.7: What's New, Nov. 2015
MySQL Tech Tour 2015 - 5.7 Whats new
MySQL Manchester TT - Performance Tuning
My sql 5.6&MySQL Cluster 7.3
MySQL Performance Tuning 101
Analyze database system using a 3 d method
Cloud Performance Benchmarking
MySQL Performance Metrics that Matter
How should I monitor my idaa
Oracle 11g R2 RAC setup on rhel 5.0
MySQL 5.7 what's new
What's New in MySQL 5.7
DB12c: All You Need to Know About the Resource Manager
20161029 py con-mysq-lv3
ProxySQL & PXC(Query routing and Failover Test)
Exploring mysql cluster 7.4
Ad

More from Shinya Sugiyama (20)

PDF
MySQLとPostgreSQLの基本的な実行プラン比較
PDF
MySQLとPostgreSQLの基本的なパラメータ比較
PDF
MySQLとPostgreSQLの基本的なレプリケーション設定比較
PDF
MySQLとPostgreSQLの基本的なバックアップ比較
PDF
MySQLとPostgreSQLにおける基本的なアカウント管理
PDF
Locondo 20190703@inno db_cluster
PDF
Locondo 20190215@ec tech_group
PDF
DB tech showcase_tokyo2018_LOCONDO
PDF
MySQL8.0 SYS スキーマ概要
PDF
MySQL SYSスキーマのご紹介
PDF
MySQL Partition Engine
PDF
Oracle Cloud MySQL Service
PDF
MySQL InnoDB Clusterによる高可用性構成(DB Tech Showcase 2017)
PDF
MySQLデータ暗号化と暗号鍵のローテーション
PDF
Power of SQL and NoSQL with MySQL5.7
PDF
db tech showcase2016 - MySQLドキュメントストア
PDF
MySQL57 Update@OSC Fukuoka 20151003
PDF
No sql with mysql cluster (MyNA・JPUG合同DB勉強会)
PDF
MySQL 5.7とレプリケーションにおける改良
PDF
MySQL 5.7 Technical Update (日本語)
MySQLとPostgreSQLの基本的な実行プラン比較
MySQLとPostgreSQLの基本的なパラメータ比較
MySQLとPostgreSQLの基本的なレプリケーション設定比較
MySQLとPostgreSQLの基本的なバックアップ比較
MySQLとPostgreSQLにおける基本的なアカウント管理
Locondo 20190703@inno db_cluster
Locondo 20190215@ec tech_group
DB tech showcase_tokyo2018_LOCONDO
MySQL8.0 SYS スキーマ概要
MySQL SYSスキーマのご紹介
MySQL Partition Engine
Oracle Cloud MySQL Service
MySQL InnoDB Clusterによる高可用性構成(DB Tech Showcase 2017)
MySQLデータ暗号化と暗号鍵のローテーション
Power of SQL and NoSQL with MySQL5.7
db tech showcase2016 - MySQLドキュメントストア
MySQL57 Update@OSC Fukuoka 20151003
No sql with mysql cluster (MyNA・JPUG合同DB勉強会)
MySQL 5.7とレプリケーションにおける改良
MySQL 5.7 Technical Update (日本語)

Recently uploaded (20)

PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
assetexplorer- product-overview - presentation
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Complete Guide to Website Development in Malaysia for SMEs
PPTX
history of c programming in notes for students .pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Website Design Services for Small Businesses.pdf
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
Designing Intelligence for the Shop Floor.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
17 Powerful Integrations Your Next-Gen MLM Software Needs
Design an Analysis of Algorithms II-SECS-1021-03
Odoo Companies in India – Driving Business Transformation.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
Why Generative AI is the Future of Content, Code & Creativity?
assetexplorer- product-overview - presentation
Monitoring Stack: Grafana, Loki & Promtail
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Complete Guide to Website Development in Malaysia for SMEs
history of c programming in notes for students .pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Reimagine Home Health with the Power of Agentic AI​
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
Wondershare Filmora 15 Crack With Activation Key [2025
Website Design Services for Small Businesses.pdf

Multi thread slave_performance_on_opc

  • 1. Copyright © 2016 Oracle and/or its affiliates. All rights reserved. | MySQL Multi Thread Slave Performance Evaluation on OPC (OC3) MySQL Global Business Unit Shinya Sugiyama
  • 2. Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Environment 2 Oracle Cloud MySQL Service Master and Slave Instance: OC3 (1OCPU(2 vCPU), 7.5 GB Mem) MySQL Version: MySQL5.7.16 Monitoring: MySQL Enterprise Monitor (Separate Instance)
  • 3. Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Benchmark Changed parameter: slave_parallel_workers Thread 1, 2, 4, 8, 16,32 Other Parameter is OPC MySQL Service Default (Only Server ID was Changed) 3 +------------------------+-------+ | Variable_name | Value | +------------------------+-------+ | slave_parallel_workers | 8 | +------------------------+-------+ /u01/bin/mysql/bin/mysqlslap --no-defaults --create-schema=SLAP --engine=InnoDB --auto-generate-sql --auto-generate-sql-add-autoincrement --number-int-cols=3 --number-char-cols=5 --concurrency=10 -- auto-generate-sql-write-number=50000 --auto-generate-sql-execute-number=50000 --auto-generate-sql- load-type=mixed -h localhost -u oracle +-----------------------------+-------+ | Variable_name | Value | +-----------------------------+-------+ | slave_preserve_commit_order | ON | +-----------------------------+-------+ +---------------------+---------------+ | Variable_name | Value | +---------------------+---------------+ | slave_parallel_type | LOGICAL_CLOCK | +---------------------+---------------+
  • 4. Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Benchmark1 4 [oracle@study01-mysql-1 ~]$ ./mysqlslap.sh Benchmark Running for engine InnoDB Average number of seconds to run all queries: 185.845 seconds Minimum number of seconds to run all queries: 185.845 seconds Maximum number of seconds to run all queries: 185.845 seconds Number of clients running queries: 10 Average number of queries per client: 50000 Study02: slave_parallel_workers = 1 Study03: slave_parallel_workers = 16 CPU USAGE: Elapsed time is much longer in case of parallel_workers 1 . CPU usage of parallel_workers 16 is less than 1 even total thread number is larger than 1. QUERIES and DELAY parallel_workers 16 is much faster than parallel_workers 1, so Behind_master is resolved soon.
  • 5. Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Benchmark2 5 [oracle@study01-mysql-1 ~]$ ./mysqlslap.sh Benchmark Running for engine InnoDB Average number of seconds to run all queries: 190.973 seconds Minimum number of seconds to run all queries: 190.973 seconds Maximum number of seconds to run all queries: 190.973 seconds Number of clients running queries: 10 Average number of queries per client: 50000 Study02: slave_parallel_workers = 2 Study03: slave_parallel_workers = 16 CPU USAGE: Elapsed time is longer in case of parallel_workers 2 . CPU usage of parallel_workers 16 is less than 2 even total thread number is larger than 2. QUERIES and DELAY parallel_workers 16 is faster than parallel_workers 2, so Behind_master is resolved soon.
  • 6. Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Benchmark3 6 [oracle@study01-mysql-1 ~]$ ./mysqlslap.sh Benchmark Running for engine InnoDB Average number of seconds to run all queries: 186.468 seconds Minimum number of seconds to run all queries: 186.468 seconds Maximum number of seconds to run all queries: 186.468 seconds Number of clients running queries: 10 Average number of queries per client: 50000 Study02: slave_parallel_workers = 4 Study03: slave_parallel_workers = 16 CPU USAGE: Elapsed time is little longer in case of parallel_workers 4 . CPU usage of parallel_workers 16 is less than 4 even total thread number is larger than 4. QUERIES and DELAY parallel_workers 16 is still faster than parallel_workers 4, so Behind_master is resolved little faster than 4.
  • 7. Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Benchmark4 7 [oracle@study01-mysql-1 ~]$ ./mysqlslap.sh Benchmark Running for engine InnoDB Average number of seconds to run all queries: 188.104 seconds Minimum number of seconds to run all queries: 188.104 seconds Maximum number of seconds to run all queries: 188.104 seconds Number of clients running queries: 10 Average number of queries per client: 50000 Study02: slave_parallel_workers = 8 Study03: slave_parallel_workers = 16 CPU USAGE: Elapsed time is almost same beteen parallel_workers 8 and parallel_workers 16. QUERIES and DELAY There is not much difference between parallel_workers 8 and parallel_workers 16, so Behind_master is almost same.
  • 8. Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Trial (トライアル) 8 ■ Oracle MySQL Cloud Service English https://cloud.oracle.com/mysql 日本語サイト https://cloud.oracle.com/ja_JP/mysql ■ MySQL Enterprise Monitor Trial http://edelivery.oracle.com/ https://www-jp.mysql.com/trials/