SlideShare une entreprise Scribd logo
1  sur  28
Télécharger pour lire hors ligne
© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona1
Laurynas Biveinis
Percona Server 8.0
Technical Director @ Percona
Percona Live Europe 2018
2018-11-06
© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona2
First of all, what is Percona Server?
“…a free, fully compatible, enhanced and open source drop-in replacement
for any MySQL database…”
© 2018 Percona3
Percona Server 5.7 user:
▪Percona Server 8.0

= Percona Server 5.7

+ MySQL 8.0
Two Ways to Define Percona Server 8.0
New / MySQL 8.0 user:
▪Percona Server 8.0 

= MySQL 8.0

+ enhancements
© 2018 Percona4
For a Percona Server 5.7 user:
▪Percona Server 8.0

= Percona Server 5.7

+ MySQL 8.0
▪In other words, “what has changed in Percona additions since Percona
Server 5.7?”
We will focus on the latter definition
© 2018 Percona
What has changed since Percona Server 5.7?
▪Features dropped
▪Features adjusted to work with MySQL 8.0 features
Does the above list seem to miss anything?
▪“Features added?”
5
© 2018 Percona
MySQL GA features over time
6
Generallyavailablefeatures
MySQL 5.5 MySQL 5.6 MySQL 5.7 MySQL 8.0
© 2018 Percona
Percona Server GA additions over time
7
GenerallyavailablePerconafeatures
PS 5.5 PS 5.6 PS 5.7 PS 8.0
© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona8
Deprecated feature removal
They had it coming
© 2018 Percona
Scalability metrics plugin
Subtly broken architecture that is not easy to fix
No users we are aware of
9
© 2018 Percona
INFORMATION_SCHEMA.THREAD_STATISTICS:
CONCURRENT_CONNECTIONS column
How to define it for thread_statistics in the first place?
The value was zero for years and nobody noticed (or
everybody did and were OK with it)
10
© 2018 Percona
innodb_kill_idle_transactions variable
▪Only the variable, the feature is not deprecated
▪Accessible through kill_idle_transactions variable
▪Drop the innodb_ prefix to upgrade (on 5.7 already!)
▪A remnant of generalisation of the feature from InnoDB to all SEs
11
© 2018 Percona
Query Cache enhancements
▪log_slow_filter=qc_miss
▪QC_hit in the slow query log extensions
▪query_cache_strip_comments system variable
▪“Waiting for query cache mutex” thread state in the processlist
12
© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona13
Features removed due to upstream
What is the upgrade path?
© 2018 Percona
Query Response Time plugin
Use Performance Schema execution time histograms
▪Before:
• SELECT * from INFORMATION_SCHEMA.QUERY_RESPONSE_TIME
▪After:
• SELECT COUNT(*) FROM
performance_schema.events_statements_histogram_global GROUP BY
COUNT_BUCKET
• … many other possibilities
14
© 2018 Percona
LOCK BINLOG FOR BACKUP
Query performance_schema.log_status instead
▪Before:
• Use Percona XtraBackup
▪After:
• Use Percona XtraBackup, an 8.0-compatible version (8.0-3-rc1 as of today)
15
© 2018 Percona
innodb_flush_method = ALL_O_DIRECT
Set it to something else, O_DIRECT most likely
▪Before:
• Use innodb_flush_method=ALL_O_DIRECT to avoid having redo logs in the
kernel FS cache
▪After:
• Oracle MySQL 8.0 redo logging is dependent on having logs in the FS cache
16
© 2018 Percona
Memory summary in SHOW ENGINE INNODB
STATUS
Query
performance_schema.memory_summary_global_by_event_name
instead
▪ Before:
Internal hash tables (constant factor + variable factor)
Adaptive hash index 2266736 (2213368 + 53368)
Page hash 139112 (buffer pool 0 only)
Dictionary cache 729463 (554768 + 174695)
File system 824800 (812272 + 12528)
Lock system 333248 (332872 + 376)
Recovery system 0 (0 + 0)
Dictionary memory allocated 174695
▪ After:
• Query PFS memory summary tables
• Beware of MySQL bug 90561, fixed in 8.0.13
17
© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona18
Features removed due to lack of uptake
Let us know if you are a user!
© 2018 Percona
Features removed due to lack of uptake
▪INFORMATION_SCHEMA.XTRADB_RSEG
▪Expanded program option modifiers
▪Utility user
▪pseudo_server_id
▪CSV_MODE
▪max_slowlog_files and max_slowlog_size
▪innodb_show_verbose_locks
19
© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona20
Changed features
What is the upgrade path?
© 2018 Percona
No more legacy partitioning in 8.0
Percona Server 8.0: native partitioning for MyRocks and
TokuDB
Partitioned tables must be upgraded before the upgrade
to 8.0
Hence, Percona Server 5.7 also features native
partitioning
21
© 2018 Percona
The biggest upstream game-changer: new DD
Atomic DDL, no more FRM files, 1 billion tables…
TokuDB ROW_FORMAT clause removed, use
tokudb_row_format system variable
CREATE COMPRESSION DICTIONARY json_keys (‘name’,
‘city’, … ) reimplemented in the new DD
Expanded fast index creation will be soon
22
© 2018 Percona
SET STATEMENT FOR →/* SET_VAR */
Percona Server 5.7 (and MariaDB) per-statement variable
assignments:
▪SET STATEMENT sort_buffer_size=100000 FOR SELECT name …
MySQL 8.0 variable-setting optimizer hint
▪SELECT /*+ SET_VAR(sort_buffer_size=100000)*/ name …
Percona Server has extended SET_VAR to cover the
majority of SET STATEMENT use cases
23
© 2018 Percona
“userstat” duration columns now floating-point
INFORMATION_SCHEMA.CLIENT_STATISTICS,
THREAD_STATISTICS, USER_STATISTICS:
CONNECTED_TIME, BUSY_TIME, CPU_TIME
▪Percona Server 5.7: integers, 1s resolution,
▪Percona Server 8.0: double precision
24
© 2018 Percona
SHOW [EFFECTIVE] GRANTS
MySQL 5.7 SHOW GRANTS
▪ Shows assigned but not effective grants
Percona Server 5.7 SHOW GRANTS
▪ The above was considered a bug
▪ Shows effective but not assigned grants
Percona Server 8.0 SHOW [EFFECTIVE] GRANTS
▪ The above was considered a bug
▪ SHOW GRANTS: shows assigned grants
▪ SHOW EFFECTIVE GRANTS: shows effective grants
25
© 2018 Percona
Binlog space management
Percona Server 5.7: max_binlog_files
▪Manage max space in combination with max_binlog_size
▪Was not reliable due to extra rotations
Percona Server 8.0: binlog_space_limit
▪binlog_space_limit=10G - works alone, easier to manage
26
© 2018 Percona
Percona Server 8.0: RC1 as of today
RC1 released last week
We are still exploring 8.0 performance
Questions?
27
!28
Thank You Sponsors!!

Contenu connexe

Tendances

Rapid Upgrades With Pg_Upgrade, Bruce Momjian
Rapid Upgrades With Pg_Upgrade, Bruce MomjianRapid Upgrades With Pg_Upgrade, Bruce Momjian
Rapid Upgrades With Pg_Upgrade, Bruce Momjian
Fuenteovejuna
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
Insight Technology, Inc.
 

Tendances (20)

Fuel 9.0
Fuel 9.0 Fuel 9.0
Fuel 9.0
 
WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation
 
Presentation oracle net services
Presentation    oracle net servicesPresentation    oracle net services
Presentation oracle net services
 
Sonas spe csfs-publication-feb-22-2011
Sonas spe csfs-publication-feb-22-2011Sonas spe csfs-publication-feb-22-2011
Sonas spe csfs-publication-feb-22-2011
 
SAP HANA Distributed System Scaleout and HA
SAP HANA Distributed System Scaleout and HASAP HANA Distributed System Scaleout and HA
SAP HANA Distributed System Scaleout and HA
 
Oracle E-Business Suite R12.2.6 on Database 12c: Install, Patch and Administer
Oracle E-Business Suite R12.2.6 on Database 12c: Install, Patch and AdministerOracle E-Business Suite R12.2.6 on Database 12c: Install, Patch and Administer
Oracle E-Business Suite R12.2.6 on Database 12c: Install, Patch and Administer
 
SAP HANA System Replication - Setup, Operations and HANA Monitoring
SAP HANA System Replication - Setup, Operations and HANA MonitoringSAP HANA System Replication - Setup, Operations and HANA Monitoring
SAP HANA System Replication - Setup, Operations and HANA Monitoring
 
Rapid Upgrades With Pg_Upgrade, Bruce Momjian
Rapid Upgrades With Pg_Upgrade, Bruce MomjianRapid Upgrades With Pg_Upgrade, Bruce Momjian
Rapid Upgrades With Pg_Upgrade, Bruce Momjian
 
RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA RMAN – The Pocket Knife of a DBA
RMAN – The Pocket Knife of a DBA
 
Asa 8.3 upgrade what you need to know
Asa 8.3 upgrade  what you need to knowAsa 8.3 upgrade  what you need to know
Asa 8.3 upgrade what you need to know
 
SAP HANA 2 – Dynamic Tiering Overview including HANA Monitoring
SAP HANA 2 – Dynamic Tiering Overview including HANA MonitoringSAP HANA 2 – Dynamic Tiering Overview including HANA Monitoring
SAP HANA 2 – Dynamic Tiering Overview including HANA Monitoring
 
LVOUG meetup #4 - Case Study 10g to 11g
LVOUG meetup #4 - Case Study 10g to 11gLVOUG meetup #4 - Case Study 10g to 11g
LVOUG meetup #4 - Case Study 10g to 11g
 
Minor Project (Rohit Sharma)
Minor Project (Rohit Sharma)Minor Project (Rohit Sharma)
Minor Project (Rohit Sharma)
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
 
SAP HANA SPS12 Exploring New Features
SAP HANA SPS12 Exploring New FeaturesSAP HANA SPS12 Exploring New Features
SAP HANA SPS12 Exploring New Features
 
Sprint 157
Sprint 157Sprint 157
Sprint 157
 
Oracle Cloud Compute - EBS 12.2.5 Vision Demo - Technical Discussion
Oracle Cloud Compute - EBS 12.2.5 Vision Demo - Technical DiscussionOracle Cloud Compute - EBS 12.2.5 Vision Demo - Technical Discussion
Oracle Cloud Compute - EBS 12.2.5 Vision Demo - Technical Discussion
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
 
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
Oracle Multitenant Database 2.0 - Improvements in Oracle Database 12c Release 2
 

Similaire à Percona Server 8.0

PaaS on Openstack
PaaS on OpenstackPaaS on Openstack
PaaS on Openstack
Open Stack
 

Similaire à Percona Server 8.0 (20)

MySQL Ecosystem in 2018
MySQL Ecosystem in 2018MySQL Ecosystem in 2018
MySQL Ecosystem in 2018
 
How to upgrade like a boss to my sql 8.0?
How to upgrade like a boss to my sql 8.0?How to upgrade like a boss to my sql 8.0?
How to upgrade like a boss to my sql 8.0?
 
How to upgrade like a boss to MySQL 8.0 - PLE19
How to upgrade like a boss to MySQL 8.0 -  PLE19How to upgrade like a boss to MySQL 8.0 -  PLE19
How to upgrade like a boss to MySQL 8.0 - PLE19
 
Percona Server for MySQL 8.0 @ Percona Live 2019
Percona Server for MySQL 8.0 @ Percona Live 2019Percona Server for MySQL 8.0 @ Percona Live 2019
Percona Server for MySQL 8.0 @ Percona Live 2019
 
Percona Server 5.6: Enterprise-Grade MySQL / PLMCE 2014
Percona Server 5.6: Enterprise-Grade MySQL / PLMCE 2014Percona Server 5.6: Enterprise-Grade MySQL / PLMCE 2014
Percona Server 5.6: Enterprise-Grade MySQL / PLMCE 2014
 
stackconf 2020 | The Path to OpenSource DBaaS with Kubernetes by Peter Zaitsev
stackconf 2020 | The Path to OpenSource DBaaS with Kubernetes by Peter Zaitsevstackconf 2020 | The Path to OpenSource DBaaS with Kubernetes by Peter Zaitsev
stackconf 2020 | The Path to OpenSource DBaaS with Kubernetes by Peter Zaitsev
 
Proxy SQL 2.0 with PXC
Proxy SQL 2.0 with PXCProxy SQL 2.0 with PXC
Proxy SQL 2.0 with PXC
 
[db tech showcase OSS 2017] A11: How Percona is Different, and How We Support...
[db tech showcase OSS 2017] A11: How Percona is Different, and How We Support...[db tech showcase OSS 2017] A11: How Percona is Different, and How We Support...
[db tech showcase OSS 2017] A11: How Percona is Different, and How We Support...
 
Mysql ecosystem in 2019
Mysql ecosystem in 2019Mysql ecosystem in 2019
Mysql ecosystem in 2019
 
Percona University - ProxySQL para MySQL
Percona University - ProxySQL para MySQLPercona University - ProxySQL para MySQL
Percona University - ProxySQL para MySQL
 
Percona Server 8.0
Percona Server 8.0Percona Server 8.0
Percona Server 8.0
 
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
 
Analyzing MySQL Logs with ClickHouse, by Peter Zaitsev
Analyzing MySQL Logs with ClickHouse, by Peter ZaitsevAnalyzing MySQL Logs with ClickHouse, by Peter Zaitsev
Analyzing MySQL Logs with ClickHouse, by Peter Zaitsev
 
Pivotal Cloud Foundry 2.6: A First Look
Pivotal Cloud Foundry 2.6: A First LookPivotal Cloud Foundry 2.6: A First Look
Pivotal Cloud Foundry 2.6: A First Look
 
PaaS on Openstack
PaaS on OpenstackPaaS on Openstack
PaaS on Openstack
 
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
 
Kea DHCP – the new open source DHCP server from ISC
Kea DHCP – the new open source DHCP server from ISCKea DHCP – the new open source DHCP server from ISC
Kea DHCP – the new open source DHCP server from ISC
 
P6 upgrade paths - Oracle Primavera P6 Collaborate 14
P6 upgrade paths  - Oracle Primavera P6 Collaborate 14P6 upgrade paths  - Oracle Primavera P6 Collaborate 14
P6 upgrade paths - Oracle Primavera P6 Collaborate 14
 
B1 od administratorguide
B1 od administratorguideB1 od administratorguide
B1 od administratorguide
 
Peter Zaitsev "18 ways to fix MySQL bottlenecks"
Peter Zaitsev "18 ways to fix MySQL bottlenecks"Peter Zaitsev "18 ways to fix MySQL bottlenecks"
Peter Zaitsev "18 ways to fix MySQL bottlenecks"
 

Plus de Laurynas Biveinis

Tracking Page Changes for Your Database and Bitmap Backups
Tracking Page Changes for Your Database and Bitmap BackupsTracking Page Changes for Your Database and Bitmap Backups
Tracking Page Changes for Your Database and Bitmap Backups
Laurynas Biveinis
 

Plus de Laurynas Biveinis (6)

Percona Server 5.7: Key Performance Algorithms
Percona Server 5.7: Key Performance AlgorithmsPercona Server 5.7: Key Performance Algorithms
Percona Server 5.7: Key Performance Algorithms
 
XtraDB 5.7: key performance algorithms
XtraDB 5.7: key performance algorithmsXtraDB 5.7: key performance algorithms
XtraDB 5.7: key performance algorithms
 
Developing a database server: software engineer's view
Developing a database server: software engineer's viewDeveloping a database server: software engineer's view
Developing a database server: software engineer's view
 
XtraDB 5.6 and 5.7: Key Performance Algorithms
XtraDB 5.6 and 5.7: Key Performance AlgorithmsXtraDB 5.6 and 5.7: Key Performance Algorithms
XtraDB 5.6 and 5.7: Key Performance Algorithms
 
Fast Incremental Backups with Percona Server and Percona XtraBackup / PLMCE 2014
Fast Incremental Backups with Percona Server and Percona XtraBackup / PLMCE 2014Fast Incremental Backups with Percona Server and Percona XtraBackup / PLMCE 2014
Fast Incremental Backups with Percona Server and Percona XtraBackup / PLMCE 2014
 
Tracking Page Changes for Your Database and Bitmap Backups
Tracking Page Changes for Your Database and Bitmap BackupsTracking Page Changes for Your Database and Bitmap Backups
Tracking Page Changes for Your Database and Bitmap Backups
 

Dernier

CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Dernier (20)

Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 

Percona Server 8.0

  • 1. © 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona1 Laurynas Biveinis Percona Server 8.0 Technical Director @ Percona Percona Live Europe 2018 2018-11-06
  • 2. © 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona2 First of all, what is Percona Server? “…a free, fully compatible, enhanced and open source drop-in replacement for any MySQL database…”
  • 3. © 2018 Percona3 Percona Server 5.7 user: ▪Percona Server 8.0
 = Percona Server 5.7
 + MySQL 8.0 Two Ways to Define Percona Server 8.0 New / MySQL 8.0 user: ▪Percona Server 8.0 
 = MySQL 8.0
 + enhancements
  • 4. © 2018 Percona4 For a Percona Server 5.7 user: ▪Percona Server 8.0
 = Percona Server 5.7
 + MySQL 8.0 ▪In other words, “what has changed in Percona additions since Percona Server 5.7?” We will focus on the latter definition
  • 5. © 2018 Percona What has changed since Percona Server 5.7? ▪Features dropped ▪Features adjusted to work with MySQL 8.0 features Does the above list seem to miss anything? ▪“Features added?” 5
  • 6. © 2018 Percona MySQL GA features over time 6 Generallyavailablefeatures MySQL 5.5 MySQL 5.6 MySQL 5.7 MySQL 8.0
  • 7. © 2018 Percona Percona Server GA additions over time 7 GenerallyavailablePerconafeatures PS 5.5 PS 5.6 PS 5.7 PS 8.0
  • 8. © 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona8 Deprecated feature removal They had it coming
  • 9. © 2018 Percona Scalability metrics plugin Subtly broken architecture that is not easy to fix No users we are aware of 9
  • 10. © 2018 Percona INFORMATION_SCHEMA.THREAD_STATISTICS: CONCURRENT_CONNECTIONS column How to define it for thread_statistics in the first place? The value was zero for years and nobody noticed (or everybody did and were OK with it) 10
  • 11. © 2018 Percona innodb_kill_idle_transactions variable ▪Only the variable, the feature is not deprecated ▪Accessible through kill_idle_transactions variable ▪Drop the innodb_ prefix to upgrade (on 5.7 already!) ▪A remnant of generalisation of the feature from InnoDB to all SEs 11
  • 12. © 2018 Percona Query Cache enhancements ▪log_slow_filter=qc_miss ▪QC_hit in the slow query log extensions ▪query_cache_strip_comments system variable ▪“Waiting for query cache mutex” thread state in the processlist 12
  • 13. © 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona13 Features removed due to upstream What is the upgrade path?
  • 14. © 2018 Percona Query Response Time plugin Use Performance Schema execution time histograms ▪Before: • SELECT * from INFORMATION_SCHEMA.QUERY_RESPONSE_TIME ▪After: • SELECT COUNT(*) FROM performance_schema.events_statements_histogram_global GROUP BY COUNT_BUCKET • … many other possibilities 14
  • 15. © 2018 Percona LOCK BINLOG FOR BACKUP Query performance_schema.log_status instead ▪Before: • Use Percona XtraBackup ▪After: • Use Percona XtraBackup, an 8.0-compatible version (8.0-3-rc1 as of today) 15
  • 16. © 2018 Percona innodb_flush_method = ALL_O_DIRECT Set it to something else, O_DIRECT most likely ▪Before: • Use innodb_flush_method=ALL_O_DIRECT to avoid having redo logs in the kernel FS cache ▪After: • Oracle MySQL 8.0 redo logging is dependent on having logs in the FS cache 16
  • 17. © 2018 Percona Memory summary in SHOW ENGINE INNODB STATUS Query performance_schema.memory_summary_global_by_event_name instead ▪ Before: Internal hash tables (constant factor + variable factor) Adaptive hash index 2266736 (2213368 + 53368) Page hash 139112 (buffer pool 0 only) Dictionary cache 729463 (554768 + 174695) File system 824800 (812272 + 12528) Lock system 333248 (332872 + 376) Recovery system 0 (0 + 0) Dictionary memory allocated 174695 ▪ After: • Query PFS memory summary tables • Beware of MySQL bug 90561, fixed in 8.0.13 17
  • 18. © 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona18 Features removed due to lack of uptake Let us know if you are a user!
  • 19. © 2018 Percona Features removed due to lack of uptake ▪INFORMATION_SCHEMA.XTRADB_RSEG ▪Expanded program option modifiers ▪Utility user ▪pseudo_server_id ▪CSV_MODE ▪max_slowlog_files and max_slowlog_size ▪innodb_show_verbose_locks 19
  • 20. © 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona© 2016 Percona20 Changed features What is the upgrade path?
  • 21. © 2018 Percona No more legacy partitioning in 8.0 Percona Server 8.0: native partitioning for MyRocks and TokuDB Partitioned tables must be upgraded before the upgrade to 8.0 Hence, Percona Server 5.7 also features native partitioning 21
  • 22. © 2018 Percona The biggest upstream game-changer: new DD Atomic DDL, no more FRM files, 1 billion tables… TokuDB ROW_FORMAT clause removed, use tokudb_row_format system variable CREATE COMPRESSION DICTIONARY json_keys (‘name’, ‘city’, … ) reimplemented in the new DD Expanded fast index creation will be soon 22
  • 23. © 2018 Percona SET STATEMENT FOR →/* SET_VAR */ Percona Server 5.7 (and MariaDB) per-statement variable assignments: ▪SET STATEMENT sort_buffer_size=100000 FOR SELECT name … MySQL 8.0 variable-setting optimizer hint ▪SELECT /*+ SET_VAR(sort_buffer_size=100000)*/ name … Percona Server has extended SET_VAR to cover the majority of SET STATEMENT use cases 23
  • 24. © 2018 Percona “userstat” duration columns now floating-point INFORMATION_SCHEMA.CLIENT_STATISTICS, THREAD_STATISTICS, USER_STATISTICS: CONNECTED_TIME, BUSY_TIME, CPU_TIME ▪Percona Server 5.7: integers, 1s resolution, ▪Percona Server 8.0: double precision 24
  • 25. © 2018 Percona SHOW [EFFECTIVE] GRANTS MySQL 5.7 SHOW GRANTS ▪ Shows assigned but not effective grants Percona Server 5.7 SHOW GRANTS ▪ The above was considered a bug ▪ Shows effective but not assigned grants Percona Server 8.0 SHOW [EFFECTIVE] GRANTS ▪ The above was considered a bug ▪ SHOW GRANTS: shows assigned grants ▪ SHOW EFFECTIVE GRANTS: shows effective grants 25
  • 26. © 2018 Percona Binlog space management Percona Server 5.7: max_binlog_files ▪Manage max space in combination with max_binlog_size ▪Was not reliable due to extra rotations Percona Server 8.0: binlog_space_limit ▪binlog_space_limit=10G - works alone, easier to manage 26
  • 27. © 2018 Percona Percona Server 8.0: RC1 as of today RC1 released last week We are still exploring 8.0 performance Questions? 27