-
Notifications
You must be signed in to change notification settings - Fork 0
/
config1.yml
142 lines (133 loc) · 3.99 KB
/
config1.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
142
#
# This config was created to assist in testing how this Kafka consumer would behave with multiple instances running.
#
logging:
level: INFO
loggers:
honstain: DEBUG
appenders:
- type: file
threshold: ERROR
currentLogFilename: ./logs/inventory_ERROR_json.log
archivedLogFilenamePattern: ./logs/inventory_ERROR_json-%d.log.gz
archivedFileCount: 5
- type: file
threshold: DEBUG
filterFactories:
- type: less-than-errors
layout:
type: json
flattenMdc: true
currentLogFilename: ./logs/inventory_json.log
archivedLogFilenamePattern: ./logs/inventory_json-%d.log.gz
archivedFileCount: 5
- type: console
# Setup initial configuration following Dropwizard docs - dropped HTTPS and certs
# https://www.dropwizard.io/en/latest/manual/configuration.html#default
server:
minThreads: 20
maxThreads: 20 # Setting this super low to help me explore the system under resource constraints
adminMinThreads: 1
adminMaxThreads: 4
adminContextPath: /
applicationContextPath: /
applicationConnectors:
- type: http
port: 7082
adminConnectors:
- type: http
port: 7083
requestLog:
appenders:
- type: file
threshold: ALL
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/request.log
archivedLogFilenamePattern: ./logs/request-%d.log.gz
archivedFileCount: 5
# I have been experimenting some with the default Dropwizard use of Apache HttpClient but
# haven't decided on how I want to use it or how best to configure it, seems like the defaults
# are pretty good for experimenting on local dev environment.
# https://www.dropwizard.io/en/latest/manual/client.html
# https://www.dropwizard.io/en/latest/manual/configuration.html#man-configuration-clients-http
#httpClient:
# timeout: 500ms
# connectionTimeout: 500ms
# timeToLive: 1h
# cookiesEnabled: false
# maxConnections: 1024
# maxConnectionsPerRoute: 1024
# keepAlive: 0ms
# retries: 0
# userAgent: KotlinInventoryService(KotlinProductService)
jerseyClient: # Remember that JerseyClient extends the attributes of httpClient
timeout: 1000ms
minThreads: 20
maxThreads: 20
workQueueSize: 8
metrics:
reporters:
- type: graphite
host: localhost
port: 2003
prefix: InventoryService.1
transport: tcp
durationUnit: milliseconds
rateUnit: seconds
frequency: 5 second
consumer:
type: basic
bootstrapServers:
- 127.0.0.1:29092
# - 127.0.0.1:9093
# - 127.0.0.1:9094
consumerGroupId: consumer2
name: consumerNameToBeUsedInMetrics
keyDeserializer:
type: string
valueDeserializer:
type: string
# security:
# securityProtocol: sasl_ssl
# sslProtocol: TLSv1.2
# saslMechanism: PLAIN
# saslJaas: "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"<username>\" password=\"<password>\";"
dltConsumer:
type: basic
bootstrapServers:
- 127.0.0.1:29092
# - 127.0.0.1:9093
# - 127.0.0.1:9094
consumerGroupId: consumer3
name: dltConsumerNameToBeUsedInMetrics
keyDeserializer:
type: string
valueDeserializer:
type: string
# security:
# securityProtocol: sasl_ssl
# sslProtocol: TLSv1.2
# saslMechanism: PLAIN
# saslJaas: "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"<username>\" password=\"<password>\";"
dltProducer:
type: basic
bootstrapServers:
- 127.0.0.1:29092
# - 127.0.0.1:9093
# - 127.0.0.1:9094
name: dltProducerNameToBeUsedInMetrics
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