RisingWave容器化部署
RisingWave 是一个分布式架构的 SQL 流式数据库,能简单、高效、可靠地处理流数据,与Flink类似
官方文档:https://zh-cn.risingwave.com/docs/current/risingwave-docker-compose/
注意:此次部署后端接收数据库pgsql15.6
版本:
docker:19.03.8
docker-compose:2.11.0
risingwavelabs/risingwave:v1.7.2
quay.io/coreos/etcd:v3.5.10
quay.io/minio/minio:latest
prom/prometheus:latest
grafana/grafana-oss:latest
docker.vectorized.io/vectorized/redpanda:latest
1.提前安装好docker与docker-compose
2.从官方GitHub仓库下载安装包
git clone https://github.com/risingwavelabs/risingwave.git
cd risingwave/docker
(1)修改docker-compose.yml
risingwave-standalone、message_queue服务内增加下属配置提权
privileged: true
(2)准备pgsql配置文件
cat risingwave.toml
[database]
driver = "org.postgresql.Driver"
url = "jdbc:postgresql://10.0.0.192:5432/aaa"
username = "aaa"
password = "aaa"
[server]
host = "0.0.0.0"
port = 8080
[logging]
level = "info"
file_path = "/logfile.log"
(3)启动各项服务(默认是minio做后端存储)
docker compose up -d
查看各项服务状态
各项启动正常后,risingwave集群各服务访问地址
risingwave
http://10.0.0.192/
minio
http://10.0.0.192/:9500/
账户:hummockadmin
密码:hummockadmin
Prometheus
http://10.0.0.192:9500/
grafana
http://10.0.0.192:3001/