9.14. Zuul Timeouts
If you want to configure the socket timeouts and read timeouts for requests proxied through Zuul, you have two options, based on your configuration:
If Zuul uses service discovery, you need to configure these timeouts with the ribbon.ReadTimeout and ribbon.SocketTimeout Ribbon properties.
If you have configured Zuul routes by specifying URLs, you need to use zuul.host.connect-timeout-millis and zuul.host.socket-timeout-millis.
官网描述非常清楚,配置如下:
zuul:
host:
connect-timeout-millis: 8000
socket-timeout-millis: 8000
max-total-connections: 8000
ribbon:
ConnectTimeout: 6000
ReadTimeout: 6000