From 72175d60d9701c81a274449be0231c8e1e7cfc33 Mon Sep 17 00:00:00 2001 From: YenchangChan Date: Mon, 22 Mar 2021 10:37:36 +0800 Subject: [PATCH] v1.2.7 release --- Makefile | 9 +++++++++ README.md | 22 ++++++++++++++++++++-- docs/Ckman_Document_zh.md | 18 +++++++++++++++++- 3 files changed, 46 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5132846d..436747a5 100644 --- a/Makefile +++ b/Makefile @@ -102,3 +102,12 @@ docker-image: docker tag ckman:${VERSION} quay.io/housepower/ckman:${VERSION} docker tag ckman:${VERSION} quay.io/housepower/ckman:latest docker rmi ckman:${VERSION} + +.PHONY: release +release: + make build VERSION=${VERSION} + make docker-image VERSION=${VERSION} + make rpm VERSION=${VERSION} + make package VERSION=${VERSION} + docker push quay.io/housepower/ckman:${VERSION} + docker push quay.io/housepower/ckman:latest \ No newline at end of file diff --git a/README.md b/README.md index 07e8cf49..b09dcdf0 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,35 @@ This is a tool which used to manage and monitor ClickHouse database ## build command +```bash make package VERSION=x.x.x +``` ## pprof -http://127.0.0.1:8808/debug/pprof/ +> http://127.0.0.1:8808/debug/pprof/ + +## docker run +```bash +docker run -itd -p 8808:8808 --restart unless-stopped --name ckman quay.io/housepower/ckman:latest +``` +You can run ckman in docker, but since deployment of Nacos is not ckman's responsibility, + we do not enable Nacos by default. + If you want to enable Nacos, please modify the configuration file in container. ## swagger -http://127.0.0.1:8808/swagger/index.html +> http://127.0.0.1:8808/swagger/index.html Please login first, it will return token when verify successfully, then we should enter the token into "Authorize" frame, after that we will access other APIs successfully. +Since v1.2.7, we no longer provide the function of swagger document. +If you really want to, you can use `swagger_enable` option in the configuration file: +```yaml +swagger_enable: true +``` + +## Chinese document +[Ckman_Document_zh.md](docs/Ckman_Document_zh.md) ## ckmanpasswd This is a tool to generate password for reserved user ckman, diff --git a/docs/Ckman_Document_zh.md b/docs/Ckman_Document_zh.md index 9bd17c72..1755ba56 100644 --- a/docs/Ckman_Document_zh.md +++ b/docs/Ckman_Document_zh.md @@ -151,6 +151,18 @@ bin/start ![image-20210305134653422](img/image-20210305134653422.png) +## docker启动 + +从v1.2.7版本开始,ckman支持从docker镜像启动。启动命令如下所示: + +```bash +docker run -itd -p 8808:8808 --restart unless-stopped --name ckman quay.io/housepower/ckman:latest +``` + +但是需要注意的是,搭建promethues和nacos并不属于ckman程序自身的范畴,因此,从容器启动ckman默认是关闭nacos的,且前台Overview监控不会正常显示。 + +如果想自己配置nacos和prometheus,可以进入容器自行配置。 + ## ckman配置文件 `ckman`的配置文件在`ckman` 的工作目录下的`conf/ckman.yml`。 @@ -368,8 +380,10 @@ bin/start > - 如果没有开启副本,则有几个节点就有几个`shard` > - `Zookeeper Node List`: `zk`列表 > - `ZooKeeper Port`: `zk`端口,默认是`2181` +> - `ZK Status Port`: `zookeeper`指标监控的端口,默认`8080` +> - 该功能是zookeeper v3.5.0以上版本开始支持的,如果zk版本太旧,无法从界面看到zk的指标 > - `Data path`: `ck`节点数据存放的路径 -> - `Cluster Username`: `ck`的用户名,注意:default用户作为保留用户,此处不能填default。 +> - `Cluster Username`: `ck`的用户名,注意:`default`用户作为保留用户,此处不能填`default`。 > - `Cluster Password`: `ck`的密码 > - `SSH Username`: `ssh`登录`ck`节点的用户名 > - 该用户必须具有`root`权限或是`root`本身,否则部署无法成功,一般都是`root`。 @@ -397,6 +411,8 @@ bin/start > > `ZooKeeper Port`: `zk`端口,默认为`2181` > +> `ZK Status Port`: `zookeeper`指标监控的端口,默认`8080` +> > `Cluster Username`: `ck`的用户名 > > `Cluster Password`: `ck`的密码