Skip to content

Commit

Permalink
chore: using memory sql backend by default in risedev (#17413)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 authored Jul 8, 2024
1 parent f377020 commit febef35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
19 changes: 4 additions & 15 deletions risedev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,27 +296,14 @@ profile:
port: 15690
dashboard-port: 15691
exporter-port: 11250
meta-backend: etcd
- use: meta-node
port: 25690
dashboard-port: 25691
exporter-port: 21250
meta-backend: etcd
- use: compactor

3meta:
steps:
- use: meta-node
port: 5690
dashboard-port: 5691
exporter-port: 1250
- use: meta-node
port: 15690
dashboard-port: 15691
exporter-port: 11250
- use: meta-node
port: 25690
dashboard-port: 25691
exporter-port: 21250

3etcd-3meta-1cn-1fe:
steps:
- use: minio
Expand Down Expand Up @@ -344,10 +331,12 @@ profile:
port: 15690
dashboard-port: 15691
exporter-port: 11250
meta-backend: etcd
- use: meta-node
port: 25690
dashboard-port: 25691
exporter-port: 21250
meta-backend: etcd
- use: compactor
- use: compute-node
- use: frontend
Expand Down
5 changes: 4 additions & 1 deletion src/risedevtool/src/task/meta_node_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ impl MetaNodeService {

match &config.meta_backend {
MetaBackend::Memory => {
cmd.arg("--backend").arg("mem");
cmd.arg("--backend")
.arg("sql")
.arg("--sql-endpoint")
.arg("sqlite::memory:");
}
MetaBackend::Etcd => {
let etcd_config = config.provide_etcd_backend.as_ref().unwrap();
Expand Down

0 comments on commit febef35

Please sign in to comment.