I’ve tried “request_terminate_timeout, fastcgi_connect_timeout,
fastcgi_read/write_timeout”, but no help.
What can I do next step ?
The “connection reset by peer” means that the connection was
terminated by your backend, not by nginx. There isn’t much you
can do on nginx side. Consider checking php-fpm logs instead, may
be you are hitting some limit like execution time limit or
something.
The “connection timed out” means that nginx wasn’t able to connect
to the backend in time, fastcgi_connection_timeout is something
you can tune - though the default is 60s, and it should be big
enough for normal use. Again, consider looking into your backend
to find out why connection takes so long - likely it’s overloaded
and can’t process connection requests in time.