ngx_upstream_jdomain
ngx_upstream_jdomain copied to clipboard
An asynchronous domain name resolution module for nginx upstream.
We currently run are using `ngx_upstream_jdomain` release 1.4.0 as a forwarding proxy for talking to some downstream services that have rotating IP addresses. We run this in Kubernetes clusters in...
This is useful for setups taking customer supplied DNS names or for increase reliability in certain situations. Existing default behaviour preserved unless ignore_failure=1 provided
we need to save the server addr somewhere else, just like below static ngx_int_t ngx_http_upstream_get_jdomain_peer(ngx_peer_connection_t *pc, void *data) { ngx_http_upstream_jdomain_peer_data_t *jp = data; ngx_http_request_t *r; ngx_http_upstream_t *u; ngx_int_t rc; ngx_str_t...
hi folks ```c #define NGX_JDOMAIN_DEFAULT_SERVER_FAIL_TIMEOUT 10 #define NGX_JDOMAIN_DEFAULT_SERVER_MAX_FAILS 1 #define NGX_JDOMAIN_DEFAULT_SERVER_WEIGHT 1 #define NGX_JDOMAIN_DEFAULT_PORT 80 #define NGX_JDOMAIN_DEFAULT_PORT_LEN 2 ``` we find that fail_timeout,max_fails,weight these four dispositions never change, if these...
I use keepalive with jdomain: ` keepalive_timeout 65; keepalive_requests 100; upstream jdomain-upstream {jdomain test.my.com port=443 interval=60; keepalive 8;}` but some time, requests get 502 "no live upstreams while connecting to...