I am using AWS t3.xlarge server with 4 vcpu 16 Memero (GIB), with only one cron running, I am having an Error 524 timeout issue every time when I restore the database.
May I know what causes the issue?
Please advice.
I am using AWS t3.xlarge server with 4 vcpu 16 Memero (GIB), with only one cron running, I am having an Error 524 timeout issue every time when I restore the database.
May I know what causes the issue?
Please advice.
I’d recommend reviewing the following:
This is almost certainly an issue at your origin. Restoring a database should probably be a command line thing you run, and not a web request.
Thank you for your reply. I have tested it. For the data restoration that is less than 100 seconds, I can run it without any issue, however for the restoration that exceeded 100 seconds, it will end with error 524 regardless of the timeout setting of my server, I understand that 100 seconds is Cloudfront standard and I have gone through the documentation, it seems I have an issue with the #4 as follow, would you please provide some details how do I implement that?
I may have to go without Cloudflare because of this issue.
As it says, having a long standing operation in a single request is a bad design decision.
You should instantly return a status, i.e to say that starting the operation was successful and then have a page where you can continuously poll for the progress of the aforementioned operation.
As an example from REST API Best Practices — Decouple Long-running Tasks from HTTP Request Processing | by Shawn Shi | Geek Culture | Medium :
This is bad since we’re waiting for the operation to complete before returning a response.
This is good - we get acknowledgement of our request and then we can continuously poll to get the operation status.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.