当前位置:Gxlcms > 数据库问题 > mysql架构~ Orchestrator

mysql架构~ Orchestrator

时间:2021-07-01 10:21:17 帮助过:140人阅读

一 本身高可用      本身基于raft协议.用来实现orchestrator自身的高可用,需要至少2个节点可用才能进行切换     相关配置      "RaftEnabled": true, "RaftDataDir": "/var/lib/orchestrator", "RaftBind": "本机IP, "DefaultRaftPort": 10008, "RaftNodes": [集群所有IP]12" ], 二 检测机制     1 自身对于mysql服务的探测     2 当自身无法连接mysql主时,还会在从库再去检测主库是否异常,检测的是io_thread,       在从库设置       1 slave_net_timeout=8,N代表在多长时间内没收到数据,代表主库异常      2 master_heartbeat_period=2 复制心跳的周期。默认是slave_net_timeout的一半。Master在没有数据的时候,每2秒发送一个心跳包,这样 Slave 就能知道 Master 是不是还正常       3 检测两次 三 源数据库  orchestrator需要源数据库来存储收集到的信息  创建数据库名为orchestrator orchestrator.conf.json配置MySQLOrchestrator开头的连接信息 四 账号信息     MySQLTopologyUser/Password 这个配置项为被管理的MySQL集群的admin账号,该账号需要有super,process,reload,select,replicatiopn slave,replicatiopn client 权限。 五 启动命令 ./orchestrator --config=./orchestrator.conf.json --debug http

mysql架构~ Orchestrator

标签:efault   json   mys   reload   数据库名   lib   无法   sla   select   

人气教程排行