forked from risingwavelabs/risingwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
risedev.yml
830 lines (657 loc) · 20.2 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
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
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: test-bucket
# If you want to use other s3 compatible object store, open this flag:
# s3-compatible: false
# if you want to enable etcd backend, uncomment the following lines.
# - use: etcd
# unsafe-no-fsync: true
- use: meta-node
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: "[::]"
# The minimum config to use with risectl.
for-ctl:
- use: minio
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
- use: frontend
- use: compactor
# `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
full-compaction-test:
- use: aws-s3
bucket: some-bucket # configure a valid bucket name
- use: etcd
- use: meta-node
periodic-compaction-interval-sec: 99999
enable-compaction-deterministic: true
- use: compute-node
- use: frontend
- use: compactor
- use: prometheus
- use: grafana
- use: zookeeper
persist-data: true
- use: kafka
persist-data: true
full-benchmark:
- use: minio
- use: etcd
- use: meta-node
- use: compute-node
- use: frontend
- use: compactor
- use: prometheus
remote-write: true
remote-write-region: "ap-southeast-1"
remote-write-url: "https://aps-workspaces.ap-southeast-1.amazonaws.com/workspaces/ws-f3841dad-6a5c-420f-8f62-8f66487f512a/api/v1/remote_write"
- use: grafana
- use: zookeeper
persist-data: true
- use: kafka
persist-data: true
##########################################
### Configuration used for ./risedev p ###
##########################################
playground:
- use: meta-node
unsafe-disable-recovery: true
max-idle-secs-to-exit: 1800
- use: compute-node
- use: frontend
playground-test:
- use: meta-node
unsafe-disable-recovery: true
max-idle-secs-to-exit: 1800
vacuum-interval-sec: 1
collect-gc-watermark-spin-interval-sec: 1
min-sst-retention-time-sec: 0
- use: compute-node
- use: frontend
- use: compactor
playground-3cn:
- use: meta-node
unsafe-disable-recovery: true
max-idle-secs-to-exit: 1800
- 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
docker-playground:
- use: meta-node
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"
# The profile for the online playground
online-docker-playground:
- use: meta-node
unsafe-disable-recovery: true
max-idle-secs-to-exit: 1800
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}
async-stack-trace: verbose
enable-tiered-cache: true
- use: compute-node
id: compute-node-1
listen-address: "0.0.0.0"
address: ${dns-host:rw-compute-1}
async-stack-trace: verbose
enable-tiered-cache: true
- use: compute-node
id: compute-node-2
listen-address: "0.0.0.0"
address: ${dns-host:rw-compute-2}
async-stack-trace: verbose
enable-tiered-cache: true
- 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}
max-concurrent-task-number: 15
compaction-worker-threads-number: 15
- 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
enable-committed-sst-sanity-check: true
- use: compute-node
enable-tiered-cache: true
- use: frontend
- use: compactor
ci-3cn-1fe:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
enable-committed-sst-sanity-check: true
- use: compute-node
port: 5687
exporter-port: 1222
enable-tiered-cache: true
- use: compute-node
port: 5688
exporter-port: 1223
enable-tiered-cache: true
- use: compute-node
port: 5689
exporter-port: 1224
enable-tiered-cache: true
- use: frontend
- use: compactor
ci-3cn-3fe:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
enable-committed-sst-sanity-check: true
- use: compute-node
port: 5687
exporter-port: 1222
enable-tiered-cache: true
- use: compute-node
port: 5688
exporter-port: 1223
enable-tiered-cache: true
- use: compute-node
port: 5689
exporter-port: 1224
enable-tiered-cache: true
- use: frontend
port: 4565
exporter-port: 2222
- use: frontend
port: 4566
exporter-port: 2223
- use: frontend
port: 4567
exporter-port: 2224
- use: compactor
ci-3cn-3fe-in-memory:
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
port: 5687
exporter-port: 1222
enable-in-memory-kv-state-backend: true
- use: compute-node
port: 5688
exporter-port: 1223
enable-in-memory-kv-state-backend: true
- use: compute-node
port: 5689
exporter-port: 1224
enable-in-memory-kv-state-backend: true
- use: frontend
port: 4565
exporter-port: 2222
- use: frontend
port: 4566
exporter-port: 2223
- use: frontend
port: 4567
exporter-port: 2224
ci-kafka:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
enable-tiered-cache: true
- use: frontend
- use: compactor
- use: zookeeper
persist-data: true
- use: kafka
persist-data: true
ci-redis:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
- use: compute-node
enable-tiered-cache: true
- use: frontend
- use: compactor
- use: redis
ci-compaction-test:
- use: minio
- use: etcd
unsafe-no-fsync: true
- use: meta-node
unsafe-disable-recovery: true
periodic-compaction-interval-sec: 99999
enable-compaction-deterministic: true
- use: compute-node
enable-tiered-cache: true
- use: frontend
- use: compactor
compose:
risingwave: "ghcr.io/risingwavelabs/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}
# Whether to enable async stack trace for this compute node, `off`, `on`, or `verbose`.
# Considering the performance, `verbose` mode only effect under `release` profile with `debug_assertions` off.
async-stack-trace: on
# If `enable-tiered-cache` is true, hummock will use data directory as file cache.
enable-tiered-cache: false
# Whether to use a managed lru cache (evict by epoch)
enable-managed-cache: false
# 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*"
# Maximum allowed heartbeat interval in seconds.
max-heartbeat-interval-secs: 600
# Whether to disable recovery mode
unsafe-disable-recovery: false
# Interval of GC stale metadata and SST
vacuum-interval-sec: 30
# Interval of periodical compaction
periodic-compaction-interval-sec: 60
# Whether run in compaction deterministic test mode
enable-compaction-deterministic: false
# The spin interval when collecting global GC watermark in hummock
collect-gc-watermark-spin-interval-sec: 5
# Threshold used by worker node to filter out new SSTs when scanning object store, during full SST GC.
# 7 days by default.
min-sst-retention-time-sec: 604800
# Enable sanity check when SSTs are committed. Disabled by default.
enable-committed-sst-sanity-check: 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
# If `remote_write` is true, this Prometheus instance will push metrics to remote instance
remote-write: false
# AWS region of remote write
remote-write-region: ""
# Remote write url of this instance
remote-write-url: ""
# 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*"
# Redpanda used by this Prometheus instance
provide-redpanda: "redpanda*"
# Frontend used by this Prometheus instance
provide-frontend: "frontend*"
frontend:
# Advertise address of frontend
address: "127.0.0.1"
# Listen port of frontend
port: 4566
# Listen address
listen-address: ${address}
# Prometheus exporter listen port
exporter-port: 2222
# 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
# Hint used by meta node
max-concurrent-task-number: 15
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)
# used to support other s3 compatible object store.
s3-compatible: false
# 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}
# Number of CPUs to use
cpus: 8
# Memory limit for Redpanda
memory: 16G
# redis service
redis:
# Id to be picked-up by services
id: redis
# listen port of redis
port: 6379
# address of redis
address: "127.0.0.1"