# lb **Repository Path**: seenyea/lb ## Basic Information - **Project Name**: lb - **Description**: nodejs load balance - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-08 - **Last Updated**: 2023-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### #### 测试说明 1. 健康检查常规时间是1秒/次,所以,日志中都会看见三个负载均衡的服务器 2. 模拟负载均衡服务器不可用是10秒/次,所以,日志中出现某个负载均衡的服务器不可用,在下一个10秒内,是看见负载均衡服务器出现在访问日志中,直到模拟负载均衡服务器不可用函数再次被执行。 3. 在做ab测试前,请执行下面命令,启动服务 ```node app``` #### 使用ab(Apache Bench, Mac 自带) > 安装说明 #### 测试用例 ```ab -n 1000 -c 900 "http://localhost:8090/test"```