-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.conf
119 lines (109 loc) · 3.1 KB
/
application.conf
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
# This file contains sensible defaults for simple, recommended Nussknacker deployment - with one generic model, deployed on Flink
# In most cases it should be possible to override parts of this configuration by providing
# additional config file (see https://github.com/TouK/nussknacker-quickstart/blob/main/nussknacker/nussknacker.conf)
environment: "local"
environment: ${?ENVIRONMENT_NAME}
categoriesConfig {
Default: "streaming"
Default: ${?DEFAULT_SCENARIO_TYPE}
}
scenarioTypes {
"streaming" {
deploymentConfig {
type: "flinkStreaming"
jobManagerTimeout: 1m
restUrl: ${?FLINK_REST_URL}
}
modelConfig {
classPath: ["model/defaultModel.jar", "model/flinkExecutor.jar", "components/flink", "components/common"]
classPath: ${?MODEL_CLASS_PATH}
rocksDB {
enable: ${?FLINK_ROCKSDB_ENABLE}
}
components.kafka {
config: ${kafkaConfig}
}
}
}
"streaming-lite-embedded" {
deploymentConfig {
type: "lite-embedded"
mode: "streaming"
metrics {
instanceId: "local",
environment: ${environment},
influx {
url: ${?INFLUXDB_URL}"/write",
database: "esp",
}
}
}
modelConfig {
classPath: ["model/defaultModel.jar", "components/lite/liteBase.jar", "components/lite/liteKafka.jar", "components/common"]
classPath: ${?MODEL_CLASS_PATH}
kafka: ${kafkaConfig}
exceptionHandlingConfig {
topic: "errors"
}
}
}
"request-response-embedded": {
deploymentConfig {
type: "lite-embedded"
mode: "request-response"
http {
port: 8181
port: ${?REQUEST_RESPONSE_PORT}
interface: ${?REQUEST_RESPONSE_INTERFACE}
}
metrics {
instanceId: "local",
environment: ${environment},
influx {
url: ${?INFLUXDB_URL}"/write",
database: "esp",
}
}
}
modelConfig {
classPath: ["model/defaultModel.jar", "components/lite/liteRequestResponse.jar", "components/lite/liteBase.jar", "components/common"]
classPath: ${?MODEL_CLASS_PATH}
}
}
}
kafkaConfig {
kafkaProperties {
"bootstrap.servers": ${?KAFKA_ADDRESS}
"schema.registry.url": ${?SCHEMA_REGISTRY_URL}
"auto.offset.reset": ${?KAFKA_AUTO_OFFSET_RESET}
}
}
grafanaUrl: "/grafana"
grafanaUrl: ${?GRAFANA_URL}
metricsSettings {
url: ${grafanaUrl}"/d/$dashboard?theme=dark&var-scenarioName=$scenarioName&var-env="${environment}
defaultDashboard: "nussknacker-scenario"
defaultDashboard: ${?DEFAULT_DASHBOARD}
scenarioTypeToDashboard: {
"streaming-lite-embedded": "nussknacker-lite-scenario",
"request-response-embedded": "nussknacker-request-response-scenario"
}
}
countsSettings {
influxUrl: ${?INFLUXDB_URL}/"query"
database: "esp"
}
secondaryEnvironment {
user: "admin"
password: "admin"
targetEnvironmentId: "development"
targetEnvironmentId: ${?TARGET_ENVIRONMENT_ID}
remoteConfig: {
uri: "http://localhost:8080/api"
uri: ${?SECONADRY_ENVIRONMENT_URI}
}
}
environmentAlert: {
content: ${environment}
color: "indicator-green"
}