-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
89 lines (86 loc) · 2.46 KB
/
config.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
logging:
level: INFO
loggers:
honstain: DEBUG
appenders:
# - type: console
# threshold: DEBUG
# layout:
# type: json
# flattenMdc: true
- type: console
threshold: DEBUG
layout:
type: json
flattenMdc: true
# Setup initial configuration following Dropwizard docs - dropped HTTPS and certs
# https://www.dropwizard.io/en/latest/manual/configuration.html#default
server:
minThreads: 10
maxThreads: 100 # Setting this super low to help me explore the system under resource constraints
adminMinThreads: 1
adminMaxThreads: 4
adminContextPath: /
applicationContextPath: /
applicationConnectors:
- type: http
port: 7070
adminConnectors:
- type: http
port: 7071
requestLog:
appenders:
- type: file
threshold: ALL
layout:
type: access-json
timestampFormat: "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
prettyPrint: false
appendLineSeparator: true
includes: [timestamp, remoteAddress, remoteUser, protocol, method, requestUri, statusCode, requestTime, contentLength, userAgent]
requestHeaders:
- ProvenanceID
# responseHeaders:
# - X-Request-Id
# requestAttributes:
# - SomeAttributeName
customFieldNames:
timestamp: "@timestamp"
additionalFields:
service-name: "product-service"
logFormat: "%h %l %u [%date{ISO8601}] %I '%r' %s %b '%i{Referer}' '%i{User-Agent}' %D"
#logFormat: "%h %l %u [%t] '%r' %s %b '%i{Referer}' '%i{User-Agent}' %D"
#logFormat: '%h [%date{ISO8601}] "%r" %s %b %D [%i{User-Agent}]'
currentLogFilename: ./logs/PRODUCT_request.log
archivedLogFilenamePattern: ./logs/PRODUCT_request-%d.log.gz
archivedFileCount: 5
metrics:
reporters:
- type: graphite
host: localhost
port: 2003
prefix: ProductService.1
transport: tcp
durationUnit: milliseconds
rateUnit: seconds
frequency: 5 second
producer:
type: basic
bootstrapServers:
- 127.0.0.1:29092
# - 127.0.0.1:9093
# - 127.0.0.1:9094
name: producerNameToBeUsedInMetrics
keySerializer:
type: string
valueSerializer:
type: string
acks: all
retries: 0
maxInFlightRequestsPerConnection: 1
maxPollBlockTime: 10s
# security:
# securityProtocol: sasl_ssl
# sslProtocol: TLSv1.2
# saslMechanism: PLAIN
# saslJaas: "org.apache.kafka.comm