File tree Expand file tree Collapse file tree 3 files changed +55
-4
lines changed
spring-cloud-gray-samples
spring-cloud-gray-service-a-sample
src/main/resources/config
spring-cloud-gray-service-b-sample/src/main/resources/config Expand file tree Collapse file tree 3 files changed +55
-4
lines changed Original file line number Diff line number Diff line change 35
35
<version >3.5</version >
36
36
</dependency >
37
37
38
+
39
+ <dependency >
40
+ <groupId >cn.springcloud.gray</groupId >
41
+ <artifactId >spring-cloud-starter-gray-client</artifactId >
42
+ </dependency >
38
43
</dependencies >
39
44
40
45
<build >
Original file line number Diff line number Diff line change @@ -18,12 +18,58 @@ eureka:
18
18
defaultZone : http://localhost:20001/eureka/
19
19
# xuhui: http://localhost:20001/eureka/
20
20
instance :
21
- instanceId : ${spring.cloud.client.ipAddress}:${spring.application.name}:${server.port}
21
+ # instanceId: ${spring.cloud.client.ipAddress}:${spring.application.name}:${server.port}
22
22
lease-renewal-interval-in-seconds : 10
23
23
lease-expiration-duration-in-seconds : 30
24
- prefer-ip-address : true
24
+ # prefer-ip-address: true
25
25
metadata-map :
26
26
version : v3
27
27
# zone: gray3
28
28
instanceId : s
29
29
# initial-status: starting
30
+
31
+
32
+ gray :
33
+ mock :
34
+ enabled : true
35
+
36
+ enabled : true
37
+ hystrix :
38
+ enabled : true
39
+ server :
40
+ url : http://gray-Server
41
+ loadbalanced : true
42
+ retryable : true
43
+ retryNumberOfRetries : 3
44
+ client :
45
+ event :
46
+ longpolling : 60000
47
+ runenv : web
48
+ infosUpdateIntervalTimerInMs : 0
49
+ infosInitializeDelayTimeInMs : 10000
50
+ instance :
51
+ grayEnroll : false
52
+ grayEnrollDealyTimeInMs : 20000
53
+ holdoutServer :
54
+ enabled : false
55
+ services :
56
+ " service-a " : starting
57
+ request :
58
+ track :
59
+ enabled : true
60
+ trackType : web
61
+ definitionsUpdateIntervalTimerInMs : 10000
62
+ definitionsInitializeDelayTimeInMs : 10000
63
+ web :
64
+ track-definitions :
65
+ - name : HttpReceive
66
+ path-patterns : /*
67
+ exclude-path-patterns : /test/*
68
+ # client:
69
+ # instance:
70
+ # grayEnroll: false #是否在启动后自动注册成灰度实例
71
+ logging :
72
+ level :
73
+ cn :
74
+ springcloud :
75
+ gray : debug
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ eureka:
39
39
availability-zones :
40
40
sh : xuhui,gray
41
41
serviceUrl :
42
- # defaultZone: http://localhost:20001/eureka/
42
+ defaultZone : http://localhost:20001/eureka/
43
43
xuhui : http://localhost:20001/eureka/
44
44
gray : http://localhost:20001/eureka/
45
45
registry-fetch-interval-seconds : 5
82
82
holdout-server :
83
83
enabled : true
84
84
services :
85
- service-a : starting
85
+ " service-a " : starting
86
86
request :
87
87
track :
88
88
enabled : true
You can’t perform that action at this time.
0 commit comments