上一页 1 2 3 4 5 6 7 ··· 17 下一页
摘要: #实现主从复制配置,官网参考 https://dev.mysql.com/doc/refman/8.0/en/replication-configuration.html https://dev.mysql.com/doc/refman/5.7/en/replication-configuratio 阅读全文
posted @ 2023-10-08 09:51 小糊涂90 阅读(40) 评论(0) 推荐(0)
摘要: Mysql的日志分类: 事务日志:transaction log 错误日志:error log 通用日志:general log 慢查询日志:show query log 二进制日志:binary log 中继日志 reley log 1)事务日志的写入类型为"追加",因此其操作为“顺序IO”;通常 阅读全文
posted @ 2023-10-08 09:51 小糊涂90 阅读(54) 评论(0) 推荐(0)
摘要: 常见的mysql存储引擎有MyISAM和InnoDB。 myISAM引擎特点: 1.不支持事务 2.表级锁定 3.读写相互堵塞,写入不能读,读时不能写 4.只缓存索引 5.不支持外键约束 6.不支持聚簇索引 7.读数据较快,占用资源较少 8.不支持MVCC(多版本并发控制)高并发 9.崩溃恢复性较差 阅读全文
posted @ 2023-10-08 09:50 小糊涂90 阅读(58) 评论(0) 推荐(0)
摘要: #安装依赖包 [root@centos7 ~]#yum -y install gcc jemalloc-devel #下载源码 [root@centos7 ~]#wget http://download.redis.io/releases/redis-5.0.7.tar.gz [root@cento 阅读全文
posted @ 2023-10-08 09:50 小糊涂90 阅读(189) 评论(0) 推荐(0)
摘要: 常用模块帮助文档参考: https://docs.ansible.com/ansible/2.9/modules/modules_by_category.html https://docs.ansible.com/ansible/2.9/modules/list_of_all_modules.htm 阅读全文
posted @ 2023-10-08 09:49 小糊涂90 阅读(53) 评论(0) 推荐(0)
摘要: [root@ansible ~]# vim /etc/ansible/hosts [webservers] 10.0.0.150 ansible_connection=local 10.0.0.160 #创建角色相关目录 [root@ansible html]# mkdir -pv /data/an 阅读全文
posted @ 2023-10-08 09:49 小糊涂90 阅读(55) 评论(0) 推荐(0)
摘要: #三台服务器 centos7 mycat-server 10.0.0.152 内存2G以上 centos8 mysql-master 10.0.0.150 mariadb 10.3 centos8 mysql-master 10.0.0.160 mariadb 10.3 #1)创建数据库主从 [ro 阅读全文
posted @ 2023-10-08 09:48 小糊涂90 阅读(28) 评论(0) 推荐(0)
摘要: 1.LVS 调试算法 ipvs scheduler:根据其调度时是否考虑各RS当前的负载状态 分为两种:静态方法和动态方法 1.1静态方法 仅根据算法本身进行调度 1、RR:roundrobin,轮询,较常用 2、WRR:Weighted RR,加权轮询,较常用 3、SH:Source Hashin 阅读全文
posted @ 2023-10-08 09:47 小糊涂90 阅读(44) 评论(0) 推荐(0)
摘要: 1、LVS-NAT模式实现 环境: 共四台主机 一台: internet client:192.168.10.6/24 GW:无 仅主机 一台:lvs eth1 仅主机 192.168.10.100/16 eth0 NAT 10.0.0.8/24 两台RS: RS1: 10.0.0.7/24 GW: 阅读全文
posted @ 2023-10-08 09:47 小糊涂90 阅读(80) 评论(0) 推荐(1)
摘要: 1、Redis Cluster扩容(Redis 5为例) 因公司业务发展迅猛,现有的三主三从的redis cluster架构可能无法满足现有业务的并发写入需求,因此公司紧急采购两台服务器10.0.0.68,10.0.0.78,需要将其动态添加到集群当中,但不能影响业务使用和数据丢失。 注意: 生产环 阅读全文
posted @ 2023-10-08 09:46 小糊涂90 阅读(539) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 17 下一页