ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

TokuDB 热备测试

2019-08-28 10:01:58  阅读:315  来源: 互联网

标签:INFO ... 热备 TokuDB Checking set 测试 mysql


1、启动后尝试安装TokuDB插件

[root@es3 mysql]# export PATH=$PATH:/usr/local/mysql/bin
[root@es3 mysql]# ps_tokudb_admin  -h127.0.0.1 --enable
Checking SELinux status...
INFO: SELinux is disabled.

Checking location of jemalloc library ...
INFO: Using jemalloc library from /usr/lib64/libjemalloc.so.1

Checking transparent huge pages status on the system...
INFO: Transparent huge pages are enabled (should be disabled).

Checking if THP_SETTING variable is set to never or madvise in /etc/sysconfig/mysql...
INFO: Variable THP_SETTING is not set to never or madvise in /etc/sysconfig/mysql.

Checking if LD_PRELOAD variable is set for libjemalloc.so.1 in /etc/sysconfig/mysql...
INFO: Variable LD_PRELOAD for libjemalloc.so.1 is set in /etc/sysconfig/mysql.

Checking TokuDB engine plugin status...
INFO: TokuDB engine plugin is not installed.

Disabling transparent huge pages for the current session...
INFO: Successfully disabled transparent huge pages for this session.

Adding THP_SETTING=never variable into /etc/sysconfig/mysql
INFO: Successfully added THP_SETTING=never option into /etc/sysconfig/mysql

Installing TokuDB engine...
2019-08-27T08:51:36.877238Z 5 [ERROR] TokuDB is not initialized because jemalloc is not loaded
2019-08-27T08:51:36.877264Z 5 [ERROR] Plugin 'TokuDB' init function returned error.
2019-08-27T08:51:36.877279Z 5 [ERROR] Plugin 'TokuDB' registration as a STORAGE ENGINE failed.
2019-08-27T08:51:36.877307Z 5 [Note] Shutting down plugin 'TokuDB'
ERROR: Failed to install TokuDB engine plugin. Please check error log.

2、添加jemalloc 后

[root@es3 lib]# sh /usr/local/mysql/support-files/mysql.server start
                                                                                 
[root@es3 support-files]# ps_tokudb_admin  -h127.0.0.1 --enable
Checking SELinux status...
INFO: SELinux is disabled.

Checking if Percona Server is running with jemalloc enabled...
INFO: Percona Server is running with jemalloc enabled.

Checking transparent huge pages status on the system...
INFO: Transparent huge pages are currently disabled on the system.

Checking if thp-setting=never option is already set in config file...
INFO: Option thp-setting=never is not set in the config file.
      (needed only if THP is not disabled permanently on the system)

Checking TokuDB engine plugin status...
INFO: TokuDB engine plugin is not installed.

Adding thp-setting=never option into /etc/my.cnf
INFO: Successfully added thp-setting=never option into /etc/my.cnf

Installing TokuDB engine...
INFO: Successfully installed TokuDB engine plugin.

3、安装热备插件

[root@es3 support-files]# ps_tokudb_admin  -h127.0.0.1 --enable-backup
Checking SELinux status...
INFO: SELinux is disabled.

Checking if Percona Server is running with jemalloc enabled...
INFO: Percona Server is running with jemalloc enabled.

Checking transparent huge pages status on the system...
INFO: Transparent huge pages are currently disabled on the system.

Checking if thp-setting=never option is already set in config file...
INFO: Option thp-setting=never is set in the config file.

Checking if preload-hotbackup option is already set in config file...
INFO: Option preload-hotbackup is not set in the config file.

Checking TokuDB engine plugin status...
INFO: TokuDB engine plugin is installed.

Checking TokuBackup plugin status...
INFO: TokuBackup plugin is not installed.

Adding preload-hotbackup option into /etc/my.cnf
INFO: Successfully added preload-hotbackup option into /etc/my.cnf
PLEASE RESTART MYSQL SERVICE AND RUN THIS SCRIPT AGAIN TO FINISH INSTALLATION!


标签:INFO,...,热备,TokuDB,Checking,set,测试,mysql
来源: https://blog.51cto.com/860143/2433148

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有