Increase time out

We have been sporadically seeing 524 errors and would like to increase the time out from the default 100 sec to 300 sec. What are the steps to do so?

Increasing the timeout is only an option on an Enterprise agreement. You can click the linked error number in your post to view the Community #tutorial that has recommendations on fixing timeout errors. I have included an additional link to the relevant developer documentation.