1.集群搭建记录

 iptables --append INPUT --protocol tcp \
--source 192.168.126.129 --jump ACCEPT
iptables --apend INPUT --protocol tcp \
--source 192.168.126.130 --jump ACCEPT
iptables --append INPUT --protocol tcp \
--source 192.168.126.131 --jump ACCEPT iptables-save> /etc/sysconfig/iptables-config grant usage on *.* to sst@'%' identified by 'ssTT-488';
flush privileges; 修改后 [mysqld]
binlog_format = ROW
#bind-address = 192.168.126.129
default_storage_engine = innodb
innodb_autoinc_lock_mode =
innodb_flush_log_at_trx_commit =
innodb_buffer_pool_size = 122M
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_provider_options ="gcache.size = 300M; gcache.page_size = 300M"
wsrep_cluster_name ="MyCluster"
wsrep_cluster_address="gcomm://192.168.126.129"
wsrep_sst_method = rsync
wsrep_node_name = Node11
wsrep_node_address ="192.168.126.129"
wsrep_sst_auth=sst:ssTT- #节点N的数据库账户和密码--创建账号密码
wsrep_on=ON [mysql_safe]
log-error = /var/log/mysqld.log
pid-file = /var/run/mysqld/mysqld.pid swapon --summary fallocate -l 512M /swapfile
dd if=/dev/zero of=/swapfile bs=1M count=
chmod /swapfile
ls -a / | grep swapfile
mkswap /swapfile
swapon /swapfile
vi /etc/fstab
/swapfile none swap defaults swapon --summary galera_new_cluster show variables like 'character%';
set character_set_server = utf8;
set character_set_database = utf8; cp /usr/share/mysql/wsrep.cnf /etc/my.cnf.d/
vi /etc/my.cnf.d/wsrep.cnf garbd -a gcomm://192.168.126.129 -g MyCluster -d journalctl -xe

2.使用记录

查看服务器连接池使用情况:

show global status like 'thread%';
show variables like 'thread_cache_size';
show PROCESSLIST;

查看配置情况:

show variables like "max_connections";
show global variables like 'wait_timeout';
show global variables like 'interactive_timeout';

最新文章

  1. linux网络编程tcp
  2. hibernate----1-1-----两表关联属性放在另一个表里面
  3. colorPrimaryDark无法改变状态栏颜色
  4. mysql 聚集函数和分组
  5. 1154 能量项链[区间dp]
  6. http协议分析工具
  7. MySQL各种日期类型与整型(转)
  8. 18-EasyNetQ:发生错误的情况
  9. MyEclipse10.7 10.6导出war文件报错 “SECURITY ALERT: INTEGERITY CHECK ERROR”
  10. Java语法基础(1)
  11. 在.NET Core console application中使用User Secrets(用户机密)
  12. mysql 8126
  13. eclipse 安装 maven
  14. C#编程(三十四)----------数组作为参数
  15. C# 获取web.config配置文件
  16. python excel操作单元格复制和读取的两种方法
  17. 可替换参数在SharePoint和VS中的使用
  18. 安装 Ruby, Rails 运行环境
  19. SSM框架构建多模块之业务拆分实践
  20. AWS and OpenStack

热门文章

  1. npm常用命令和脚手架使用
  2. ES集群调整搜索速度
  3. python命令行工具的使用——argparse
  4. mysql基于二进制文件的主从复制
  5. 今日份Java
  6. Python中字符串的学习
  7. [USACO19DEC]Tree Depth P
  8. vue项目下的导入和导出
  9. 聊聊SNMP协议
  10. Pyecharts-数据可视化模块