Cluster: 系统扩展的两种思路: scale up:向上扩展 -- 性能更好的主机,替换旧的主机 scale out:横向扩展 -- 添加服务器(但是服务是可以分开的,独立的) cookie:服务器端生成一个cookie-id,发送给客户端,客户端每次访问,都会将cookie发送给服务器端 s... ...
分类:
其他好文 时间:
2018-10-22 23:19:09
阅读次数:
316
vim /etc/security/limits.conf* soft nproc 65535* hard nproc 65535* soft nofile 65535* hard nofile 65535重启生效cat /proc/sys/fs/file-max vim /etc/sysctl.c ...
分类:
其他好文 时间:
2018-10-21 16:55:34
阅读次数:
181
3.2配置masterDirector3.3backupdirector配置
分类:
其他好文 时间:
2018-10-20 12:55:04
阅读次数:
123
一、传统架构演进到分布式架构 简介:讲解单机应用和分布式应用架构演进基础知识 (画图) 高可用 LVS+keepalive 1、单体应用:开发速度慢、启动时间长、依赖庞大、等等 2、微服务:易开发、理解和维护、独立的部署和启动等等 不足:分布式系统(分布式事务问题)、需要管理多个服务(服务治理) 二 ...
分类:
编程语言 时间:
2018-10-19 15:59:29
阅读次数:
341
解析redis.conf >>.Units单位(set nu) >>.INCLUDES:可以包含其他配置文件(application.xml importXXX) >>.GENERAL daemonize yes 后台运行 pidfile redis运行时ID保存位置 tcp-keepalive 0 ...
分类:
其他好文 时间:
2018-10-12 13:50:47
阅读次数:
175
Keepalived高可用服务器以及haproxy的负载均衡Keepalive运行原理Keepalived检测每个服务节点状态当服务器节点异常或工作出现故障,keepalived将故障节点从集群从集群系统中踢除故障节点恢复后,自动将其加入使用keepalived软件配置HA集群使用keepalived软件配置HA集群1.提供服务的主机需要装keepalived和web服务yum-yinstallh
分类:
其他好文 时间:
2018-10-11 01:54:02
阅读次数:
250
Introduction Under some circumstances, it is useful for a client or server to become aware of the termination or loss of connection with its peer. In ...
分类:
其他好文 时间:
2018-10-11 01:30:47
阅读次数:
160
见下图: client_max_body_size 1024M; 上传文件大小限制 sendfile on; 设置为on表示启动高效传输文件的模式 keepalive_timeout 1800;保持连接的时间,默认65s ...
分类:
Web程序 时间:
2018-09-30 16:55:13
阅读次数:
538
一、环境配置: IP:192.168.1.30 VIP:192.168.1.34 keepalive+nginxIP:192.168.1.31 VIP:192.168.1.34 keepalive+nginxIP:192.168.1.35 web1IP:192.168.1.36 web2 二、两台负 ...
分类:
其他好文 时间:
2018-09-30 14:46:50
阅读次数:
175