# load-balance-test **Repository Path**: netbuffer/load-balance-test ## Basic Information - **Project Name**: load-balance-test - **Description**: use spring-boot test load-balance - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-04 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # load-balance-test ### step * 在终端中执行:`run-app.cmd 9000 9001 9002`来启动多个app实例 * 以`nginx.conf`中的配置启动nginx * 启动`localhost`访问 ### 问题 * nginx的ip_hash算法使用客户端ipv4地址的前3个octets,同一局域网中的设备访问会被分配到同一个后端server处理 [http://nginx.org/en/docs/http/ngx_http_upstream_module.html#ip_hash](http://nginx.org/en/docs/http/ngx_http_upstream_module.html#ip_hash) # 微信扫码使用gitee工具 ![gitee工具](https://s1.ax1x.com/2018/08/10/P60MMF.jpg)