Hi all, Sorry for posting to nginx-devel but looking to see if I'm missing any details. I'm building a service discovery integration on top of our Nginx, things work fine but there are two caveats: - Nginx does not allow you to start with an empty upstream (aka no hosts). - Nginx errors out with invalid configuration if you set a weight to "0". I'm wondering if there is any technicalby pfischer - Nginx Development
Howdy, I've a project that I need to send the error log but it only accepts json format (I know I know), in the past I used logstash but right now that is not an option so looking to see if anyone has done any patch or ways to go around it. Ideally this should either be any of: a) Log to current error_log as json (through a patch) b) Or log to the current error_log in the current format and havby pfischer - Nginx Mailing List - English
Ahh, thanks a lot for the reference and sorry for the late reply, Maxim. So reading that and assuming I’m already collecting via an OOB/async call the weights of each server (the idea is to change the weights dynamically), then when I notice a change in the weight of one of the peers the things I should update are: For round-robin: - the -> weight of the peer (I assume via get_peer): theby pfischer - Nginx Development
Howdy! We are looking (unless it already exists) to add load feedback functionality to our setup, this basically means to have an API (either lua or through C) that we can use to change the weight of servers "dynamically" (either async or by hitting a specific URL). However when reading the code I'm a little confused on the difference between those weight variables, seems that sometimeby pfischer - Nginx Development
Hello, Seems like the upstream_bytes_sent variable only exists for the stream module and not for the http_upstream. Is there a way (via a variable would be better) to know the bytes that nginx has sent to upstream? Thanks! -- Pablo _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginxby pfischer - Nginx Mailing List - English
Howdy, First off sorry if the C code is a bit ugly, been a while since I did some C with nginx. So I've some very long running keep-alive connections that although keepalive_timeout helps it is just "not enough" or "fast enough" when I need it to stop draining connections. I looked at the headers-more plugin and then noted that nginx was still adding the Connection header viaby pfischer - Nginx Mailing List - English
Howdy folks, We are using nginx with stream TCP support but we are wondering if there is a way to have access logs for TCP for at least to know a few things such as: - timestamp (of request) - source address. - destination address - time. Is there a way to log this information? nginx version: nginx/1.9.9 Thanks! -- Pablo _______________________________________________ nginx mailing listby pfischer - Nginx Mailing List - English
Howdy! Was wondering if there's a way to know the memory usage that a zone (like limit_req) is having? Reason I ask is because I think I'm the value I've today might me a bit high but before I change it I would like to check during the day what is its current usage. Thanks! -- Pablo _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/maiby pfischer - Nginx Mailing List - English