美文网首页学习空间
TiDB Cluster 部署

TiDB Cluster 部署

作者: 古飞_数据 | 来源:发表于2021-08-04 10:14 被阅读0次

安装部署附图


image.png

08: TiDB Cluster 部署-练习1

212

curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
source /root/.bash_profile
tiup cluster
tiup update --self && tiup update cluster
tiup --binary cluster
tiup cluster template > topology.yaml
ls
pd_servers:
tidb_servers:
tikv_servers:

软硬件环境需求及前置检查
配置免密登录(管理机212上操作)

ssh-keygen -t rsa
yum install numactl -y
yum install irqbalance -y
systemctl start irqbalance
systemctl enable irqbalance

//检查

tiup cluster check ./topology.yaml --apply --user root -p 

//部署

tiup cluster deploy tidb-test v5.0.0 ./topology.yaml --user root -p 

tiup cluster list

//显示集群状态

tiup cluster display tidb-test

//启动集群

tiup cluster start tidb-test

//显示集群状态

tiup cluster display tidb-test

Dashboard URL: http://10.206.0.157:2379/dashboard

mysql -h 10.206.0.212 -P 4000 -uroot
show databases;

检查时的报错
mount point / does not have 'nodelalloc' option set, auto fixing not supported
mount point / does not have 'noatime' option set, auto fixing not supported

相关文章

网友评论

    本文标题:TiDB Cluster 部署

    本文链接:https://www.haomeiwen.com/subject/fkuyvltx.html