7 Star 19 Fork 2

诺司时空 / cnosdb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run_cluster.sh 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
yukkit.zhang 提交于 2023-04-11 16:26 . feat: store query info and watermark
#!/bin/sh
kill() {
if [ "$(uname)" = "Darwin" ]; then
SERVICE='cnosdb'
if pgrep -xq -- "${SERVICE}"; then
pkill -f "${SERVICE}"
fi
else
set +e # killall will error if finds no process to kill
killall cnosdb
set -e
fi
}
mkdir -p /tmp/cnosdb/logs
echo "*** run meta cluster ......"
./meta/cluster.sh
kill
sleep 1
rm -rf /tmp/cnosdb/1001
rm -rf /tmp/cnosdb/2001
rm -rf /tmp/cnosdb/meta/
rm -rf ~/.cnosdb/query
echo "*** build cnosdb ......"
cargo build --package main --bin cnosdb
echo "*** build cnosdb-cli ......"
cargo build --package client --bin cnosdb-cli
echo "*** start CnosDB server 8902......"
nohup ./target/debug/cnosdb run --config ./config/config_8902.toml > /tmp/cnosdb/logs/data_node.1001.log 2>&1 &
sleep 1
echo "*** start CnosDB server 8912......"
nohup ./target/debug/cnosdb run --config ./config/config_8912.toml > /tmp/cnosdb/logs/data_node.2001.log 2>&1 &
echo "\n*** CnosDB Data Server Cluster is running ......"
sleep 1000000000
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/cnosdb/cnosdb.git
git@gitee.com:cnosdb/cnosdb.git
cnosdb
cnosdb
cnosdb
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891