Answer the question
In order to leave comments, you need to log in
What parameters to change to avoid 504 errors?
There is a "heavy" script, a cycle in PHP with an insert into the database. This is just a test script and should not be changed. I want to know how long it takes, but nginx throws out a 504 error and “upstream timed out” in the log. What to change in the muscle, php and nginx configs in order to wait for the script to be executed? Changed max_execution_time in php, didn't help.
nginx version: nginx/
1.0.14 PHP 5.3.17-1~dotdeb.0 with Suhosin-Patch (cli) in php-fpm mode
mysql> 5.5.22-1~dotdeb.0
Answer the question
In order to leave comments, you need to log in
add to nginx
if we use proxy_pass: proxy_read_timeout 999999;
if we use fcgi: fastcgi_read_timeout 999999;
Faced such an error when working with a database on another server. None of the above timeouts helped. Tuning my.cnf didn't help either. The refusal of work with a DB on a network helped.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question