# sbalance **Repository Path**: geekcheng/sbalance ## Basic Information - **Project Name**: sbalance - **Description**: 透明的负载均衡器 1. 使用epoll(ET)模式,管理事件(事件池,事件对象分离) 2. 使用红黑树超时管理 3. 全异步模型(双缓存,实现双向同时转发) 4. 单进程单线程-但是依然高效 5. 可配置的负载均衡的算法 6. 可以多个分组同时负载 - **Primary Language**: Unknown - **License**: LGPL-2.1 - **Default Branch**: withtimeout - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 15 - **Created**: 2015-05-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 透明的负载均衡器(同时发布了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)