forked from risingwavelabs/risingwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
risedev.yml
372 lines (278 loc) · 8.88 KB
/
risedev.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
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
risedev:
#########################################
### Configurations used by developers ###
#########################################
# The default configuration will start 1 compute node, 1 meta node and 1 frontend.
default:
# If you want to use the local s3 storage, enable the following line
# - use: minio
# If you want to use aws-s3, configure AK and SK in env var and enable the following lines:
# - use: aws-s3
# bucket: some-bucket
# if you want to enable etcd backend, uncomment the following lines.
# - use: etcd
# unsafe-no-fsync: true
- use: meta-node
enable-dashboard-v2: false
unsafe-disable-recovery: true
- use: compute-node
- use: frontend
# If you want to enable metrics, uncomment those two lines.
# - use: prometheus
# - use: grafana
# If you want to enable tracing, uncomment the following line.
# - use: jaeger
# If you want to use the legacy frontend, uncomment the following line.
# - use: frontend-legacy
# If you want to create source from Kafka, uncomment the following lines
# - use: zookeeper
# persist-data: true
# - use: kafka
# persist-data: true
legacy:
- use: meta-node
- use: compute-node
- use: frontend-legacy
# `dev-compute-node` have the same settings as default except the the compute node will be started by user.
dev-compute-node:
- use: meta-node
- use: compute-node
user-managed: true
- use: frontend-legacy
# `dev-frontend` have the same settings as default except the the frontend-legacy node will be started by user.
dev-frontend:
- use: meta-node
- use: compute-node
- use: frontend-legacy
user-managed: true
# `dev-meta-node` have the same settings as default except the the meta node will be started by user.
dev-meta-node:
- use: meta-node
user-managed: true
- use: compute-node
- use: frontend-legacy
dev-frontend-v2:
- use: minio
- use: meta-node
- use: compute-node
- use: frontend
user-managed: true
#################################
### Configurations used on CI ###
#################################
ci-1cn-1fe:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
- use: frontend
ci-3cn-1fe:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
port: 5687
exporter-port: 1222
- use: compute-node
port: 5688
exporter-port: 1223
- use: compute-node
port: 5689
exporter-port: 1224
- use: frontend
ci-3node:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
port: 5687
exporter-port: 1222
- use: compute-node
port: 5688
exporter-port: 1223
- use: compute-node
port: 5689
exporter-port: 1224
- use: frontend-legacy
ci-1node:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
- use: frontend-legacy
# The `use` field specified in the above `risedev` section will refer to the templates below.
template:
minio:
# Listen address of MinIO s3 endpoint
address: "127.0.0.1"
# Listen port of MinIO s3 endpoint
port: 9301
# Console address of MinIO s3 endpoint
console-address: "127.0.0.1"
# Console port of MinIO s3 endpoint
console-port: 9400
# Root username (can be used to login to MinIO console)
root-user: hummockadmin
# Root password (can be used to login to MinIO console)
root-password: hummockadmin
# Hummock username
hummock-user: hummock
# Hummock user password
hummock-password: "12345678"
# Bucket name to store hummock information
hummock-bucket: hummock001
# Id of this instance
id: minio
# Prometheus nodes used by this MinIO
provide-prometheus: "prometheus*"
etcd:
# Id of this instance
id: "etcd"
# Address of the single-node etcd.
address: "127.0.0.1"
# Listen port of the single-node etcd.
port: 2388
# Peer listen port of the single-node etcd.
peer-port: 2389
# Whether to enable fsync (NEVER SET TO TRUE IN PRODUCTION ENVIRONMENT!)
unsafe-no-fsync: false
compute-node:
# Compute-node listen address
address: "127.0.0.1"
# Compute-node listen port
port: 5688
# Prometheus exporter listen address
exporter-address: "127.0.0.1"
# Prometheus exporter listen port
exporter-port: 1222
# Id of this instance
id: compute-node-${port}
# Minio instances used by this compute node
provide-minio: "minio*"
# AWS s3 bucket used by this compute node
provide-aws-s3: "aws-s3*"
# Meta-nodes used by this compute node
provide-meta-node: "meta-node*"
# Jaeger used by this compute node
provide-jaeger: "jaeger*"
# Sanity check: should use shared storage if there're multiple compute nodes
provide-compute-node: "compute-node*"
# If `user-managed` is true, this service will be started by user with the above config
user-managed: false
# Whether to enable in-memory pure KV state backend
enable-in-memory-kv-state-backend: false
meta-node:
# Meta-node listen address
address: "127.0.0.1"
# Meta-node listen port
port: 5690
# Dashboard listen address
dashboard-address: "127.0.0.1"
# Dashboard listen port
dashboard-port: 5691
# Prometheus exporter listen address
exporter-address: "127.0.0.1"
# Prometheus exporter listen port
exporter-port: 1250
# Id of this instance
id: meta-node-${port}
# If `user-managed` is true, this service will be started by user with the above config
user-managed: false
# Etcd backend config
provide-etcd-backend: "etcd*"
# Whether to enable dashboard-v2
enable-dashboard-v2: false
# Whether to disable recovery mode
unsafe-disable-recovery: false
prometheus:
# Listen address of Prometheus
address: "127.0.0.1"
# Listen port of Prometheus
port: 9500
# Id of this instance
id: prometheus
# Compute-nodes used by this Prometheus instance
provide-compute-node: "compute-node*"
# Meta-nodes used by this Prometheus instance
provide-meta-node: "meta-node*"
# Minio instances used by this Prometheus instance
provide-minio: "minio*"
frontend-legacy:
# Listen address of frontend-legacy
address: "127.0.0.1"
# Listen port of frontend-legacy
port: 4567
# Id of this instance
id: frontend-legacy-${port}
# Meta-nodes used by this frontend-legacy instance
provide-meta-node: "meta-node*"
# If `user-managed` is true, this service will be started by user with the above config
user-managed: false
frontend:
# Listen address of frontend
address: "127.0.0.1"
# Listen port of frontend
port: 4566
# Id of this instance
id: frontend-${port}
# Meta-nodes used by this frontend instance
provide-meta-node: "meta-node*"
# If `user-managed` is true, this service will be started by user with the above config
user-managed: false
grafana:
# Listen address of Grafana
address: "127.0.0.1"
# Listen port of Grafana
port: 3001
# Id of this instance
id: grafana
# Prometheus used by this Grafana instance
provide-prometheus: "prometheus*"
jaeger:
# Id of this instance
id: jaeger
# Dashboard listen address of Jaeger
dashboard-address: "127.0.0.1"
# Dashboard listen port of Jaeger
dashboard-port: 16680
# Jaeger has a lot of ports open, and we don't want to make this config more complex.
# So we keep the default value of jaeger instead of making it part of RiseDev config.
# aws-s3 is a placeholder service to provide configurations
aws-s3:
# Id to be picked-up by services
id: aws-s3
# The bucket to be used for AWS S3
bucket: test-bucket
# access key, secret key and region should be set in aws config (either by env var or .aws/config)
# Apache Kafka service
kafka:
# Id to be picked-up by services
id: kafka-${port}
# Listen address of Kafka
address: "127.0.0.1"
# Listen port of Kafka
port: 39092
# ZooKeeper used by this Kafka instance
provide-zookeeper: "zookeeper*"
# If set to true, data will be persisted at data/{id}.
persist-data: true
# Kafka broker id. If there are multiple instances of Kafka, we will need to set.
broker-id: 0
# Apache ZooKeeper service
zookeeper:
# Id to be picked-up by services
id: zookeeper-${port}
# Listen address of ZooKeeper
address: "127.0.0.1"
# Listen port of ZooKeeper
port: 32888
# If set to true, data will be persisted at data/{id}.
persist-data: true