注册
登录
EAAS/NFV
>>
load-balance-test
>>
返回
项目作者:
netbuffer
项目描述 :
use spring-boot test load-balance
高级语言:
Java
项目主页:
项目地址:
git://github.com/netbuffer/load-balance-test.git
创建时间:
2018-04-04T08:01:45Z
项目社区:
https://github.com/netbuffer/load-balance-test
开源协议:
下载
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
微信扫码使用gitee工具