SlideShare a Scribd company logo
TokuDB:	What	You	Need	to	
Know
Jervin Real
MySQL	and	Friends,	FOSDEM	2016
Jervin Real
Why	are	you	looking	at	TokuDB?
You	think	it’s	shiny?
Shiny	TokuDB Features
•Compression	choices
•Hot	schema	changes
•Amortized	writes
•Longer	hardware	life
•Faster	replication
•Multiple	clustering	indexes
Because	you	need	to	get	past	InnoDB
limitations?
Evaluation
•Queries
•Overall	performance
•Requirements
Evaluation	- Queries
•Need	for	rewrites?
•Grammatical	changes
Performance
BAD GOOD
UNIQUE	KEY Amortized	writes,	saves	IO
Non-sequential	PK Wide	tables,	many	indexes,	good	write	
performance
SELECTs	penalty	from	
merging	MBs
Read	free	replication
Minimum	Install	- OS
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
/etc/security/limits.conf
mysql soft nofile 65536
mysql hard nofile 65536
Minimum Install - MySQL
[mysqld]
open-files-limit = <LARGE_ENOUGH>
tokudb_fs_reserve_percent = <FIXED_SIZE>
tokudb_cache_size = <50% RAM>
tokudb_directio = ON
log_bin = /path/to/log-bin
[mysqld_safe]
malloc-lib = /path/to/jemalloc
Minimum Install - MySQL
Minimum Install - MySQL
[mysqld]
open-files-limit = <LARGE_ENOUGH>
tokudb_fs_reserve_percent = <FIXED_SIZE>
tokudb_cache_size = <50% RAM>
tokudb_directio = ON
log_bin = /path/to/log-bin
[mysqld_safe]
malloc-lib = /path/to/jemalloc
Loading	Data
•ALTER TABLE innodbtbl ENGINE=TokuDB;
•mysql tokuschema < mysqldumpfile.sql
•SELECT INTO OUTFILE, LOAD DATA INTO
Backups
•Open	source	plugin	TokuDB Hot	Backup
•Copies	EVERYTHING!
•datadir,	tokudb_data_dir,	tokudb_tmp_dir,	
tokudb_log_dir
•Disable	innodb_use_native_aio!	– lp#1521590
•Use	LVM!
What	to	Monitor
•Open	file	descriptors
•Swapping
•Checkpoint	durations
Questions?

More Related Content

PPTX
Percona FT / TokuDB
PPTX
Get More Out of MySQL with TokuDB
PPTX
Introduction to TokuDB v7.5 and Read Free Replication
PPTX
Get More Out of MongoDB with TokuMX
PDF
TokuDB 高科扩展性 MySQL 和 MariaDB 数据库
PDF
Linux tuning to improve PostgreSQL performance
POTX
WiredTiger MongoDB Integration
PPTX
Rit 2011 ats
Percona FT / TokuDB
Get More Out of MySQL with TokuDB
Introduction to TokuDB v7.5 and Read Free Replication
Get More Out of MongoDB with TokuMX
TokuDB 高科扩展性 MySQL 和 MariaDB 数据库
Linux tuning to improve PostgreSQL performance
WiredTiger MongoDB Integration
Rit 2011 ats

What's hot (20)

PPTX
MyDUMPER : Faster logical backups and restores
ODP
Mydumper - Vinoth kanna @ MySQL meetup Mumbai
PDF
Countdown to PostgreSQL v9.5 - Foriegn Tables can be part of Inheritance Tree
PDF
Remote DBA Experts SQL Server 2008 New Features
ODP
PostgreSQL Replication in 10 Minutes - SCALE
PPTX
Is It Fast? : Measuring MongoDB Performance
PPTX
Webinar: Introduction to MongoDB 3.0
PPTX
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
PPTX
What'sNnew in 3.0 Webinar
PPTX
Inside CynosDB: MariaDB optimized for the cloud at Tencent
PDF
M|18 How to use MyRocks with MariaDB Server
PDF
PostgreSQL worst practices, version FOSDEM PGDay 2017 by Ilya Kosmodemiansky
PDF
MySQL Server Backup, Restoration, and Disaster Recovery Planning
PPTX
WiredTiger Overview
PDF
PostgreSQL and MySQL
PDF
MongoDB 3.0 and WiredTiger (Event: An Evening with MongoDB Dallas 3/10/15)
PDF
MySQL on AWS RDS
PDF
InnoDB Performance Optimisation
PDF
Overview of Postgres Utility Processes
 
PDF
Architecture for building scalable and highly available Postgres Cluster
MyDUMPER : Faster logical backups and restores
Mydumper - Vinoth kanna @ MySQL meetup Mumbai
Countdown to PostgreSQL v9.5 - Foriegn Tables can be part of Inheritance Tree
Remote DBA Experts SQL Server 2008 New Features
PostgreSQL Replication in 10 Minutes - SCALE
Is It Fast? : Measuring MongoDB Performance
Webinar: Introduction to MongoDB 3.0
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
What'sNnew in 3.0 Webinar
Inside CynosDB: MariaDB optimized for the cloud at Tencent
M|18 How to use MyRocks with MariaDB Server
PostgreSQL worst practices, version FOSDEM PGDay 2017 by Ilya Kosmodemiansky
MySQL Server Backup, Restoration, and Disaster Recovery Planning
WiredTiger Overview
PostgreSQL and MySQL
MongoDB 3.0 and WiredTiger (Event: An Evening with MongoDB Dallas 3/10/15)
MySQL on AWS RDS
InnoDB Performance Optimisation
Overview of Postgres Utility Processes
 
Architecture for building scalable and highly available Postgres Cluster
Ad

Viewers also liked (8)

PDF
MySQL Tokudb engine benchmark
PDF
Storage Methods for Nonstandard Data Patterns
PPTX
Visualizing Data in Elasticsearch DevFest DC 2016
PDF
MySQL Performance Tuning Variables
PDF
MySQL 5.5 Guide to InnoDB Status
PPTX
What's new in MySQL Cluster 7.4 webinar charts
PDF
Mongo performance tuning: tips and tricks
PPTX
Concurrency Patterns with MongoDB
MySQL Tokudb engine benchmark
Storage Methods for Nonstandard Data Patterns
Visualizing Data in Elasticsearch DevFest DC 2016
MySQL Performance Tuning Variables
MySQL 5.5 Guide to InnoDB Status
What's new in MySQL Cluster 7.4 webinar charts
Mongo performance tuning: tips and tricks
Concurrency Patterns with MongoDB
Ad

Similar to TokuDB - What You Need to Know (20)

PPTX
JSSUG: SQL Sever Performance Tuning
PPTX
Handling Massive Writes
PDF
MySQL Performance Tuning London Meetup June 2017
PDF
Colvin exadata mistakes_ioug_2014
PPTX
Proving out flash storage array performance using swingbench and slob
PDF
MySQL 5.6 - Operations and Diagnostics Improvements
PDF
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
PDF
Tuning Linux for your database FLOSSUK 2016
PPTX
Mongo DB
PDF
FlashSQL 소개 & TechTalk
PDF
OSDC 2016 - Tuning Linux for your Database by Colin Charles
PDF
Making the case for write-optimized database algorithms / Mark Callaghan (Fac...
PPTX
Ceph Community Talk on High-Performance Solid Sate Ceph
PPTX
Oracle Performance On Linux X86 systems
PDF
Loadays MySQL
PPT
MySQL Performance Tuning at COSCUP 2014
PDF
Tuning Linux Windows and Firebird for Heavy Workload
PDF
Running MySQL on Linux
PDF
OSDC 2010 | MySQL and InnoDB Performance - what we know, what we don't by Ba...
PDF
MySQL 和 InnoDB 性能
JSSUG: SQL Sever Performance Tuning
Handling Massive Writes
MySQL Performance Tuning London Meetup June 2017
Colvin exadata mistakes_ioug_2014
Proving out flash storage array performance using swingbench and slob
MySQL 5.6 - Operations and Diagnostics Improvements
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
Tuning Linux for your database FLOSSUK 2016
Mongo DB
FlashSQL 소개 & TechTalk
OSDC 2016 - Tuning Linux for your Database by Colin Charles
Making the case for write-optimized database algorithms / Mark Callaghan (Fac...
Ceph Community Talk on High-Performance Solid Sate Ceph
Oracle Performance On Linux X86 systems
Loadays MySQL
MySQL Performance Tuning at COSCUP 2014
Tuning Linux Windows and Firebird for Heavy Workload
Running MySQL on Linux
OSDC 2010 | MySQL and InnoDB Performance - what we know, what we don't by Ba...
MySQL 和 InnoDB 性能

More from Jervin Real (12)

PDF
Low Cost Transactional and Analytics with MySQL + Clickhouse
PDF
Low Cost Transactional and Analytics with MySQL + Clickhouse
PDF
ZFS and MySQL on Linux, the Sweet Spots
PDF
Lock, Stock and Backup: Data Guaranteed
PDF
Learning MySQL 5.7
PDF
Heterogenous Persistence
PDF
Preventing and Resolving MySQL Downtime
PDF
PLAM 2015 - Evolving Backups Strategy, Devploying pyxbackup
PDF
Learning by Experience, Devploying pyxbackup
PDF
AWS Users Meetup April 2015
PDF
High Performance Rails with MySQL
PDF
Highly Available MySQL/PHP Applications with mysqlnd
Low Cost Transactional and Analytics with MySQL + Clickhouse
Low Cost Transactional and Analytics with MySQL + Clickhouse
ZFS and MySQL on Linux, the Sweet Spots
Lock, Stock and Backup: Data Guaranteed
Learning MySQL 5.7
Heterogenous Persistence
Preventing and Resolving MySQL Downtime
PLAM 2015 - Evolving Backups Strategy, Devploying pyxbackup
Learning by Experience, Devploying pyxbackup
AWS Users Meetup April 2015
High Performance Rails with MySQL
Highly Available MySQL/PHP Applications with mysqlnd

Recently uploaded (20)

PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
PDF
OneRead_20250728_1808.pdfhdhddhshahwhwwjjaaja
PDF
Transcultural that can help you someday.
PDF
Global Data and Analytics Market Outlook Report
PPT
ISS -ESG Data flows What is ESG and HowHow
PDF
Optimise Shopper Experiences with a Strong Data Estate.pdf
PDF
Introduction to Data Science and Data Analysis
PDF
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
PPTX
Introduction to Inferential Statistics.pptx
PPTX
FMIS 108 and AISlaudon_mis17_ppt_ch11.pptx
PDF
Microsoft 365 products and services descrption
PPTX
DS-40-Pre-Engagement and Kickoff deck - v8.0.pptx
PPTX
Copy of 16 Timeline & Flowchart Templates – HubSpot.pptx
PDF
Introduction to the R Programming Language
PPTX
retention in jsjsksksksnbsndjddjdnFPD.pptx
PPTX
Managing Community Partner Relationships
PPTX
New ISO 27001_2022 standard and the changes
PPT
Predictive modeling basics in data cleaning process
PPT
DU, AIS, Big Data and Data Analytics.ppt
IBA_Chapter_11_Slides_Final_Accessible.pptx
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
OneRead_20250728_1808.pdfhdhddhshahwhwwjjaaja
Transcultural that can help you someday.
Global Data and Analytics Market Outlook Report
ISS -ESG Data flows What is ESG and HowHow
Optimise Shopper Experiences with a Strong Data Estate.pdf
Introduction to Data Science and Data Analysis
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
Introduction to Inferential Statistics.pptx
FMIS 108 and AISlaudon_mis17_ppt_ch11.pptx
Microsoft 365 products and services descrption
DS-40-Pre-Engagement and Kickoff deck - v8.0.pptx
Copy of 16 Timeline & Flowchart Templates – HubSpot.pptx
Introduction to the R Programming Language
retention in jsjsksksksnbsndjddjdnFPD.pptx
Managing Community Partner Relationships
New ISO 27001_2022 standard and the changes
Predictive modeling basics in data cleaning process
DU, AIS, Big Data and Data Analytics.ppt

TokuDB - What You Need to Know