# sbalance **Repository Path**: postgresqlPlus/sbalance ## Basic Information - **Project Name**: sbalance - **Description**: 透明的负载均衡器&http正向代理 * master-workers架构,http正向代理由独立的dns请求以及缓冲进程 * 使用epoll(ET)模式,采用全异步方式(双缓存,实现双向同时转发); * 事件管理机制(事件池,事件对象分离) * 使用红黑树超时管理 * 灵活且简单的配置文件 * 多种可配置负载均衡的算法 * 实现可以多个分组同时负载 * 不间断在线配置参数功能 * http正向代理实现长连接以及https代理 * 全异步dns解析 - **Primary Language**: Unknown - **License**: LGPL-2.1 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 15 - **Created**: 2024-04-19 - **Last Updated**: 2024-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 透明的负载均衡器&http正向代理(依赖ares) 1. 灵活的配置 2. 使用红黑树超时管理 3. 全异步模型(双缓存,实现双向同时转发) 4. 多进程工作组 5. 可配置的负载均衡的算法 6. 可以多个分组同时负载 7. 独立的全异步dns 8. 在线工作中配置文件 9. 应用级缓冲池 10. 高性能,低内存消耗 环境(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) 作为http proxy时,可以同时开多个视频,以及同时访问20几个页面没有问题!