Re: nginx taking too long to respond

2021-07-19 Thread Mathew Heard
Alejandro, Not all up in Lua is non blocking. In fact many libraries for file ok are blocking. I would check that Also technically the engine (Lua script) processing is blocking and that can also be an issue if there is heavy processing . Hope that helps, Mathew On Mon, 19 Jul 2021, 10:26 pm m

Re: nginx taking too long to respond

2021-07-19 Thread mrgonza78
Thanks for the responde Maxim, I appreciate it. In our case we're not using perl modules and we're not serving files either. We're using a bunch of known lua/resty libraries (we're using openresty), but AFAIK all IO in lua is non-blocking. On the other hand, that 75s delay in processing was j

Re: nginx taking too long to respond

2021-07-16 Thread Maxim Dounin
Hello! On Fri, Jul 16, 2021 at 02:54:29PM -0400, mrgonza78 wrote: > I have an nginx used mainly as a reverse proxy for a couple of upstream > services. This nginx has a simple endpoint used for health checks: > > location /ping { return 200 '{"ping":"successful"}'; } > > The problem I'm hav

nginx taking too long to respond

2021-07-16 Thread mrgonza78
I have an nginx used mainly as a reverse proxy for a couple of upstream services. This nginx has a simple endpoint used for health checks: location /ping { return 200 '{"ping":"successful"}'; } The problem I'm having is that this ping takes too long to be responded: $ cat /proc/loadavg;