forked from wso2/docker-ei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
465 lines (432 loc) · 14.6 KB
/
deployment.yaml
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
################################################################################
# Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the \"License\");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an \"AS IS\" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
# Carbon Configuration Parameters
wso2.carbon:
# value to uniquely identify a server
id: wso2-si-1
# server name
name: WSO2 Streaming Integrator
# server type
type: wso2-si
# ports used by this server
ports:
# port offset
offset: 0
wso2.transport.http:
transportProperties:
-
name: "server.bootstrap.socket.timeout"
value: 60
-
name: "client.bootstrap.socket.timeout"
value: 60
-
name: "latency.metrics.enabled"
value: true
listenerConfigurations:
-
id: "default"
host: "0.0.0.0"
port: 9090
-
id: "msf4j-https"
host: "0.0.0.0"
port: 9443
scheme: https
keyStoreFile: "${carbon.home}/resources/security/wso2carbon.jks"
keyStorePassword: wso2carbon
certPass: wso2carbon
senderConfigurations:
-
id: "http-sender"
siddhi.stores.query.api:
transportProperties:
-
name: "server.bootstrap.socket.timeout"
value: 60
-
name: "client.bootstrap.socket.timeout"
value: 60
-
name: "latency.metrics.enabled"
value: true
listenerConfigurations:
-
id: "default"
host: "0.0.0.0"
port: 7070
-
id: "msf4j-https"
host: "0.0.0.0"
port: 7443
scheme: https
keyStoreFile: "${carbon.home}/resources/security/wso2carbon.jks"
keyStorePassword: wso2carbon
certPass: wso2carbon
# Configuration used for the databridge communication
databridge.config:
# No of worker threads to consume events
# THIS IS A MANDATORY FIELD
workerThreads: 10
# Maximum amount of messages that can be queued internally in MB
# THIS IS A MANDATORY FIELD
maxEventBufferCapacity: 10000000
# Queue size; the maximum number of events that can be stored in the queue
# THIS IS A MANDATORY FIELD
eventBufferSize: 2000
# Keystore file path
# THIS IS A MANDATORY FIELD
keyStoreLocation : ${sys:carbon.home}/resources/security/wso2carbon.jks
# Keystore password
# THIS IS A MANDATORY FIELD
keyStorePassword : wso2carbon
# Session Timeout value in mins
# THIS IS A MANDATORY FIELD
clientTimeoutMin: 30
# Data receiver configurations
# THIS IS A MANDATORY FIELD
dataReceivers:
-
# Data receiver configuration
dataReceiver:
# Data receiver type
# THIS IS A MANDATORY FIELD
type: Thrift
# Data receiver properties
properties:
tcpPort: '7611'
sslPort: '7711'
-
# Data receiver configuration
dataReceiver:
# Data receiver type
# THIS IS A MANDATORY FIELD
type: Binary
# Data receiver properties
properties:
tcpPort: '9611'
sslPort: '9711'
tcpReceiverThreadPoolSize: '100'
sslReceiverThreadPoolSize: '100'
hostName: 0.0.0.0
# Configuration of the Data Agents - to publish events through databridge
data.agent.config:
# Data agent configurations
# THIS IS A MANDATORY FIELD
agents:
-
# Data agent configuration
agentConfiguration:
# Data agent name
# THIS IS A MANDATORY FIELD
name: Thrift
# Data endpoint class
# THIS IS A MANDATORY FIELD
dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftDataEndpoint
# Data publisher strategy
publishingStrategy: async
# Trust store path
trustStorePath: '${sys:carbon.home}/resources/security/client-truststore.jks'
# Trust store password
trustStorePassword: 'wso2carbon'
# Queue Size
queueSize: 32768
# Batch Size
batchSize: 200
# Core pool size
corePoolSize: 1
# Socket timeout in milliseconds
socketTimeoutMS: 30000
# Maximum pool size
maxPoolSize: 1
# Keep alive time in pool
keepAliveTimeInPool: 20
# Reconnection interval
reconnectionInterval: 30
# Max transport pool size
maxTransportPoolSize: 250
# Max idle connections
maxIdleConnections: 250
# Eviction time interval
evictionTimePeriod: 5500
# Min idle time in pool
minIdleTimeInPool: 5000
# Secure max transport pool size
secureMaxTransportPoolSize: 250
# Secure max idle connections
secureMaxIdleConnections: 250
# secure eviction time period
secureEvictionTimePeriod: 5500
# Secure min idle time in pool
secureMinIdleTimeInPool: 5000
# SSL enabled protocols
sslEnabledProtocols: TLSv1.1,TLSv1.2
# Ciphers
ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
-
# Data agent configuration
agentConfiguration:
# Data agent name
# THIS IS A MANDATORY FIELD
name: Binary
# Data endpoint class
# THIS IS A MANDATORY FIELD
dataEndpointClass: org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint
# Data publisher strategy
publishingStrategy: async
# Trust store path
trustStorePath: '${sys:carbon.home}/resources/security/client-truststore.jks'
# Trust store password
trustStorePassword: 'wso2carbon'
# Queue Size
queueSize: 32768
# Batch Size
batchSize: 200
# Core pool size
corePoolSize: 1
# Socket timeout in milliseconds
socketTimeoutMS: 30000
# Maximum pool size
maxPoolSize: 1
# Keep alive time in pool
keepAliveTimeInPool: 20
# Reconnection interval
reconnectionInterval: 30
# Max transport pool size
maxTransportPoolSize: 250
# Max idle connections
maxIdleConnections: 250
# Eviction time interval
evictionTimePeriod: 5500
# Min idle time in pool
minIdleTimeInPool: 5000
# Secure max transport pool size
secureMaxTransportPoolSize: 250
# Secure max idle connections
secureMaxIdleConnections: 250
# secure eviction time period
secureEvictionTimePeriod: 5500
# Secure min idle time in pool
secureMinIdleTimeInPool: 5000
# SSL enabled protocols
sslEnabledProtocols: TLSv1.1,TLSv1.2
# Ciphers
ciphers: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
# This is the main configuration for metrics
wso2.metrics:
# Enable Metrics
enabled: false
reporting:
console:
- # The name for the Console Reporter
name: Console
# Enable Console Reporter
enabled: false
# Polling Period in seconds.
# This is the period for polling metrics from the metric registry and printing in the console
pollingPeriod: 5
wso2.metrics.jdbc:
# Data Source Configurations for JDBC Reporters
dataSource:
# Default Data Source Configuration
- &JDBC01
# JNDI name of the data source to be used by the JDBC Reporter.
# This data source should be defined in a *-datasources.xml file in conf/datasources directory.
dataSourceName: java:comp/env/jdbc/WSO2MetricsDB
# Schedule regular deletion of metrics data older than a set number of days.
# It is recommended that you enable this job to ensure your metrics tables do not get extremely large.
# Deleting data older than seven days should be sufficient.
scheduledCleanup:
# Enable scheduled cleanup to delete Metrics data in the database.
enabled: true
# The scheduled job will cleanup all data older than the specified days
daysToKeep: 3
# This is the period for each cleanup operation in seconds.
scheduledCleanupPeriod: 86400
# The JDBC Reporter is in the Metrics JDBC Core feature
reporting:
# The JDBC Reporter configurations will be ignored if the Metrics JDBC Core feature is not available in runtime
jdbc:
- # The name for the JDBC Reporter
name: JDBC
# Enable JDBC Reporter
enabled: true
# Source of Metrics, which will be used to identify each metric in database -->
# Commented to use the hostname by default
# source: Carbon
# Alias referring to the Data Source configuration
dataSource: *JDBC01
# Polling Period in seconds.
# This is the period for polling metrics from the metric registry and updating the database with the values
pollingPeriod: 60
# Deployment configuration parameters
wso2.artifact.deployment:
# Scheduler update interval
updateInterval: 5
# Periodic Persistence Configuration
state.persistence:
enabled: true
intervalInMin: 1
revisionsToKeep: 2
persistenceStore: org.wso2.carbon.streaming.integrator.core.persistence.DBPersistenceStore
config:
datasource: PERSISTENCE_DB
table: PERSISTENCE_TABLE
# Secure Vault Configuration
wso2.securevault:
secretRepository:
type: org.wso2.carbon.secvault.repository.DefaultSecretRepository
parameters:
privateKeyAlias: wso2carbon
keystoreLocation: ${sys:carbon.home}/resources/security/securevault.jks
secretPropertiesFile: ${sys:carbon.home}/conf/${sys:wso2.runtime}/secrets.properties
masterKeyReader:
type: org.wso2.carbon.secvault.reader.DefaultMasterKeyReader
parameters:
masterKeyReaderFile: ${sys:carbon.home}/conf/${sys:wso2.runtime}/master-keys.yaml
# Datasource Configurations
wso2.datasources:
dataSources:
- name: WSO2_PERMISSIONS_DB
description: The datasource used for permission feature
jndiConfig:
name: jdbc/PERMISSION_DB
useJndiReference: true
definition:
type: RDBMS
configuration:
jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/PERMISSION_DB;IFEXISTS=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE'
username: wso2carbon
password: wso2carbon
driverClassName: org.h2.Driver
maxPoolSize: 10
idleTimeout: 60000
connectionTestQuery: SELECT 1
validationTimeout: 30000
isAutoCommit: false
- name: PERSISTENCE_DB
description: The MySQL datasource used for persistence
jndiConfig:
name: jdbc/PERSISTENCE_DB
definition:
type: RDBMS
configuration:
jdbcUrl: 'jdbc:mysql://wso2.cqaut6indcir.us-east-2.rds.amazonaws.com:3306/persistencedb?useSSL=false'
username: root
password: rootroot
driverClassName: com.mysql.jdbc.Driver
maxPoolSize: 50
idleTimeout: 60000
connectionTestQuery: SELECT 1
validationTimeout: 30000
isAutoCommit: false
- name: WSO2_CLUSTER_DB
description: The MySQL datasource used for persistence
jndiConfig:
name: jdbc/WSO2_CLUSTER_DB
definition:
type: RDBMS
configuration:
jdbcUrl: 'jdbc:mysql://wso2.cqaut6indcir.us-east-2.rds.amazonaws.com:3306/clusterdb?useSSL=false'
username: root
password: rootroot
driverClassName: com.mysql.jdbc.Driver
maxPoolSize: 50
idleTimeout: 60000
connectionTestQuery: SELECT 1
validationTimeout: 30000
isAutoCommit: false
# carbon metrics data source
- name: WSO2_METRICS_DB
description: The datasource used for dashboard feature
jndiConfig:
name: jdbc/WSO2MetricsDB
definition:
type: RDBMS
configuration:
jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/metrics;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;'
username: wso2carbon
password: wso2carbon
driverClassName: org.h2.Driver
maxPoolSize: 30
idleTimeout: 60000
connectionTestQuery: SELECT 1
validationTimeout: 30000
isAutoCommit: false
# Cluster Configuration
cluster.config:
enabled: true
groupId: si
coordinationStrategyClass: org.wso2.carbon.cluster.coordinator.rdbms.RDBMSCoordinationStrategy
strategyConfig:
datasource: WSO2_CLUSTER_DB
heartbeatInterval: 5000
heartbeatMaxRetry: 5
eventPollingInterval: 5000
# Authentication configuration
auth.configs:
type: 'local' # Type of the IdP client used
userManager:
adminRole: admin # Admin role which is granted all permissions
userStore: # User store
users:
-
user:
username: admin
password: YWRtaW4=
roles: 1
roles:
-
role:
id: 1
displayName: admin
# Sample of deployment.config for Two node HA
deployment.config:
type: ha
passiveNodeDetailsWaitTimeOutMillis: 300000
passiveNodeDetailsRetrySleepTimeMillis: 500
eventSyncServer:
host: localhost
port: 9893
advertisedHost: localhost
advertisedPort: 9893
bossThreads: 10
workerThreads: 10
eventSyncClientPool:
maxActive: 10
maxTotal: 10
maxIdle: 10
maxWait: 60000
minEvictableIdleTimeMillis: 120000
# Sample of deployment.config for Distributed deployment
#deployment.config:
# type: distributed
# isReceiverNode: false
# httpsInterface:
# host: 192.168.1.3
# port: 9443
# username: admin
# password: admin
# leaderRetryInterval: 10000
# resourceManagers:
# - host: 192.168.1.1
# port: 9543
# username: admin
# password: admin
# - host: 192.168.1.2
# port: 9543
# username: admin
# password: admin