Commit 80fcc44213a0de47a4ac9a7ef851f35ce13bc0c1

Authored by luotong
1 parent 7b732d83

添加ribbon,客户端负载均衡配置

Showing 1 changed file with 15 additions and 0 deletions
class-service.yml
@@ -82,6 +82,14 @@ endpoints: @@ -82,6 +82,14 @@ endpoints:
82 health: 82 health:
83 sensitive: false 83 sensitive: false
84 84
  85 +ribbon:
  86 + eureka:
  87 + enabled: true
  88 + UseIPAddrForServer: true
  89 + ReadTimeout: 5000
  90 + ConnectTimeout: 10000
  91 +
  92 +
85 eureka: 93 eureka:
86 instance: 94 instance:
87 hostname: class-service 95 hostname: class-service
@@ -185,6 +193,13 @@ endpoints: @@ -185,6 +193,13 @@ endpoints:
185 enabled: true 193 enabled: true
186 health: 194 health:
187 sensitive: false 195 sensitive: false
  196 +
  197 +ribbon:
  198 + eureka:
  199 + enabled: true
  200 + UseIPAddrForServer: true
  201 + ReadTimeout: 5000
  202 + ConnectTimeout: 10000
188 203
189 eureka: 204 eureka:
190 instance: 205 instance: