forked from risingwavelabs/risingwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
risedev.yml
576 lines (438 loc) · 13.7 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
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
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
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 compactor, uncomment the following line, and enable either minio or aws-s3 as well.
# - use: compactor
# 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 create source from Kafka, uncomment the following lines
# Note that kafka depends on zookeeper, so zookeeper must be started beforehand.
# - use: zookeeper
# persist-data: true
# - use: kafka
# persist-data: true
default-v6:
- use: meta-node
address: "[::1]"
listen-address: "[::]"
- use: compute-node
address: "[::1]"
listen-address: "[::]"
- use: frontend
address: "[::1]"
listen-address: "[::]"
# `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
dev-frontend:
- use: meta-node
- use: compute-node
- use: frontend
user-managed: true
dev-meta:
- use: meta-node
user-managed: true
- use: compute-node
- use: frontend
full:
- use: minio
- use: etcd
- use: meta-node
- use: compute-node
- use: frontend
- use: compactor
- use: prometheus
- use: grafana
- use: zookeeper
persist-data: true
- use: kafka
persist-data: true
##########################################
### Configuration used for ./risedev p ###
##########################################
playground:
- use: meta-node
enable-dashboard-v2: false
unsafe-disable-recovery: true
- use: compute-node
- use: frontend
docker-playground:
- use: meta-node
enable-dashboard-v2: false
unsafe-disable-recovery: true
listen-address: "0.0.0.0"
address: "127.0.0.1"
- use: compute-node
listen-address: "0.0.0.0"
address: "127.0.0.1"
- use: frontend
listen-address: "0.0.0.0"
address: "127.0.0.1"
######################################
### Configurations used in Compose ###
######################################
compose:
- use: minio
id: minio-0
address: ${id}
listen-address: "0.0.0.0"
console-address: "0.0.0.0"
- use: meta-node
# Id must starts with `meta-node`, therefore to be picked up by other
# components.
id: meta-node-0
# Advertise address can be `id`, so as to use docker's DNS. If running
# in host network mode, we should use IP directly in this field.
address: ${id}
listen-address: "0.0.0.0"
- use: compute-node
id: compute-node-0
listen-address: "0.0.0.0"
address: ${id}
- use: frontend
id: frontend-node-0
listen-address: "0.0.0.0"
address: ${id}
- use: compactor
id: compactor-0
listen-address: "0.0.0.0"
address: ${id}
- use: redpanda
- use: prometheus
id: prometheus-0
listen-address: "0.0.0.0"
address: ${id}
- use: grafana
listen-address: "0.0.0.0"
address: ${id}
id: grafana-0
- use: etcd
listen-address: "0.0.0.0"
address: ${id}
id: etcd-0
# special config for deployment, see related PR for more information
compose-3node-deploy:
- use: minio
id: minio-0
address: ${dns-host:rw-source-0}
listen-address: "0.0.0.0"
console-address: "0.0.0.0"
# - use: aws-s3
# bucket: ${terraform:s3-bucket}
# Not enabled by default as all previous benchmarks are not done with etcd.
# Also we currently only support node-level docker volume tear down.
# - use: etcd
# listen-address: "0.0.0.0"
# address: ${dns-host:rw-meta-0}
# id: etcd-0
- use: meta-node
# Id must starts with `meta-node`, therefore to be picked up by other
# components.
id: meta-node-0
# Advertise address can be `id`, so as to use docker's DNS. If running
# in host network mode, we should use IP directly in this field.
address: ${dns-host:rw-meta-0}
listen-address: "0.0.0.0"
- use: compute-node
id: compute-node-0
listen-address: "0.0.0.0"
address: ${dns-host:rw-compute-0}
- use: compute-node
id: compute-node-1
listen-address: "0.0.0.0"
address: ${dns-host:rw-compute-1}
- use: compute-node
id: compute-node-2
listen-address: "0.0.0.0"
address: ${dns-host:rw-compute-2}
- use: frontend
id: frontend-node-0
listen-address: "0.0.0.0"
address: ${dns-host:rw-meta-0}
- use: compactor
id: compactor-0
listen-address: "0.0.0.0"
address: ${dns-host:rw-source-0}
- use: redpanda
address: ${dns-host:rw-source-0}
- use: prometheus
id: prometheus-0
listen-address: "0.0.0.0"
address: ${dns-host:rw-meta-0}
- use: grafana
listen-address: "0.0.0.0"
address: ${dns-host:rw-meta-0}
id: grafana-0
#################################
### 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
- use: compactor
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
- use: compactor
ci-kafka:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
- use: frontend
- use: compactor
- use: zookeeper
persist-data: true
- use: kafka
persist-data: true
compose:
risingwave: "ghcr.io/singularity-data/risingwave:latest"
prometheus: "prom/prometheus:latest"
minio: "quay.io/minio/minio:latest"
redpanda: "docker.vectorized.io/vectorized/redpanda:latest"
grafana: "grafana/grafana-oss:latest"
etcd: "quay.io/coreos/etcd:latest"
# The `use` field specified in the above `risedev` section will refer to the templates below.
template:
minio:
# Advertise address of MinIO s3 endpoint
address: "127.0.0.1"
# Advertise port of MinIO s3 endpoint
port: 9301
# Listen address of MinIO endpoint
listen-address: ${address}
# 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
# 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"
# Advertise address of the single-node etcd.
address: "127.0.0.1"
# Listen port of the single-node etcd.
port: 2388
# Listen address
listen-address: ${address}
# Peer listen port of the single-node etcd.
peer-port: 2389
# Prometheus exporter listen port
exporter-port: 2379
# Whether to enable fsync (NEVER SET TO TRUE IN PRODUCTION ENVIRONMENT!)
unsafe-no-fsync: false
compute-node:
# Compute-node advertise address
address: "127.0.0.1"
# Listen address
listen-address: ${address}
# Compute-node listen port
port: 5688
# 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*"
# Sanity check: should start at lease one compactor if using shared object store
provide-compactor: "compactor*"
# 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 advertise address
address: "127.0.0.1"
# Meta-node listen port
port: 5690
# Listen address
listen-address: ${address}
# Dashboard listen port
dashboard-port: 5691
# 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:
# Advertise address of Prometheus
address: "127.0.0.1"
# Listen port of Prometheus
port: 9500
# Listen address
listen-address: ${address}
# 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*"
# Compactors used by this Prometheus instance
provide-compactor: "compactor*"
# Etcd used by this Prometheus instance
provide-etcd: "etcd*"
frontend:
# Advertise address of frontend
address: "127.0.0.1"
# Listen port of frontend
port: 4566
# Listen address
listen-address: ${address}
# 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
compactor:
# Compactor advertise address
address: "127.0.0.1"
# Compactor listen port
port: 6660
# Listen address
listen-address: ${address}
# Prometheus exporter listen port
exporter-port: 1260
# Id of this instance
id: compactor-${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*"
# If `user-managed` is true, this service will be started by user with the above config
user-managed: false
grafana:
# Listen address of Grafana
listen-address: ${address}
# Advertise 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}
# Advertise address of Kafka
address: "127.0.0.1"
# Listen port of Kafka
port: 29092
# Listen address
listen-address: ${address}
# 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}
# Advertise address of ZooKeeper
address: "127.0.0.1"
# Listen address
listen-address: ${address}
# Listen port of ZooKeeper
port: 2181
# If set to true, data will be persisted at data/{id}.
persist-data: true
# Only supported in RiseDev compose
redpanda:
# Id to be picked-up by services
id: redpanda
# Port used inside docker-compose cluster (e.g. create MV)
internal-port: 29092
# Port used on host (e.g. import data, connecting using kafkacat)
outside-port: 9092
# Connect address
address: ${id}