跳至正文
Wener Notes

cubestore

约 1 分钟阅读
  • @cubejs-backend/cubestore
    • Apache-2.0, Rust
  • router
    • 单个
    • 处理客户端请求,管理数据库元数据,提供简单查询
  • worker
    • 多个
    • 执行 SQL
  • 本地存储为 Parquet 格式
  • 会从 github 下载 binary
    • npm config get https-proxy
    • npm config get proxy
bash
docker run -p 3030:3030 -v $PWD/.cubestore:/cube/data cubejs/cubestore

# 使用 cubestore
# CUBEJS_EXT_DB_TYPE=cubestore
# CUBEJS_EXT_DB_HOST=127.0.0.1
docker run -p 4000:4000 \
  -e CUBEJS_CUBESTORE_HOST=localhost \
  -v ${PWD}:/cube/conf \
  cubejs/cube
envrouterworker
CUBESTORE_SERVER_NAMEYesYes
CUBESTORE_META_PORTYes-
CUBESTORE_WORKERSYesYes
CUBESTORE_WORKER_PORT-Yes
CUBESTORE_META_ADDR-Yes
router,env
CUBESTORE_SERVER_NAME=cubestore_router:9999
CUBESTORE_META_PORT=9999
CUBESTORE_WORKERS=cubestore_worker_1:9001,cubestore_worker_2:9001
CUBESTORE_REMOTE_DIR=/cube/data
worker.env
CUBESTORE_SERVER_NAME=cubestore_worker_1:9001
CUBESTORE_WORKER_PORT=9001
CUBESTORE_META_ADDR=cubestore_router:9999
CUBESTORE_WORKERS=cubestore_worker_1:9001,cubestore_worker_2:9001
CUBESTORE_REMOTE_DIR=/cube/data

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

GitHub1 条
最近更新commit 456b1b1编辑