TokuDB引擎笔记
2017-03-24 16:25
183 查看
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
max_allowed_packet = 1M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
open_files_limit = 8192
max_connect_errors = 100000
table_open_cache = 2048
table_definition_cache = 2048
max_heap_table_size = 96M
sort_buffer_size = 2M
join_buffer_size = 2M
tmp_table_size = 96M
key_buffer_size = 8M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
bulk_insert_buffer_size = 32M
thread_concurrency = 8
datadir = /data/mysql
basedir = /usr/local/mysql
##############tokudb##########################
plugin-load = ha_tokudb
tokudb_cache_size = 4G
tokudb_data_dir = /data/mysql/tokudb_data
tokudb_log_dir = /data/mysql/logs
tokudb_tmp_dir = /data/mysql/tmp
tokudb_pk_insert_mode = 2
tokudb_commit_sync = 0
tokudb_directio = 1
tokudb_read_block_size = 128K
tokudb_read_buf_size = 128K
tokudb_row_format = tokudb_fast
###############innodb######################
innodb_buffer_pool_size = 1G
innodb_buffer_pool_instances = 1
#innodb_data_file_path = ibdata1:1G:autoextend
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 64M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
innodb_file_per_table = 1
innodb_status_file = 1
transaction_isolation = READ-COMMITTED
innodb_flush_method = O_DIRECT
log-bin=mysql-bin
binlog_format=mixed
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
各参数说明:
tokudb_cache_size
默认情况下,TokuDB分配50%的系统物理内存。
tokudb_data_dir
指定TokuDB数据的存储位置。默认为空,使用datadir定义的路径。
tokudb_log_dir
指定TokuDB日志的存储位置。默认为空,使用datadir定义的路径。
tokudb_tmp_dir
TokuDB批量导入数据时,临时文件的存储位置。TokuDB在使用LOAD DATA导入数据的时候会通过临时表(可能会很大)来完成。
默认为空,使用datadir定义的路径。
tokudb_pk_insert_mode
主键写入的模式,只有值为2时,才支持RBR。
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
max_allowed_packet = 1M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
open_files_limit = 8192
max_connect_errors = 100000
table_open_cache = 2048
table_definition_cache = 2048
max_heap_table_size = 96M
sort_buffer_size = 2M
join_buffer_size = 2M
tmp_table_size = 96M
key_buffer_size = 8M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
bulk_insert_buffer_size = 32M
thread_concurrency = 8
datadir = /data/mysql
basedir = /usr/local/mysql
##############tokudb##########################
plugin-load = ha_tokudb
tokudb_cache_size = 4G
tokudb_data_dir = /data/mysql/tokudb_data
tokudb_log_dir = /data/mysql/logs
tokudb_tmp_dir = /data/mysql/tmp
tokudb_pk_insert_mode = 2
tokudb_commit_sync = 0
tokudb_directio = 1
tokudb_read_block_size = 128K
tokudb_read_buf_size = 128K
tokudb_row_format = tokudb_fast
###############innodb######################
innodb_buffer_pool_size = 1G
innodb_buffer_pool_instances = 1
#innodb_data_file_path = ibdata1:1G:autoextend
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 64M
innodb_log_file_size = 256M
innodb_log_files_in_group = 2
innodb_file_per_table = 1
innodb_status_file = 1
transaction_isolation = READ-COMMITTED
innodb_flush_method = O_DIRECT
log-bin=mysql-bin
binlog_format=mixed
server-id = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
各参数说明:
tokudb_cache_size
默认情况下,TokuDB分配50%的系统物理内存。
tokudb_data_dir
指定TokuDB数据的存储位置。默认为空,使用datadir定义的路径。
tokudb_log_dir
指定TokuDB日志的存储位置。默认为空,使用datadir定义的路径。
tokudb_tmp_dir
TokuDB批量导入数据时,临时文件的存储位置。TokuDB在使用LOAD DATA导入数据的时候会通过临时表(可能会很大)来完成。
默认为空,使用datadir定义的路径。
tokudb_pk_insert_mode
主键写入的模式,只有值为2时,才支持RBR。
相关文章推荐
- TokuDB引擎笔记
- Percona Server 的安装及tokudb引擎的安装笔记
- Sandy引擎学习笔记:Mode7
- JBoss Rules 学习笔记(三)——DRools规则引擎(上)
- COM笔记 (1)SAMPLE: MFCAxs.exe Implements an Active Script Host Using MFC 用MFC实现script引擎host
- Sandy引擎学习笔记:多维贴图
- Away3D学习笔记1 - 戏说Flash 三维引擎
- Sandy引擎学习笔记:导入MD2模型
- Sandy引擎学习笔记:鼠标交互
- Sandy引擎学习笔记:导入3ds模型纹理
- Sandy引擎学习笔记:多维贴图
- Lucene:基于Java的全文检索引擎简介 (笔记 by 车东)
- Sandy引擎学习笔记:颜色材质
- Sandy引擎学习笔记:摄影机
- Sandy引擎学习笔记:swf影片剪辑纹理贴图
- Sandy引擎学习笔记:导入3dsmax模型
- Sandy引擎学习笔记: 三维效果初试
- Sandy引擎学习笔记:颜色材质
- Sandy引擎学习笔记:鼠标交互
- 开源3D图形渲染引擎OGRE学习笔记