open-falcon 从0.2.1升级到最新git commit版本(20180614)

编译最新代码

date: 20180614

commit: b399492

  • 准备golang环境
$ docker run -it --rm --name golang -v /home/docker/gitbase/falcon-plus/:/opt golang bash

#(docker) apt-get update && apt-get install -y git
  • 拉取最新代码
mkdir -p $GOPATH/src/github.com/open-falcon
cd $GOPATH/src/github.com/open-falcon
git clone https://github.com/open-falcon/falcon-plus.git

编译

Compilation
cd $GOPATH/src/github.com/open-falcon/falcon-plus/

# make all modules
make all

# make specified module
make agent

# pack all modules
make pack
after make pack you will got open-falcon-vx.x.x.tar.gz
if you want to edit configure file for each module, you can edit config/xxx.json before you do make pack

部署

  • db schema

无需更新

  • 配置文件

在graph/config/cfg.json中新增配置

"ioWorkerNum": 64,
  • 启动
$ ./open-falcon start