nginx-upsync-module icon indicating copy to clipboard operation
nginx-upsync-module copied to clipboard

ip_hash配置不生效

Open sophie0000 opened this issue 6 years ago • 2 comments

在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;

}

sophie0000 avatar Nov 21 '19 06:11 sophie0000

楼主你的问题解决了吗?同样遇到问题

caibird1990 avatar May 23 '23 08:05 caibird1990

我这边摸索出来的方式是: 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 这个功能模块,好像是可以的,还在验收中

caibird1990 avatar May 26 '23 08:05 caibird1990