上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: https://quentinxxz.iteye.com/blog/2249799 http://blog.chinaunix.net/uid-25057421-id-5576741.html https://blog.csdn.net/wangbin579/article/details/8950 阅读全文
posted @ 2019-02-13 13:59 凯文队长 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1、实验环境 2、安装 3、设置配置脚本 复制到另外一台 scp lvs_dr-rs.sh root@192.168.31.3:/opt 执行脚本 bash /opt/lvs_dr_rs.sh查看ip a keepalived节点配置(2节点): 主节点( MASTER )配置文件 vim /etc 阅读全文
posted @ 2019-02-12 11:16 凯文队长 阅读(3959) 评论(0) 推荐(0) 编辑
摘要: 一、负载均衡LVS基本介绍 LB集群的架构和原理很简单,就是当用户的请求过来时,会直接分发到Director Server上,然后它把用户的请求根据设置好的调度算法,智能均衡地分发到后端真正服务器(real server)上。为了避免不同机器上用户请求得到的数据不一样,需要用到了共享存储,这样保证所 阅读全文
posted @ 2019-02-12 10:53 凯文队长 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 简单理解四层和七层负载均衡: ① 所谓四层就是基于IP+端口的负载均衡;七层就是基于URL等应用层信息的负载均衡;同理,还有基于MAC地址的二层负载均衡和基于IP地址的三层负载均衡。 换句换说,二层负载均衡会通过一个虚拟MAC地址接收请求,然后再分配到真实的MAC地址;三层负载均衡会通过一个虚拟IP 阅读全文
posted @ 2019-02-11 15:40 凯文队长 阅读(1403) 评论(0) 推荐(0) 编辑
摘要: 系统:centos7 一、安装nginx yum install -y nginx yum install -y createrepo 安装建yum源仓库的工具,可以用来建立yum仓库yum install -y yum-plugin-priorities 安装控制yum源更新优先级工具,这个工具可 阅读全文
posted @ 2019-02-02 14:46 凯文队长 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 下载源准备 wget -O /etc/yum.repos.d/CentOS7-ali-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache yum -y install epel-rele 阅读全文
posted @ 2019-02-01 17:38 凯文队长 阅读(909) 评论(0) 推荐(0) 编辑
摘要: 参考:https://docs.docker.com/compose/install/ curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m) 阅读全文
posted @ 2019-02-01 17:05 凯文队长 阅读(1795) 评论(0) 推荐(0) 编辑
摘要: show global variables like "%read_only%"; set global read_only=1; read_only=1只读模式,可以限定普通用户进行数据修改的操作,但不会限定具有super权限的用户的数据修改操作 阅读全文
posted @ 2019-01-31 15:59 凯文队长 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/zhoujinyi/p/4717951.html 解决方式,跳过一步: show slave status\G;找到主库binglog位置 mysqlbinlog 主库binlog.00008 stop slave;set session gtid_n 阅读全文
posted @ 2019-01-31 15:31 凯文队长 阅读(954) 评论(0) 推荐(0) 编辑
摘要: 开启半同步复制 #在有的高可用架构下,master和slave需同时启动,以便在切换后能继续使用半同步复制 /etc/my.cnf 查看半同步是否在运行 master:mysql> show status like 'Rpl_semi_sync_master_status';+ + +| Varia 阅读全文
posted @ 2019-01-31 14:33 凯文队长 阅读(410) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页