Re: Occasional successful upstreamed requests that don't get picked up

2017-05-16 Thread Peter Booth
Ryan, What is the topology of the system that you are describing? You mention kong/nginx, an upstream host, a load balancer, clients ... Are the load balancers hardware or software devices? Is kong nginx simply forwarding to a load-balancer VIP that fronts multiple upstream sy

Re: request_buffering gotchas?

2017-05-16 Thread sdizazzo
Thanks for your response, Francis! I don't have complete control over the client (coworker), but inspecting the header, that was in fact the case. I tried switching to using proxy_pass and proxy_request_buffering instead of the uwsgi module, which doesn't have quite as harsh of a limitation... "

Re: Auto refresh for expired content?

2017-05-16 Thread Francis Daly
On Tue, May 16, 2017 at 12:47:57PM -0400, mkuehn wrote: Hi there, untested, but: > Now my question, is it possible that Nginx can "automaticly" get a fresh > copy from the proxy_pass, when it recognized that the cached request is > expired - so that none User has to wait about 5 sec to get fresh

Re: request_buffering gotchas?

2017-05-16 Thread Francis Daly
On Tue, May 16, 2017 at 12:49:32PM -0400, sdizazzo wrote: Hi there, > My client posts the > request, and I expect nginx to begin forwarding it on to uwsgi as soon as > data begins coming in...but...no matter what I do, uwsgi is not called until > after the upload buffers in nginx. The entire upl

Occasional successful upstreamed requests that don't get picked up

2017-05-16 Thread rcutter
Hello, I believe I have a tuning issue with NGINX - hoping someone can point me in the right direction! About 1 in 60,000 requests being proxied through Kong/NGINX are timing out. These requests are getting to the upstreamed host and are successfully logged in the load balancer in front of this u

request_buffering gotchas?

2017-05-16 Thread sdizazzo
Hi! I'm new to nginx, and working on trying to stream an upload using a multipart-form through nginx to uwsgi and to my app. My client posts the request, and I expect nginx to begin forwarding it on to uwsgi as soon as data begins coming in...but...no matter what I do, uwsgi is not called until a

Re: Re :Re: Re:Reverse-proxying: Flask app with Bokeh server on Nginx

2017-05-16 Thread Francis Daly
On Mon, May 15, 2017 at 11:59:27AM +0200, J K via nginx wrote: Hi there, To recap: you had installed a "flask" web server and a "bokeh" web server. You put the "flask" one behind nginx, so that clients would talk to nginx and to bokeh. And the clients were happy to talk http to nginx and http t

Auto refresh for expired content?

2017-05-16 Thread mkuehn
Hi Folks, i´m using Nginx as a proxy for my mobile app - which works pretty fine so far! My main cache has the following config: proxy_cache_path /var/cache/nginx/spieldaten levels=1:2 keys_zone=spieldaten:100m max_size=150m inactive=5m use_temp_path=off; proxy_cache_valid 200 302 5m; If a requ

Re: behavior of cache manager in version 1.10.3

2017-05-16 Thread Maxim Dounin
Hello! On Tue, May 16, 2017 at 12:45:50AM -0400, Michael Corn wrote: > One more question relating to cache cleaning. If I use version 1.11.5 or > greater, and > I set manager_sleep to a small number, say 50ms, And I set > use_temp_path=off. > Now, I start receiving a large file from the upstream

Re: nginx ssl_verify_client on leads to segmentation fault

2017-05-16 Thread Thomas Glanzmann
Hello Maxim, > Could you please confirm you do _not_ have ssl_certificate defined > in the server block where you've added ssl_verify_client? I confirm the same, the ssl_certificate is defined in another server block. The fix works for me, thanks. Cheers, Thomas

UDP Load balancer does not scale

2017-05-16 Thread ajmalahd
Hi I am trying to set up a UDP load balancer using Nginx. Initially, I configured 4 usptream servers with two server processes running on each of them. It gave a throughput of around 24000 query per second when tested with dnsperf. When I try to add two more upstreams servers, the throughput is no