From febef35303a5686b55ac44af16b45e6250d65584 Mon Sep 17 00:00:00 2001 From: August Date: Mon, 8 Jul 2024 15:39:10 +0800 Subject: [PATCH] chore: using memory sql backend by default in risedev (#17413) --- risedev.yml | 19 ++++--------------- src/risedevtool/src/task/meta_node_service.rs | 5 ++++- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/risedev.yml b/risedev.yml index cdc115ca3001..984d92ab33d8 100644 --- a/risedev.yml +++ b/risedev.yml @@ -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 @@ -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 diff --git a/src/risedevtool/src/task/meta_node_service.rs b/src/risedevtool/src/task/meta_node_service.rs index 8dfebbdf4fa3..b3f55aa371b8 100644 --- a/src/risedevtool/src/task/meta_node_service.rs +++ b/src/risedevtool/src/task/meta_node_service.rs @@ -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();