只改application.yml文件即可:
eureka:
client:
serviceUrl:
defaultZone: http://localhost:7087/eureka/
server:
port: 7089
spring:
application:
name: service-zuul
zuul:
max:
host:
connections: 1000000
host:
maxTotalConnections: 6000000
maxPerRouteConnections: 600000
routes:
api-a:
path: /dbmeta/**
serviceId: service-dbmeta
api-b:
path: /kylin/**
serviceId: c4i-store
ribbon:
ReadTimeout: 6000000
ConnectTimeout: 6000000
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 1
hystrix:
command:
c4i-store:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 6000000
ribbon:
ReadTimeout: 600000
ConnectTimeout: 600000