nginx-upsync-module
nginx-upsync-module copied to clipboard
ip_hash配置不生效
在upstream文件中,这么配置 ,但是没有生效ip_hash不起作用,请帮忙看下
upstream backend_xxx_xxx {
upsync xx-xxxx-etcd-xxx.xxx.org:2335/v2/keys/xxx/xxx/xxx/config/upstream/backend_xxx_xxx upsync_timeout=6m upsync_interval=5000ms upsync_type=etcd strong_dependency=off;
upsync_dump_path /opt/xxx/xxx/upsync-upstream/backend_xxx_xxx.conf;
upsync_lb ip_hash;
include /opt/xxx/xxx/upsync-upstream/backend_xxx_xxx.conf;
}
楼主你的问题解决了吗?同样遇到问题
我这边摸索出来的方式是: ip_hash; upsync xx-xxxx-etcd-xxx.xxx.org:2335/v2/keys/xxx/xxx/xxx/config/upstream/backend_xxx_xxx upsync_timeout=6m upsync_interval=5000ms upsync_type=etcd strong_dependency=off; upsync_dump_path /opt/xxx/xxx/upsync-upstream/backend_xxx_xxx.conf; include /opt/xxx/xxx/upsync-upstream/backend_xxx_xxx.conf; 不用upsync_lb 这个功能模块,好像是可以的,还在验收中