集群LVS的十种调度算法
1. 大锅饭调度(Round-Robin Scheduling RR)
rr – 纯轮询方式,比较垃圾。把每项请求按顺序在真正服务器中分派。
2. 带权重的大锅饭调度(Weighted Round-Robin Scheduling WRR)
wrr -带权重轮询方式。把每项请求按顺序在真正服务器中循环分派,但是给能力较大的服务器分派较多的作业。
3. 谁不干活就给谁分配(Least-Connection LC)
lc – 根据最小连接数分派
1. 大锅饭调度(Round-Robin Scheduling RR)
rr – 纯轮询方式,比较垃圾。把每项请求按顺序在真正服务器中分派。
2. 带权重的大锅饭调度(Weighted Round-Robin Scheduling WRR)
wrr -带权重轮询方式。把每项请求按顺序在真正服务器中循环分派,但是给能力较大的服务器分派较多的作业。
3. 谁不干活就给谁分配(Least-Connection LC)
lc – 根据最小连接数分派


This article explains how to set up a two-node load balancer in an active/passive configuration with HAProxy and heartbeat on Debian Etch. The load balancer sits between the user and two (or more) backend Apache web servers that hold the same content. Not only does the load balancer distribute the requests to the two backend Apache servers, it also checks the health of the backend servers. If one of them is down, all requests will automatically be redirected to the remaining backend server. In addition to that, the two load balancer nodes monitor each other using heartbeat, and if the master fails, the slave becomes the master, which means the users will not notice any disruption of the service. HAProxy is session-aware, which means you can use it with any web application that makes use of sessions (such as forums, shopping carts, etc.). 继续阅读 »
1.linux安装
安装过程就不多说了。需要注意的是安装时,如果机群不与外界联网则可以不考虑安全
方面的因素而把rsh选为可信赖的服务,注意安装相应的软件包;如果还要与外界保持联
网,出于安全需要应把ssh选为可信赖的服务。安装以后,应该保证各节点之间能够用s
sh相互登录。每个节点的sshd都应该能正常提供服务。主机名:node1…noden (我所构
建的系统n=2)
2.创建NFS服务
在服务器节点public目录下建立mpi目录,并将其配置成NFS服务器,在/etc/exports文
件中加入一行:
/public/mpi node1(rw) node2(rw)
在客户端节点的/etc/fstab文件中增加一行:
sever :/pubilc/mpi nfs rw , bg , soft 0 0
将/public/mpi这个目录从服务器节点输出,并装载在各客户端,从而便于在各节点间分
发任务
继续阅读 »
两台同型号的服务器(两台机器上运行HA,通过HA来监控他们的应用以及Oracle数据库)由于用户操作不当,造成一台服务器无法正常关机(能关闭内核,但不能关闭电源),尝试了在内核中加入电源管理的参数,仍然不能解决。更郁闷的是用户没有安装光盘,无法重装系统,那么唯一的办法就是把另外一台机器上的根分区移植到这台机器上。
继续阅读 »