Skip to content

Commit

Permalink
Merge pull request #13 from YenchangChan/main
Browse files Browse the repository at this point in the history
v1.2.7 release
  • Loading branch information
YenchangChan authored Mar 22, 2021
2 parents c017a32 + 72175d6 commit b7e51f4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
18 changes: 17 additions & 1 deletion docs/Ckman_Document_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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`。
Expand Down Expand Up @@ -397,6 +411,8 @@ bin/start
>
> `ZooKeeper Port`: `zk`端口,默认为`2181`
>
> `ZK Status Port`: `zookeeper`指标监控的端口,默认`8080`
>
> `Cluster Username`: `ck`的用户名
>
> `Cluster Password`: `ck`的密码
Expand Down

0 comments on commit b7e51f4

Please sign in to comment.