FortiADC
FortiADC enhances the scalability, performance, and security of your applications whether they are hosted on premises or in the cloud.
guptas
Staff
Staff
Article Id 307331
Description

This article describes the case when the backend server is slow to respond to a client request, and FortiADC will forward a '504 Gateway timeout' error.

To avoid this error it is necessary to make some changes in the Application Profile of VIP.

Scope FortiADC.
Solution

If the server takes time to complete a response (let's say more than 70 seconds), and if the Server Timeout is set to less than 70 seconds then the user will get the error '504 Gateway timeout'. 

 

To avoid this error, it is necessary to make those changes:

Server Load Balance -> Application Profile -> Server Timeout -> 80.

Server Load Balance -> Application Profile -> Client Timeout -> 80.

Server Load Balance -> Application Profile -> HTTP Keepalive Timeout -> 80. 

 

ADC profile.png