<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu,debian,redhat -linuxany.com &#187; Lvs/Ha</title>
	<atom:link href="http://www.linuxany.com/archives/category/application/lvsha/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description>ubuntu,debian,redhat,fedora,centos</description>
	<lastBuildDate>Sun, 29 Aug 2010 06:52:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>集群LVS的十种调度算法</title>
		<link>http://www.linuxany.com/archives/1270.html</link>
		<comments>http://www.linuxany.com/archives/1270.html#comments</comments>
		<pubDate>Sat, 08 May 2010 13:03:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Lvs/Ha]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[lblc]]></category>
		<category><![CDATA[lc]]></category>
		<category><![CDATA[lvs]]></category>
		<category><![CDATA[rr]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[wlc]]></category>
		<category><![CDATA[wrr]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1270</guid>
		<description><![CDATA[1. 大锅饭调度(Round-Robin Scheduling RR) rr &#8211; 纯轮询方式，比较垃圾。把每项请求按顺序在真正服务器中分派。 2. 带权重的大锅饭调度(Weighted Round-Robin Scheduling WRR) wrr -带权重轮询方式。把每项请求按顺序在真正服务器中循环分派，但是给能力较大的服务器分派较多的作业。 3. 谁不干活就给谁分配(Least-Connection LC) lc &#8211; 根据最小连接数分派 4. 带权重的谁不干活就给谁分配（Weighted Least-Connections WLC 默认） wlc &#8211; 带权重的。机器配置好的权重高。 5. 基于地区的最少连接调度(Locality-Based Least-Connection Scheduling LBLC) lblc &#8211; 缓存服务器集群。基于本地的最小连接。把请求传递到负载小的服务器上。 6. 带有复制调度的基于地区的最少连接调度(Locality-Based Least-Connection Scheduling with Replication Scheduling LBLCR) lblcr &#8211; 带复制调度的缓存服务器集群。某页面缓存在服务器A上，被访问次数极高，而其他缓存服务器负载较低，监视是否访问同一页面，如果是访问同一页面则把请求分到其他服务器。 7. 目标散列调度(Destination Hash Scheduling DH) realserver中绑定两个ip。ld判断来者的ISP商，将其转到相应的IP。 8. 源散列调度(Source [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1270.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Setting Up A High-Availability Load Balancer (With Failover and Session Support) With HAProxy/Heartbeat On Debian Etch</title>
		<link>http://www.linuxany.com/archives/402.html</link>
		<comments>http://www.linuxany.com/archives/402.html#comments</comments>
		<pubDate>Sun, 24 Aug 2008 10:12:43 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lvs/Ha]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[haproxy]]></category>
		<category><![CDATA[heartbeat]]></category>
		<category><![CDATA[lvs]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=433</guid>
		<description><![CDATA[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 [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/402.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux集群的安装与并行计算</title>
		<link>http://www.linuxany.com/archives/284.html</link>
		<comments>http://www.linuxany.com/archives/284.html#comments</comments>
		<pubDate>Thu, 17 Apr 2008 13:50:20 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Lvs/Ha]]></category>
		<category><![CDATA[lvs]]></category>
		<category><![CDATA[集群]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=294</guid>
		<description><![CDATA[1.linux安装 安装过程就不多说了。需要注意的是安装时，如果机群不与外界联网则可以不考虑安全 方面的因素而把rsh选为可信赖的服务，注意安装相应的软件包；如果还要与外界保持联 网，出于安全需要应把ssh选为可信赖的服务。安装以后，应该保证各节点之间能够用s sh相互登录。每个节点的sshd都应该能正常提供服务。主机名：node1&#8230;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这个目录从服务器节点输出，并装载在各客户端，从而便于在各节点间分 发任务 3.修改/etc/hosts文件，将所有节点名称极其ip地址填入。例如： 127.0.0.1　localhost.localdomain localhost 192.168.1.1　node1 192.168.1.2　node2 ……………………. 每个节点都进行类似的配置。这样做的目的是使节点之间能够通过node1 &#8230; noden的名 称相互访问。你可以通过ping noden 或 ssh noden进行测试。 4.修改(或创建)/etc/hosts.equiv文件 将所有你允许访问本机进行mpi计算的机器名填入，一行一个机器名。这一步是为了使节 点对其它的节点放权。 例如，我的node1是我用于启动mpi集群计算的机器，其他的节点是参与计算者，在node 1的/etc/hosts.equiv文件是这样的： node1 #给自己放权，这样在只有一台机器时也可以模拟并行计算环境 node2 &#8230;.. noden 在node2&#8230;noden的/etc/hosts.equiv文件： node1 #对node1放权 node2 &#8230;&#8230; [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/284.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux系统移植经验分享</title>
		<link>http://www.linuxany.com/archives/225.html</link>
		<comments>http://www.linuxany.com/archives/225.html#comments</comments>
		<pubDate>Tue, 11 Mar 2008 09:10:43 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Lvs/Ha]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[移植]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/226</guid>
		<description><![CDATA[问题描述：    两台同型号的服务器（两台机器上运行HA，通过HA来监控他们的应用以及Oracle数据库）由于用户操作不当，造成一台服务器无法正常关机（能关闭内核，但不能关闭电源），尝试了在内核中加入电源管理的参数，仍然不能解决。更郁闷的是用户没有安装光盘，无法重装系统，那么唯一的办法就是把另外一台机器上的根分区移植到这台机器上。 解决方法：      本想使用dd来拷贝根分区,但无奈硬盘空间不够，所以只有使用tar来备份了，tar的方法其实很简单，但像根分区下的一些/proc、/sys、/tmp、/dev这应该排除掉，其次oracle这些应用软件的安装目录也不需要打包（太大），因为tar好像最大只支持8GB的单个文件。当然tar文件存放的目录一定要排除掉。具体命令如下： &#60;span style=&#34;color: #000000&#34;&#62;&#60;font face=&#34;Courier New&#34;&#62;#tar zcvf /Bak/root-bak.tgz --exclude /proc --exclude /sys --exclude /tmp --exclude /dev --exclude /Bak --exclude /ora_data /&#60;/font&#62;&#60;/span&#62; 待tar命令完成后，将tar包拷贝至移动硬盘上。现在就可以转到另外一台机器来操作了，在执行恢复操作前，建议将这台机器上的Oracle等应用程序安装的目录以及一些重要的数据先备份。然后通过光盘引导至rescue模式，在这里需要注意的是，在进入rescue模式之前，一定要先将硬盘硬盘插上，否则进入rescue模式后系统不会自动添加USB驱动。其次在进入rescue模式的过程中，要选择“SKIP”跳过根分区的挂载。接下来的操作就是格式化根分区再将tar解开到根分区上。具体命令如下： &#60;span style=&#34;color: #000000&#34;&#62;&#60;font face=&#34;Courier New&#34;&#62;#mkfs.ext3 /dev/sda1然后，挂在新的文件系统并还原操作系统。#mkdir /newsystem#mount /dev/sda1 /newsystem#mkdir /bak#mount /dev/sdb1 /bak#tar zxvf /bak/root-bak.tgz -C /newsystem#chroot /newsystem#grub-install /dev/sda&#60;/font&#62;&#60;/span&#62; 开始我以为做到这一步查多算完工了，但是重新启动的时候报kernel panic的错误，提示不能挂载根分区，后来我将/etc/fstab、/etc/grub.conf文件中的LABEL全部该为实际的分区名称，并重做initrd： &#60;span style=&#34;color: #000000&#34;&#62;&#60;font face=&#34;Courier New&#34;&#62;# cp /boot/initrd-2.6.18-8.2smp.img [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/225.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
