Answer the question
In order to leave comments, you need to log in
How to deal with 504 error?
Good evening! There is a service, roughly speaking - a parser. Sends a huge number of requests and waits for a response. Located on a virtual dedicated server XEN-3 from reg.ru (512MB RAM, 2GHz processor). The problem is that it cannot process really large requests - it gives a 504 error. In ISP, I changed the maximum response time, in php I wrote such a line
, it seemed to get better, but it still doesn’t process really large requests. I want to note that it is important that he wait for an answer at all - time does not play a special role. So the option to increase the tariff will not help much.ini_set('max_execution_time', 230000);
PS Do not offer to optimize the script, please, the service works through the official API - the fastest way to get the necessary information - there is simply nowhere to optimize. The catch is in working with a huge amount of data.
Answer the question
In order to leave comments, you need to log in
Why is it in the browser to run once there is an unknown runtime.
Usually such a thing is done through queues, for example rabbitmq. And the processing itself is performed on the console. From the browser, this process is only initialized.
Today I faced the same problem. Yesterday it worked, today it doesn't. The panel, if I'm not mistaken, tried to download some packages during various independent updates. RAM in 512 MB was not enough, and everything flew. I contacted support, they updated and installed everything themselves.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question