Open linsichen206 opened 6 years ago
We switched off of this in favor of jdomain for this same reason. It would core dump and then ips would go stale as DNS resolution was no longer being updated.
We switched off of this in favor of jdomain for this same reason. It would core dump and then ips would go stale as DNS resolution was no longer being updated.
By jdomain
do you mean this one? https://github.com/wdaike/ngx_upstream_jdomain
Yes, that is the one.
i think i have solve this problem. would you like try my module or check it out for me? thanks a lot https://github.com/zhaofeng0019/nginx-upstream-dynamic-resolve-servers
When I try to use this module, it core dump.(nginx version 1.13.11) hope to receive a reply. Configure as follows: http { resolver 127.0.0.1:53; upstream tcp_test { server appa.service.consul:3307 resolve; } server { listen 8888;
proxy_pass tcp_test;
} Error log as follows: 2018/04/19 17:06:23 [debug] 6880#0: epoll add event: fd:6 op:1 ev:00002001 2018/04/19 17:06:23 [debug] 6880#0: upstream-dynamic-servers: Initial DNS refresh of 'appa.service.consul' in 64ms 2018/04/19 17:06:23 [debug] 6880#0: event timer add: 40429384: 64:3948716 2018/04/19 17:06:23 [notice] 20172#0: signal 17 (SIGCHLD) received from 6880 2018/04/19 17:06:23 [alert] 20172#0: worker process 6880 exited on signal 11 (core dumped)