在调度器的实现技术中,IP负载均衡技术是效率最高的。在已有的IP负载均衡技术中有通过网络地址转换(Network Address Translation)将一组服务器构成一个高性能的、高可用的虚拟服务器,我们称之为VS/NAT技术(Virtual Server via Network Address Translation),大多数商品化的IP负载均衡调度器产品都是使用此方法,如Cisco的LocalDirector、F5的Big/IP和Alteon的ACEDirector。在分析VS/NAT的缺点和网络服务的非对称性的基础上,我们提出通过IP隧道实现虚拟服务器的方法VS/TUN(Virtual Server via IP Tunneling),和通过直接路由实现虚拟服务器的方法VS/DR(Virtual Server via Direct Routing),它们可以极大地提高系统的伸缩性。所以,IPVS软件实现了这三种IP负载均衡技术,它们的大致原理如下

本日志由 flyinweb 于 2009-09-25 18:04:58 发表到 Linux 中,目前已经被浏览 4092 次,评论 0 次;

作者添加了以下标签: 负载均衡

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

支持海量域名的dns架构

环境 操作系统: Redhat 5.2 64位

dns服务器:bind9.5.0-p1

数据库: mysql5.1

本日志由 flyinweb 于 2009-09-25 15:54:48 发表到 DNS技术 中,目前已经被浏览 3903 次,评论 0 次;

作者添加了以下标签: DNS架构

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

利用keepalived 实现HA&LB

本日志由 flyinweb 于 2009-09-25 10:07:26 发表到 系统架构 中,目前已经被浏览 3960 次,评论 0 次;

作者添加了以下标签: keepalived负载均衡

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

Introduction

DNS (Domain Name Service) is one of the primary Internet services, which is to map human-friendly domain names to machine-friendly IP address. If there are a lot of people using DNS service (for example, subscribers use ISP's DNS server), one DNS server might be becoming a bottleneck, and the server might fail.

Scalable DNS cluster can help provide scalability and availability of DNS service.

The Example below is about setting up a cluster for recursive DNS but you can just as well use the same method for authorative DNS as well. Just remember that clients who use your cluster as a secondary nameservice would need to also-notify{} each of your realservers, not just the service-IP.

本日志由 flyinweb 于 2009-09-24 09:42:06 发表到 DNS技术 中,目前已经被浏览 4064 次,评论 0 次;

作者添加了以下标签: DNS ClusterLVS

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

实现Kickstart + NFS + DHCP + PXE的全自动远程无人值守安装:

本日志由 flyinweb 于 2009-09-24 09:12:57 发表到 Linux 中,目前已经被浏览 4129 次,评论 0 次;

作者添加了以下标签: Kickstart无人值守安装

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

                           -------------------
                                 HAProxy
                           Architecture  Guide
                           -------------------
                             version 1.1.34
                              willy tarreau
                               2006/01/29

本日志由 flyinweb 于 2009-09-23 13:54:58 发表到 系统架构 中,目前已经被浏览 4801 次,评论 0 次;

作者添加了以下标签: HAProxy

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

JVM内存JAVA_OPTS参数

最近几个月,做的性能测试项目中,发现了一些内存方面的问题,其中有涉及到对JBOSS里的JAVA_OPTS配置,例如一下所示;
JAVA_OPTS=”-server -Xms1536m -Xmx1536m -XX:NewSize=320m -XX:MaxNewSize=320m -XX:PermSize=96m -XX:MaxPermSize=256m -Xmn500m -XX:MaxTenuringThreshold=5″
JAVA_OPTS并不是已成不变的,不同的应用、软硬件环境下,要想充分发挥应用的性能,这些参数里边的设置可是非常有技巧和具有经验积累的。
经过查找资料,先看下JAVA_OPTS参数表示的意义。

-server:一定要作为第一个参数,在多个CPU时性能佳
-Xms:初始Heap大小,使用的最小内存,cpu性能高时此值应设的大一些
-Xmx:java heap最大值,使用的最大内存
上面两个值是分配JVM的最小和最大内存,取决于硬件物理内存的大小,建议均设为物理内存的一半。-XX:PermSize:设定内存的永久保存区域
-XX:MaxPermSize:设定最大内存的永久保存区域
-XX:MaxNewSize:
-Xss 15120 这使得JBoss每增加一个线程(thread)就会立即消耗15M内存,而最佳值应该是128K,默认值好像是512k.
+XX:AggressiveHeap 会使得 Xms没有意义。这个参数让jvm忽略Xmx参数,疯狂地吃完一个G物理内存,再吃尽一个G的swap。
-Xss:每个线程的Stack大小
-verbose:gc 现实垃圾收集信息
-Xloggc:gc.log 指定垃圾收集日志文件
-Xmn:young generation的heap大小,一般设置为Xmx的3、4分之一
-XX:+UseParNewGC :缩短minor收集的时间
-XX:+UseConcMarkSweepGC :缩短major收集的时间
提示:此选项在Heap Size 比较大而且Major收集时间较长的情况下使用更合适。

本日志由 flyinweb 于 2009-09-22 11:57:57 发表到 Linux 中,目前已经被浏览 4894 次,评论 0 次;

作者添加了以下标签: JVMJAVA_OPTS

Version 1.0 
Author: Falko Timme <ft [at] falkotimme [dot] com> 
Last edited 03/27/2006

This tutorial shows how to configure a MySQL 5 cluster with three nodes: two storage nodes and one management node. This cluster is load-balanced by a high-availability load balancer that in fact has two nodes that use the Ultra Monkey package which provides heartbeat (for checking if the other node is still alive) and ldirectord (to split up the requests to the nodes of the MySQL cluster).

 

In this document I use Debian Sarge for all nodes. Therefore the setup might differ a bit for other distributions. The MySQL version I use in this setup is 5.0.19. If you do not want to use MySQL 5, you can use MySQL 4.1 as well, although I haven't tested it.

This howto is meant as a practical guide; it does not cover the theoretical backgrounds. They are treated in a lot of other documents in the web.

This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

本日志由 flyinweb 于 2009-09-22 09:49:22 发表到 数据库技术 中,目前已经被浏览 4039 次,评论 0 次;

作者添加了以下标签: MySQL Cluster

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文