如何安装orchestrator元数据库MySQL

39次阅读
没有评论

共计 2013 个字符,预计需要花费 6 分钟才能阅读完成。

这篇文章主要为大家展示了“如何安装 orchestrator 元数据库 MySQL”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让丸趣 TV 小编带领大家一起研究并学习一下“如何安装 orchestrator 元数据库 MySQL”这篇文章吧。

    安装 orchestrator 元数据库 MySQL 安装 MySQL 的步骤省略,和常规安装 MySQL 一样。安装完成后创建 orchestrator 需要用到的库和用户。

CREATE DATABASE IF NOT EXISTS orchestrator;
CREATE USER  orchestrator @ 127.0.0.1  IDENTIFIED BY  orchestrator 
GRANT ALL PRIVILEGES ON `orchestrator`.* TO  orchestrator @ 127.0.0.1

这里元数据库 MySQL 和 orchestrator 在同一台机器上,所以创建账号的时候用的 127.0.0.1,如果不在同一台机器上,将 IP 换成 orchestrator 所在机器 ip。
  密码按需修改。    安装 orchestrator 下载 orchestrator 安装包,这里用的是 orchestrator-3.1.0-linux-amd64.tar.gz。https://github.com/github/orchestrator/releases 解压 orchestrator 安装包。

tar -xvzf orchestrator-3.1.0-linux-amd64.tar.gz -C /

将 /usr/local/orchestrator/orchestrator-sample.conf.json 移动到 /etc 下,并命名为 orchestrator.conf.json。

[root@10-10-30-146 orchestrator]# ls
orchestrator orchestrator-sample-sqlite.conf.json orchestrator-sample.conf.json resources
[root@10-10-30-146 orchestrator]# cp orchestrator-sample.conf.json /etc/orchestrator.conf.json

    目标监控数据库授权在需要监控的目标数据库上进行授权。这里目标数据库是:10.10.30.129:3306

CREATE USER  orchestrator @ orch_host  IDENTIFIED BY  orch_topology_password 
GRANT SUPER, PROCESS, REPLICATION SLAVE, RELOAD ON *.* TO  orchestrator @ orch_host 
GRANT SELECT ON mysql.slave_master_info TO  orchestrator @ orch_host 
GRANT SELECT ON ndbinfo.processes TO  orchestrator @ orch_host  -- Only for NDB Cluster

其中,将 orch_host 改成对应 orch 所在服务器的 ip,orch_topology_password 改成合适的密码。这里 orch_host 是 10.10.30.146,将密码改为 orchestrator。    修改 orchestrator 配置文件修改 /etc/orchestrator.conf.json 如下:

///  配置 orchestrator 后端元数据库信息
 MySQLOrchestratorHost :  127.0.0.1 ,
 MySQLOrchestratorPort : 3306,
 MySQLOrchestratorDatabase :  orchestrator ,
 MySQLOrchestratorUser :  orchestrator ,
 MySQLOrchestratorPassword :  orchestrator ,
///  配置 orchestrator 监控的目标数据库信息
 MySQLTopologyUser :  orchestrator ,
 MySQLTopologyPassword :  orchestrator ,

    启动 orchestrator 

cd /usr/local/orchestrator   ./orchestrator --config=/etc/orchestrator.conf.json http 

web 端访问地址 10.10.30.146:3000。页面效果如下:

以上是“如何安装 orchestrator 元数据库 MySQL”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注丸趣 TV 行业资讯频道!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-27发表,共计2013字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)