本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
您所在的组无权查看该日志
您所在的组无权查看该日志
 
0

Keepalived 实现高可用

发表者:admin分类:应用服务2017-12-05 11:21:29 阅读[3140]
项目实战3—Keepalived 实现高可用目录实验一:实现keepalived主从方式高可用基于LVS-DR模式的应用实战:1、环境准备:2、在lvs-server-master 主上3、在lvs-server-backup 从上4、在real server 上5、测试实验二:实现keepalived双主方式高可用基于LVS-DR模式的应用实战:1、实验环境,基本同上2、在lvs-server1 上,基本同上,就是加了一个实例段3、在lvs-server2 上,基本同1,就是把实例的主从调换一下4、在real server 上5、测试实验三:实现keepalived主从方式高可用基于LVS-NAT模式的应用实战:1、环境准备2、在lvs-server-master 主上4、在real server 上5、测试实验四:实现keeaplived 故障通知机制1、编写好脚本2、在keepalived 的配置文件调用脚本实验五:实现keepaplived自定义脚本检测功能方案一:检测是否存在down文件,来实现主从的调整方案二:检测nginx服务是否开启,来实现调整主从 实现基于Keepalived高可用集群网站架构  环境:随着业务的发展,网站的访问量越来越大,网站访问量已经从原来的1000QPS,变为3000QPS,目前业务已经通过集群LVS架构可做到随时拓展,后端节点已经通过集群技术保障了可用性,但对于前端负载均衡器来说,是个比较大的安...
高并发场景 LVS 安装及高可用实现1.1 负载均衡介绍1.1.1 负载均衡的妙用 负载均衡(Load Balance)集群提供了一种廉价、有效、透明的方法,来扩展网络设备和服务器的负载、带宽、增加吞吐量、加强网络数据处理能力、提高网络的灵活性和可用性。ü 单台计算机无法承受大规模的并发访问或数据流量了,此时需要搭建负载均衡集群把流量分摊到多台节点设备上分别处理,即减少用户等待响应的时间又提升了用户体验;ü 7*24小时的服务保证,任意一个或多个有限后端节点设备宕机,不能影响整个业务的运行。1.1.2 为什么要用lvsn 工作在网络模型的7层,可以针对http应用做一些分流的策略,比如针对域名、目录结构,Nginx单凭这点可利用的场合就远多于LVS了。n 最新版本的Nginx也支持4层TCP负载,曾经这是LVS比Nginx好的地方。n Nginx对网络稳定性的依赖非常小,理论上能ping通就就能进行负载功能,这个也是它的优势之一,相反LVS对网络稳定性依赖比较大。n Nginx安装和配置比较简单,测试起来比较方便,它基本能把错误用日志打印出来。LVS的配置、测试就要花比较长的时间了,LVS对网络依赖比较大。那为什么要用lvs呢?ü 简单一句话,当并发超过...
linux vsftp中的local_umask和anon_umask Linux文件系统中:r:4(读)w:2(写)x:1(执行) umask是在linux中常见的一个东西,它其实是一个掩码。当然,也有umask这样一个命令,它是对用户建立的文件的默认属性的定义。该 定义为:假设umask为022,则对于一个文件夹的话,它的默认属性为 777-022=755,这也就是我们平时建立文件夹的权限。而对于一般的文件的话,则是用 666-022=644.umask是unix操作系统的概念,umask决定目录和文件被创建时得到的初始权限umask = 022 时,新建的目录 权限是755,文件的权限是 644umask = 077 时,新建的目录 权限是700,文件的权限时 600vsftpd的local_umask和anon_umask借鉴了它默认情况下vsftp上传之后文件的权限是600,目录权限是700想要修改上传之后文件的权限,有两种情况如果使用vsftp的是本地用户则要修改配置文件中的 local_umask 的值如果使用vsftp的是虚拟用户则要修改配置文件中的 anon_umask 的值
.grap_1{ color:#000000; } .gray { color: #999999; }1秒就能解决的Excel问题,有人竟花了9小时! 这个灾难跟一个「世纪难题」有关,那就是——「Excel 到底有多少行?」 为了找到这一问题的结果,2017 年 1 月 11 日,一外国小哥勇敢地站了出来,亲手进行手动计数实验。 令人「感动」的是, 9 小时 36 分之后,他终于成功滚到了最后一行! 只是,小哥如果知道 Ctrl+↓ 可以到最后一行,会不会气的吐血? 在嘲笑小哥之前,你知道么,其实有些常用的 Excel 操作,明明可以 1 秒完成,你却和小哥一样,选择了最慢的方式。 明明是谁 O.O 你不信?我赌 2毛 5 压岁钱,你会输光你的棒棒糖! 在 Excel 中,如果说「求和」是使用次数最多的函数应该没人不...
针对CVE-2017-12615和CVE-2017-12616: Tomcat安全漏洞问题做重要预警。如您尚未完成相关漏洞的修复工作,强烈建议您参考下文立即执行解决方案。Apache Tomcat于2017年09月19日发布漏洞修复公告:CVE-2017-12615:运行在Windows主机上Tomcat,如果开启了HTTP请求的PUT方法,利用精心构造的请求,可向服务器上传任意JSP文件;当该JSP文件被请求访问时,文件中代码将在服务器执行;CVE-2017-12616:当Tomcat启用VirtualDirContext时,利用精心构造的请求,不但可以绕过安全相关的限制,还可以读取到由VirtualDirContext提供支持资源的JSP源代码;漏洞危害:CVE-2017-12615: 该漏洞可导致远程代码执行,进而获取服务器权限;CVE-2017-12616: 该漏洞可导致JSP源代码泄露;漏洞影响:CVE-2017-12615: Apache Tomcat 7.0.0-7.0.79CVE-2017-12616: Apache Tomcat 7.0.0-7.0.80修复方案:建议升级Tomcat到7.0.81;漏洞来源:https://tomcat.apache.org/security-7.html
How to configure DRBD On CentOS 6.5 IntroductionThe Distributed Replicated Block Device (DRBD) is a distributed replicated storage system for the Linux platform. It is implemented as several userspace management applications and some shell scripts and is normally used on high availability (HA) computer clusters. DRBD refers as well to the logical block devices provided by the scheme and to software that implements it. The DRBD software is free software released under the terms of the GNU General Public License version 2. DRBD is part of the Lisog open source stack initiative. Distributed Replicated Block Device is actually a network based RAID 1. If you need to secure data on certain disk and are therefore mirroring your data to another disk via network, you have to configure DRBD on your system.In this tutorial, let us see how to install and configure DRBD on CentOS 6.5.Requirements– Two disks  (preferably same size)– Networking b...
How To Configure A High Available Load-balancer With HAProxy And Keepalived This tutorial explains how to set up a two-node load balancer with HAProxy and keepalived on CentOS 7. The load balancer sits between the user and two (or more) backend Apache web servers that hold the same content.  If one of them is down, all requests will automatically be redirected to the remaining backend server. which means the users will not notice any disruption of the service.For configuring HA-Load balanceer, You need 2 virtual/physical servers for the load-balancers and 2 virtual/physical servers to load-balance. In addition to the 4 IP addresses needed by the servers themselves, a fifth virtual IP address (VIP) is necessary. The two load-balanc...
Configuring A High Availability Apache Cluster With Pacemaker On CentOS 7 Hello everyone.Today we will learn how we can setup & configure Pacemaker on two CentOS 7 Linux servers for high availability purposes. I will stuck with the very basic fundamental and I will not dive deep on it over here for this tutorial.Let’s begin then.First, we need to know what is CentOS, Pacemaker and High Availability and why we need them.Why CentOS?CentOS Linux is a community-supported distribution derived from sources freely provided to the public by Red Hat for Red Hat Enterprise Linux (RHEL). As such, CentOS Linux aims to be functionally compatible with RHEL. The CentOS Project mainly changes packages to remove upstream vendor branding and artwork. CentOS Linux is no-cost and free to redistribute. Each CentOS version is maintained for up to 10 years (by means of security updates — the duration of the support interval by Red Hat has varied...
    总共46页,当前第17页 | 页数:
  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13
  8. 14
  9. 15
  10. 16
  11. 17
  12. 18
  13. 19
  14. 20
  15. 21
  16. 22
  17. 23
  18. 24
  19. 25
  20. 26
  21. 27