paic Posted 2 hours ago Posted 2 hours ago Hello Support ! The endpoint on the Python backend of my project does some heavy data processing. Sometimes resulting in very long response time >1min depending on the data input. This result in the connection being "timed out" by nginx. Also when this happens it sometimes restart the server. These are the errors I get: upstream timed out (110: Connection timed out) while SSL handshaking to upstream peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking to upstream Would it be possible to change the default timeout setting and prevent restarting the server when it happens ? 180s would be enough. I've read it can be done with the following settings. proxy_connect_timeout 180s; proxy_send_timeout 180s; proxy_read_timeout 180s; fastcgi_send_timeout 180s; fastcgi_read_timeout 180s; Domain: grafolana.helioho.st Thank you, Regards Quote
wolstech Posted 1 hour ago Posted 1 hour ago This would be up to Krydos. We typically limit script runtimes to prevent users from using more than their fair share of resources and causing high load, so it's quite possible (if not likely) the answer will be no, in which case the solution will be to rewrite your code. You could either make it more efficient, or you could do the work in multiple smaller batches that finish in less than 60 seconds. Your account shows 0 load over the last 24 hours though, so I don't have any data to look at... Quote
paic Posted 1 hour ago Author Posted 1 hour ago I understand that the answer could be no and that would be totally reasonable. I was expecting to see some data in the "Account Load" dashboard but yeah it still shows 0. That would actually help address the impact my script has on the server. Maybe there is actually an issue with the memory and the CPU usage report for my server ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.