tiup
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
source .bash_profile
tiup playground --db=2 --kv=3 --pd=3 --monitor
说明: –db:多少个计算节点 (最少2个) –kv:多少个存储节点(最少3个) –pd:多少个管理节点 (PD:Placement Driver)(最少3个) –monitor:开启监控,使用Prometheus+Grafana进行监控(1个即可)
tiup cluster deploy tidb-test v4.0.6 ./topology.yaml -i ~/.ssh/id_rsa --user root
topology.yaml 参考: https://github.com/pingcap/docs/blob/master/config-templates/geo-redundancy-deployment.yaml
centos7系统自带源是mariadb 5.5,直接安装即可
yum install -y mysql
注意,tidb支持的mysql版本是5.7,尽量使用5.x版本
mysql -uroot -P4000 -h192.168.9.10
-h
指的是要登陆的机器,装有tidb组件的任意一个机器即可。
TiDB、TiKV、Placement Driver (PD) 主要作用?
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/100379.html原文链接:https://javaforall.cn