-
Notifications
You must be signed in to change notification settings - Fork 18
/
application.yml
142 lines (109 loc) · 4.04 KB
/
application.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
server:
port: 0
service:
defaultMinMs: 5
defaultMaxMs: 20
# 1.0 means 100%, see http://cloud.spring.io/spring-cloud-sleuth/spring-cloud-sleuth.html#_sampling
spring.sleuth.sampler.percentage: 1.0
logging:
level:
root: WARN
se.callista: INFO
# Set DEBUG level to activate our log-filter to log each request and response
org.springframework.web.filter.CommonsRequestLoggingFilter: DEBUG
# FIXME: Get rid on NPE-exceptions in SC 1.1
com.netflix.hystrix.contrib.javanica.command.GenericCommand: ERROR
# Get info on failed OAuth access token validations
org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices: INFO
# Get info regarding connection to the cofig server and retries if required
org.springframework.cloud.config.client.ConfigServicePropertySourceLocator: INFO
org.springframework.retry.support.RetryTemplate: DEBUG
# Set INFO to see the allocated port
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer: INFO
org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainer: INFO
# Set DEBUG level on Hystrix to get an error message when a fallback method is used.
com.netflix.hystrix: DEBUG
com.netflix.hystrix.strategy.properties.HystrixPropertiesChainedArchaiusProperty: WARN
# To get rid of fake WARN messages: "Deprecated trace headers detected. Please upgrade Sleuth to 1.1 or start sending headers present in the TraceMessageHeaders class",
org.springframework.cloud.sleuth.instrument.messaging.MessagingSpanExtractor: ERROR
spring.rabbitmq:
host: localhost
port: 5672
hystrix:
threadpool:
default:
# Maximum number of concurrent requests when using thread pools (Default: 10)
coreSize: 100
# Maximum LinkedBlockingQueue size - -1 for using SynchronousQueue (Default: -1)
maxQueueSize: -1
# Queue size rejection threshold (Default: 5)
queueSizeRejectionThreshold: 5
command:
default:
circuitBreaker:
sleepWindowInMilliseconds: 30000
requestVolumeThreshold: 3
execution:
isolation:
# strategy: SEMAPHORE, no thread pool but timeout handling stops to work
strategy: THREAD
thread:
timeoutInMilliseconds: 4000
ribbon:
# FelFelFel: 1000
# capital or not capital, that is the question...
# Interval to refresh the server list from the source
serverListRefreshInterval: 1000
# Max number of retries on the same server (excluding the first try)
maxAutoRetries: 1
# Max number of next servers to retry (excluding the first server)
maxAutoRetriesNextServer: 1
# Interval to refresh the server list from the source
ServerListRefreshInterval: 1000
# Max number of retries on the same server (excluding the first try)
MaxAutoRetries: 1
# Max number of next servers to retry (excluding the first server)
MaxAutoRetriesNextServer: 1
#
# # Connect timeout used by Apache HttpClient
# connectTimeout: 100
#
# # Read timeout used by Apache HttpClient
# readTimeout: 10000
#
# ConnectTimeout: 100
# ReadTimeout: 3000
eureka:
instance:
leaseRenewalIntervalInSeconds: 1
leaseExpirationDurationInSeconds: 1
metadataMap:
instanceId: ${vcap.application.instance_id:${spring.application.name}:${spring.application.instance_id:${random.value}}}
client:
# Default values comes from org.springframework.cloud.netflix.eurek.EurekaClientConfigBean
registryFetchIntervalSeconds: 1
instanceInfoReplicationIntervalSeconds: 1
initialInstanceInfoReplicationIntervalSeconds: 1
---
# For deployment in Docker containers
spring:
profiles: docker
server.port: 8080
spring.rabbitmq.host: rabbitmq
eureka:
instance:
preferIpAddress: true
client:
serviceUrl:
defaultZone: http://discovery:8761/eureka/
---
# For deployment in Cloud Foundry
spring:
profiles: cloud
eureka:
instance:
hostname: ${vcap.application.uris[0]:localhost}
nonSecurePort: 80
client:
serviceUrl:
defaultZone: http://ml-public-ds-1.cfapps.io/eureka/