-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsumer-dev.yml
63 lines (55 loc) · 1.39 KB
/
consumer-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
spring:
application:
name: consumer-service-v2
# zipkin:
# base-url: http://127.0.0.1:9411/
# sleuth:
# sampler:
# rate: 1
# boot:
# admin:
# client:
# url: http://127.0.0.1:90
eureka:
client:
service-url:
defaultZone: http://ixiaoyu2:[email protected]:7000/eureka
healthcheck:
enabled: true
logging:
level:
com.ixiaoyu2: debug
ribbon:
# 连接超时时间(ms)
ConnectTimeout: 1000
# 业务逻辑超时时间(ms)
ReadTimeout: 2000
# 同一台实例最大重试次数,不包括首次调用
MaxAutoRetries: 1
# 重试负载均衡其他的实例最大重试次数,不包括首次调用
MaxAutoRetriesNextServer: 1
# 是否所有操作都重试
OkToRetryOnAllOperations: false
feign:
hystrix:
enabled: true
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: always
hystrix:
dashboard:
proxy-stream-allow-list: localhost
command:
default:
execution:
isolution:
# 隔离策略,默认是Thread, 可选Thread|Semaphore
# thread 通过线程数量来限制并发请求数,可以提供额外的保护,但有一定的延迟。一般用于网络调用
# semaphore 通过semaphore count来限制并发请求数,适用于无网络的高并发请求
strategy: SEMAPHORE
myconfig-version: v5