File tree 3 files changed +3
-3
lines changed
springcloud-consul-ribbon-sample
springcloud-nacos-ribbon-sample
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Ribbon是Netflix公司开源的基于客户端的负载均衡组件,可以简
23
23
24
24
#### Ribbon的核心接口组成部分
25
25
| 接口 | 作用 | 默认值 |
26
- | ------------ | ------------ | ------------ | ------------ |
26
+ | ------------ | ------------ | ------------ |
27
27
| IClientConfig | 读取配置 | DefultClientConfigImpl |
28
28
| IRule | 负载均衡规则,选择实例 | ZoneAvoidanceRule |
29
29
| IPing | 筛选掉Ping不通的实例 | DummyPing |
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Ribbon是Netflix公司开源的基于客户端的负载均衡组件,可以简
23
23
24
24
#### Ribbon的核心接口组成部分
25
25
| 接口 | 作用 | 默认值 |
26
- | ------------ | ------------ | ------------ | ------------ |
26
+ | ------------ | ------------ | ------------ |
27
27
| IClientConfig | 读取配置 | DefultClientConfigImpl |
28
28
| IRule | 负载均衡规则,选择实例 | ZoneAvoidanceRule |
29
29
| IPing | 筛选掉Ping不通的实例 | DummyPing |
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ service.url.nacos.provider.service=http://nacos-provider-service
13
13
# 开启Ribbon的饥饿加载模式
14
14
ribbon.eager-load.enabled =true
15
15
# 指定需要饥饿加载的服务名
16
- ribbon.eager-load.clients =consul -provider-service
16
+ ribbon.eager-load.clients =nacos -provider-service
17
17
# Ribbon的超时
18
18
ribbon.ConnectTimeout =3000
19
19
ribbon.ReadTimeout =60000
You can’t perform that action at this time.
0 commit comments