Author: Yao Song
Earth people, love music, animation, movies, games, humanities, food, travel, and others. Although they are all dishes, they are hobbies after all.
Source of this article: original contribution
*The original content is produced by the open source community of Aikesheng, and the original content shall not be used without authorization. For reprinting, please contact the editor and indicate the source.
refer to:
https://github.com/openark/orchestrator/blob/master/docs/install.md
https://github.com/openark/orchestrator/blob/master/docs/raft-vs-sync-repl.md
https://github.com/github/orchestrator/blob/master/docs/configuration-raft.md
https://github.com/openark/orchestrator/blob/master/docs/high-availability.md
Version:
https://github.com/openark/orchestrator/releases
Environment Description:
orchestrator host environment
10.186.65.5
10.186.65.11
10.186.65.26
orchestrator backend database link (MySQL database)
10.186.65.29:3307
installation steps
# Download the specified version of orchestrator (here, take 3.2.6 as an example)
yum -y install wget jq
dir_software="/opt/software/"
mkdir -p ${dir_software}
cd ${dir_software}
# Install
dir_software="/opt/software/"
cd /
tar -zxvf /${dir_software}/orchestrator-3.2.6-linux-amd64.tar.gz
# (Backend database) Set the backend database account
-- Create the metadata storage schema of the orchestrator
CREATE DATABASE IF NOT EXISTS orchestrator;
-- Create a database account so that orchestrator can connect to the backend database
CREATE USER 'orchestrator'@'10.186.65.5' IDENTIFIED BY 'Orch@123';
GRANT ALL PRIVILEGES ON orchestrator.* TO 'orchestrator'@'10.186.65.5';
CREATE USER 'orchestrator'@'10.186.65.11' IDENTIFIED BY 'Orch@123';
GRANT ALL PRIVILEGES ON orchestrator.* TO 'orchestrator'@'10.186.65.11';
CREATE USER 'orchestrator'@'10.186.65.26' IDENTIFIED BY 'Orch@123';
GRANT ALL PRIVILEGES ON orchestrator.* TO 'orchestrator'@'10.186.65.26';
# set configuration file
(The orchestrator node needs to be configured, here is the 10.186.65.26 node as an example)
cp /usr/local/orchestrator/orchestrator-sample.conf.json /etc/orchestrator.conf.json
vi /etc/orchestrator.conf.json
"MySQLOrchestratorHost": "10.186.65.29", // 后端数据库连接ip
"MySQLOrchestratorPort": 3307, // 后端数据库端⼝
"MySQLOrchestratorDatabase": "orchestrator", // 后端数据库使⽤的schema
"MySQLOrchestratorUser": "orchestrator", // 后端数据库连接账户
"MySQLOrchestratorPassword": "Orch@123", // 后端数据库连接密码
.........
"MySQLTopologyUser": "orchestrator", // 接管的MySQL需要创建的账户,运维数据库使⽤
"MySQLTopologyPassword": "orch_topology_password", // 接管的MySQL创建账户的密码,运维数据库使⽤
.........
"MySQLOrchestratorUseMutualTLS": false,
........
"HostnameResolveMethod": "none",
"MySQLHostnameResolveMethod": "@@report_host", // 确保接管的数据库都配置了report_host
........
"RaftEnabled": true, // 是否开启raft,使⽤orch⾼可⽤时需要开启
"BackendDB": "mysql", // 后端连接的数据库类型
"RaftBind": "10.186.65.26", // raft的bind地址,写本机的ip
"RaftDataDir": "/usr/local/orchestrator", // raft的数据⽬录
"DefaultRaftPort": 10008, // raft使⽤的端⼝
"RaftNodes": [ // raft的节点,即3个orch的主机
"10.186.65.5",
"10.186.65.11",
"10.186.65.26"
]
Note: When setting the configuration file, remember to remove the comments in the configuration file;
# start up
cd /usr/local/orchestrator
nohup ./orchestrator -config /etc/orchestrator.conf.json http &
# Configure environment variables
vi /etc/profile
export PATH=$PATH:/usr/local/orchestrator/:/usr/local/orchestrator/resources/bin/
export PATH=$PATH:/usr/local/orchestrator/:/usr/local/orchestrator/resources/bin/
# Interface access:
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。