Welcome! Log In Create A New Profile

Advanced

Re: thread_pool in Windows

Maxim Dounin
March 04, 2018 10:50AM
Hello!

On Sat, Mar 03, 2018 at 10:27:21PM -0500, Sergey Sandler wrote:

> I am running Nginx as a proxy for a single-threaded server (Shiny R) in
> Windows;both the proxy and the server are located on the same machine. There
> are delays due to timeout errors:
> "upstream timed out: A connection attempt failed because the connected
> party did not properly respond after a period of time, request: "GET
> /shared/jquery.min.js HTTP/1.1""
> (and similar for other js and css files).
>
> This can probably be solved with 'location alias'. But this is tedious,
> since the required files are spread out in R/Lib subdirectories.
>
> The proper fix seems to be by restricting thread_pool with
> thread_pool io_pool threads=1;
> and a corresponding directive under 'location'
> aio threads=io_pool;
> However, Nginx reports: unknown directive "thread_pool".

The error message indicate that your upstream server can't cope
with load. Using thread pools in nginx won't help you with this,
you need to either tune your upstream server to handle more load,
or move some load away from it, e.g., by serving static files
directly by nginx.

> Is there a way to have 'thread_pool' supported in Windows?

Thread pools support for Windows is not implemented. If you need
them supported, you have to code relevant code bits first. But,
as explained above, this won't help with your particular problem.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

thread_pool in Windows

Sergey Sandler March 03, 2018 10:27PM

Re: thread_pool in Windows

Maxim Dounin March 04, 2018 10:50AM

Re: thread_pool in Windows

Sergey Sandler March 05, 2018 07:46PM

Re: thread_pool in Windows

Valentin V. Bartenev March 06, 2018 07:58AM

Re: thread_pool in Windows

Sergey Sandler March 06, 2018 10:38PM

Re: thread_pool in Windows

ru@nginx.com March 07, 2018 03:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready