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

For http protocol. nginx-upsync-module, sync upstreams from consul or etcd and so on, dynamiclly modify backend-servers attributes(weight, max_fails, down...), needn't reload nginx

Results 74 nginx-upsync-module issues
Sort by recently updated
recently updated
newest added

ngx_http_upsync_connect_handler(): When ngx_event_connect_peer() fails, we shouldn't set the current timer to 0 as that immediatelly calls the current function again. Instead, we should call ngx_http_upsync_clean_event() to properly clean up &...

比如是否可以用linux内置的grep、sed等工具或者lua对 `upsync 127.0.0.1:1234/v1/lookup/name?name=1231 upsync_timeout=5m upsync_interval=5s upsync_type=consul_lookup;`的结果进行后置过滤,只筛选想要的item?

如果consul开启了ACL, 就必须传入一个token 才能访问里面的数据

https://github.com/apache/apisix/blob/master/docs/en/latest/discovery/consul_kv.md

2018/12/05 14:08:51 [error] 31184#0: [WARN] upsync_timeout: timed out reading upsync_server: 172.18.41.169:80 2018/12/05 14:08:51 [error] 31184#0: [WARN] upsync_timeout: timed out reading upsync_server: 172.18.41.169:80 2018/12/05 14:08:51 [error] 31183#0: [WARN] upsync_timeout: timed out...

目前需求想nginx配置websocket的时候也可以动态的获取配置 现在的问题是 websocket 不支持读取 upstream{xxxx} 提示 no live upstreams while connecting to upstream, client: 10.51.67.166, server: , request: "GET / HTTP/1.1", upstream: "http://app2/", host: "10.40.10.128:8000"

nginx1.8.1 或者 nginx 1.14.2 2个版本测试编译进这个模块以后,nginx进程占用内存一直增加不下降。 去掉这个模块以后业务低峰期nginx内存会自动释放。

2018/10/27 13:04:41 [error] 26187#0: upsync_consul_parse_init: recv upstream "test" error; http_status: 504 2018/10/27 13:04:41 [error] 26187#0: upsync_consul_parse_init: recv upstream "test2" error; http_status: 504 2018/10/27 13:04:41 [error] 26187#0: upsync_consul_parse_init: recv upstream "test3"...

1. 环境 OpenResty-1.15.8+nginx-upsync-module-2.1.3 2. 配置比较多 upstream有6500个,upstream中的server有4.5w个 3. 相应的upsync配置 ```conf upstream my-ups { server 127.0.0.1:11111; upsync 127.0.0.1:2379/v2/keys/upstreams/my-ups/ upsync_timeout=6m upsync_interval=30s upsync_type=etcd strong_dependency=off; upsync_dump_path /nginx/conf/backend/http-my-ups.conf; include /nginx/conf/backend/http-my-ups.conf; #check interval=5000 rise=1 fall=2 timeout=1000 type=tcp...