`
gaojingsong
  • 浏览: 1153546 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

【负载均衡器之Pen 】

阅读更多

Pen 是一个负载均衡器,支持 UDP 和 TCP 基础协议,比如 HTTP 和 SMTP,在外部允许把多个服务器显示为一个,可以自动检测可用服务器上的分布式客户端和停掉的服务器。Pen 提供高可用性,高性能的特性。

这个负载算法会继续追踪客户端,也会尝试把他们访问的最后时间发送给服务器。客户端表有大量的插槽(默认是 2048,通过命令行参数可设置)。当表满了的时候,当前最小使用的那个会抛出去,换成新的。

这是个简单的优先轮询算法,会重复的连接发送客户端到不同的服务器。

当 Pen 检测到一个服务器不可用,就会扫描启动其他服务器,这样就可以避免负载平衡和”平滑“故障的问题。

 

 

This is pen, a load balancer for udp and tcp based protocols such as dns, http or smtp. It allows several servers to appear as one to the outside and automatically detects servers that are down and distributes clients among the available servers. This gives high availability and scalable performance.

 

The load balancing algorithm keeps track of clients and will try to send them back to the server they visited the last time. The client table has a number of slots (default 2048, settable through command-line arguments). When the table is full, the least recently used one will be thrown out to make room for the new one.

 

This is superior to a simple round-robin algorithm, which sends a client that connects repeatedly to different servers. Doing so breaks applications that maintain state between connections in the server, including most modern web applications.

 

 

Pen  是一个简单的负载平衡器,支持基础协议的TCP如HTTP或SMTP 。它允许多个服务器上显示为一个外部和自动检测服务器上,以减少现有服务器和客户之间的开销。这使高可用性和可扩展的性能。

该负载平衡算法跟踪客户,并尝试将它们发送回服务器,他们的最后一次访问。客户端表有若干插槽(默认2048 ,设置通过命令行参数) 。当表已满,则最近使用的人会被处理掉,以腾出空间给新的。

这是一个简单的优势轮询算法,该算法发出了一个客户端连接到不同的服务器反复。这样做的时候休息,应用,维护国家之间的连接的服务器,其中包括最先进的Web应用程序。

当 Pen 检测到服务器不可用,它会扫描再从该服务器后,最近使用过的一个。这样,我们得到的负载平衡和“公平”故障是免费的。

 

 

When pen detects that a server is unavailable, it scans for another starting with the server after the most recently used one. That way we get load balancing and "fair" failover for free.

 

Correctly configured, pen can ensure that a server farm is always available, even when individual servers are brought down for maintenance or reconfiguration. The final single point of failure, pen itself,can be eliminated by running pen on several servers, using vrrp to decide which is active.

 

 

A side-effect of load-balancing web servers is that several logfiles are produced, and by default, Pen operates in a proxy mode that makes all accesses seem to come from the load balancer.The program penlogd solves this problem by merging pen's log file with the ones produced by the web servers. See penlogd(1) and penlog for details.

 

The Direct Server Return and Transparent Reverse Proxy modes make accesses seem to come directly from the client. Multiple logfiles are still created, and Penlogd can still be used to consolidate them automatically.

 

 

This load balancer is known to work on FreeBSD, Linux, HP-UX and Solaris.Other Unixes should work as well, possibly requiring trivial changes.Success stories or problem reports are welcome.

 

 

If pen is started with the -w option, statistics are saved in html format when a USR1 signal is received. The cgi script penstats can be used to simplify this; it must be edited to reflect local conditions.

0
1
分享到:
评论

相关推荐

    coap-lb-benchmarks:CoAp负载均衡器测试

    不理我 这仅用于测试目的,一半甚至更多则被...负载均衡器 docker build -t coap-pen-benchmark ./pen docker run -p 5684:5684/udp -d --name coap-pen-benchmark coap-pen-benchmark docker build -t coap-udpbalance

    Pen Loadbalancer:Pen是用于基于udp和tcp的协议的负载平衡器。-开源

    Pen是Pen,一种用于基于udp和tcp的协议(例如dns,http或smtp)的负载平衡器。 它允许多台服务器从外部显示为一台,并自动检测已关闭的服务器,并在可用服务器之间分配客户端。 这提供了高可用性和可扩展的性能。

    一个公共类Test在其中的main函数中使用Pen类定义对象

    1. 定义Pen类方法 ①定义类的头部 class Pen ②定义类的主体部分,包括变量和方法:变量如colo r,length,price等;方法如Write(),GetPrice()等 ③定义多个构造方法,如Pen(),Pen(参数列表) 2. 定义对象的方法 ①定义...

    ascb.drawing.Pen 类

    var pen:Pen = new Pen(sampleSprite.graphics); Pen 类代理了所有Graphics类的方法。这意味着Graphics的所有方法都可以在Pen 类中使用。另外Pen 类还定义了一些API 能更简单的画出弧线,椭圆,多边形,星形等等。

    C#中Pen类的使用

    详细的介绍了P的自定义使用。及Pen画自定义图像

    Screenshots pen截图工具.rar

    Screenshots pen截图工具.rar/Screenshots pen截图工具/截图工具.rar

    ascb.drawing.pen

    var pen:Pen = new Pen(sampleSprite.graphics); Pen 类代理了所有Graphics类的方法。这意味着Graphics的所有方法都可以在Pen 类中使用。另外Pen 类还定义了一些API 能更简单的画出弧线,椭圆,多边形,星形等等。

    ApEn.m用于脑电及其他各类信号的ApEn熵分析

    用于脑电及其他信号的ApEn熵分析,将数据直接调入即可,使用方便

    pen.exe屏幕画笔工具

    pen.exe 屏幕画笔工具,单文件版,界面简洁,操作方便

    8pen输入法

    国外开发的8pen输入法,非常有新意的输入法,通过旋转手指最终回到原点来确定输入的内容,有需要的朋友可以反编译过来看看源代码学习一下。不过有点小缺憾,目前只支持英文输入,中文MS他们也不会吧哈哈哈

    ApEn近似熵算法

    非线性动力学方法。对数据长度的依赖性较小. ApEn可以用于小数据样本(n),并可实现实时计算. 抗噪声能力较强. 如果数据含有噪声,则可以将ApEn与噪声水平进行比较,以确定原始数据中真实信息的表达程度.

    Laser_Pen_Setup_V1.0.6_0112.exe

    Laser_Pen_Setup_V1.0.6_0112.exe

    [MATLAB] 近似熵 ApEn

    熵是系统无序的度量,近似熵可以仅仅依靠少量的数据,便可以对一个序列的无序性进行有效评估

    PEN 导线 (中央接地点)的 LI 标志集[手册].pdf

    PEN 导线 (中央接地点)的 LI 标志集[手册]pdf,

    Screen_Pen_new

    wince6.0系统,通过vs2005开发的屏幕画笔程序,主要实现透明桌面、各种形状绘制、位图橡皮差、荧光笔功能。

    最科幻的笔:Java Pen

    Java Pen的详细规格 博文链接:https://eastsun.iteye.com/blog/201050

    OpenCV_Pen.rar

    使用opencv库,利用鼠标移动画线,可调节画笔颜色、大小,消除锯齿问题,对开发类似画笔工具的开发者来说有一定的参考价值!

    PEN300.pdf

    PEN300

    Epic Pen.zip

    Epic Pen 是一款屏幕标记工具,可以直接让你在屏幕上进行操作,有铅笔及高亮两种模式,简单易用。无论是桌面,活动应用程序,开始菜单,任务栏或任何其他环境,都可以使用笔在屏幕上绘制图形。  Epic Pen 没有复杂...

    surface pen 鼠标中键单击 可用于呼出quicker

    surface pen 快捷按键. 将笔和surface配对, 在设置中将的笔快捷方式(单击, 双击 长按)设为启动经典应用, 浏览该exe文件即可使用. 该文件为鼠标中键单击 Ps: 可用于呼出quicker.

Global site tag (gtag.js) - Google Analytics