https://github.com/netbuffer/load-balance-test
use spring-boot test load-balance
https://github.com/netbuffer/load-balance-test
cmd loadbalance nginx session spring-boot
Last synced: 3 months ago
JSON representation
use spring-boot test load-balance
- Host: GitHub
- URL: https://github.com/netbuffer/load-balance-test
- Owner: netbuffer
- Created: 2018-04-04T08:01:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-10T14:14:10.000Z (over 7 years ago)
- Last Synced: 2024-12-26T04:10:36.970Z (about 1 year ago)
- Topics: cmd, loadbalance, nginx, session, spring-boot
- Language: Java
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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工具
