GUI / nginx-upstream-dynamic-servers

An nginx module to resolve domain names inside upstreams and keep them up to date.
MIT License
311 stars 74 forks source link

Core dump when I use this module #29

Open linsichen206 opened 6 years ago

linsichen206 commented 6 years ago

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;

    location / {
        proxy_pass http://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)

mrobinet commented 5 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.

marc-barry commented 5 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.

By jdomain do you mean this one? https://github.com/wdaike/ngx_upstream_jdomain

mrobinet commented 5 years ago

Yes, that is the one.

zhaofeng0019 commented 4 years ago

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