2 Star 1 Fork 14

liexusong / sbalance

forked from hotmocha / sbalance 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
ReadMe
沟通联系方式:hotmocha@126.com
透明的负载均衡器(同时发布了http proxy版本-但是目前很不稳定)
1. 使用epoll(ET)模式,管理事件(事件池,事件对象分离)
2. 使用红黑树超时管理
3. 全异步模型(双缓存,实现双向同时转发)
4. 单进程单线程-但是依然高效
5. 可配置的负载均衡的算法
6. 可以多个分组同时负载
环境(vmware虚拟机(1G内存-1个处理器)-3.13.0-24-generic #46-Ubuntu SMP)
【物理主机:8G内存 i5-3代处理器-低级SSD】下面是100000次请求本地apache主页面
Server Software:        Apache/2.4.7
Server Hostname:        127.0.0.1
Server Port:            8881
Document Path:          /
Document Length:        11510 bytes
Concurrency Level:      1000
Time taken for tests:   657.695 seconds
Complete requests:      100000
Failed requests:        729
(Connect: 0, Receive: 0, Length: 729, Exceptions: 0)
Total transferred:      1169710193 bytes
Connection Times (ms)
min  mean[+/-sd] median   max
Connect:        0  205 507.1      1    7046
Processing:   559 5896 12287.0   2909  221220
Waiting:        0 5025 7728.9   2813   79240
Total:        721 6101 12329.1   3276  221220
Percentage of the requests served within a certain time (ms)
50%   3276
66%   4301
75%   5057
80%   5618
90%   9518
95%  17135
98%  36382
99%  65213
100%  221220 (longest request)

Repository Comments ( 0 )

Sign in to post a comment

About

透明的负载均衡器 1. 使用epoll(ET)模式,管理事件(事件池,事件对象分离) 2. 使用红黑树超时管理 3. 全异步模型(双缓存,实现双向同时转发) 4. 单进程单线程-但是依然高效 5. 可配置的负载均衡的算法 6. 可以多个分组同时负载 expand collapse
LGPL-2.1
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://git.oschina.net/liexusong/sbalance.git
git@git.oschina.net:liexusong/sbalance.git
liexusong
sbalance
sbalance
withtimeout

Search