主题
http连接池配置
参考以下配置
yaml
spring:
cloud:
gateway:
httpclient:
connect-timeout: 60000 # 连接超时时间,(以毫秒为单位)
response-timeout: PT30S #响应超时时间
pool: # 连接池配置
type: fixed # 连接池类型
max-idle-time: 60000 # 空闲时,最大的存活时间,如果为空,没有最大空闲时间(以毫秒为单位)
max-connections: 1000 # 最大连接数
acquire-timeout: 30000 # 获取连接超时时间(以毫秒为单位)
max-life-time: PT5M # 最大存活时间
metrics: true # 监控