码迷,mamicode.com
首页 > 数据库 > 详细

【MySQL】TokuDB引擎

时间:2015-06-29 16:24:53      阅读:283      评论:0      收藏:0      [点我收藏+]

标签:

参考:http://blog.sina.com.cn/s/blog_4673e6030102v46l.html

 

参考:http://hcymysql.blog.51cto.com/5223301/1431698

参考:http://blog.csdn.net/yueliangdao0608/article/details/21230627

参考:http://code.openark.org/blog/mysql/tokudb-configuration-variables-of-interest

参考:http://blog.itpub.net/22418990/viewspace-1251497/

官网说明:http://docs.tokutek.com/tokudb/tokudb-index-variables.html

 

官网说明:https://mariadb.com/kb/en/mariadb/tokudb-system-variables/#tokudb_pk_insert_mode

 

MariaDB 10版本编译TokuDB引擎需要比较高的g++和cmake版本,暂没有进行单独编译,后续再测试。

测试版本:Percona-Server-5.6.24-rel72.2-Linux.x86_64.ssl101.tar.gz

测试版本:Percona-Server-5.6.24-rel72.2-TokuDB.Linux.x86_64.ssl101.tar.gz

OS:Centos 6.2

#### 配置 ####
# - path of TokuDB file - #
> tokudb_data_dir
> tokudb_log_dir
> tokudb_tmp_dir

# - variables of TokuDB engine - #
> tokudb_cache_size
This variable configures the size in bytes of the TokuDB cache table. The default cache table size is 1/2 of physical memory. Tokutek highly recommends using the default setting if using buffered IO, if using direct IO then consider setting this parameter to 80% of available memory.

> tokudb_directio
When set to ON, TokuDB employs Direct IO rather than Buffered IO for writes. When using Direct IO consider increasing tokudb cache size from its default of 1/2 physical memory. The default values is OFF.

> tokudb_commit_sync
Session variable tokudb_commit_sync controls whether or not the transaction log is flushed when a transaction commits. The default behavior is that the transaction log is flushed by the commit.
Setting this parameter to off may make the system run faster. However, transactions committed since the last checkpoint are not guaranteed to survive a crash.

> tokudb_fsync_log_period
Controls the frequency, in milliseconds, for fsync() operations. If set to 0 then the fsync() behavior is only controlled by the tokudb commit sync, which is on or off. The default values is 0.

> tokudb_row_format
tokudb_default, tokudb_zlib: Use the zlib library,
tokudb_fast, tokudb_quicklz: Use the quicklz library, the lightest compression with low CPU usage,
tokudb_small, tokudb_lzma: Use the lzma library. the highest compression and highest CPU usage
tokudb_uncompressed: No compression is used.
http://docs.tokutek.com/tokudb/tokudb-index-using-tokudb.html#tokudb-compression-details


> tokudb_read_buf_size

> tokudb_loader_memory_size


 

【MySQL】TokuDB引擎

标签:

原文地址:http://www.cnblogs.com/jiangxu67/p/4607427.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!