fix: pass datanode config file in distributed mode sqlness (#2631)

* fix: pass datanode config file in distributed mode sqlness

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* fix clippy

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-10-20 18:57:23 +08:00
committed by GitHub
parent 89ebe47cd9
commit 4d478658b5
3 changed files with 4 additions and 3 deletions

View File

@@ -4,12 +4,11 @@ require_lease_before_startup = true
rpc_addr = '127.0.0.1:4100'
rpc_hostname = '127.0.0.1'
rpc_runtime_size = 8
require_lease_before_startup = true
[wal]
file_size = '1GB'
purge_interval = '10m'
purge_threshold = '50GB'
purge_threshold = '10GB'
read_batch_size = 128
sync_write = false

View File

@@ -5,7 +5,7 @@ require_lease_before_startup = true
[wal]
file_size = '1GB'
purge_interval = '10m'
purge_threshold = '50GB'
purge_threshold = '10GB'
read_batch_size = 128
sync_write = false

View File

@@ -235,6 +235,8 @@ impl Env {
args.push(format!("--http-addr=127.0.0.1:430{id}"));
args.push(format!("--data-home={}", data_home.display()));
args.push(format!("--node-id={id}"));
args.push("-c".to_string());
args.push(self.generate_config_file(subcommand, db_ctx));
args.push("--metasrv-addr=127.0.0.1:3002".to_string());
(args, format!("127.0.0.1:410{id}"))
}