课程名称:课程版本(201)+ TiDB Courses for Application Developers: based on version 4.0(TiDB 4.0 应用开发指南)
学习时长:60
课程收获:tiup的使用
课程内容:
tiup playground v4.0.0
tiup playground display # 部署状态
tiup playground scale-out --db 1 --db.binpath /tmp/tidb-server # 扩容,指定编译的tidb
集群部署
tiup cluster check test.yaml -u root
tiup cluster deploy clustername test.yaml -u root
tiup cluster start/display clustername
tiup cluster upgrade newVersion # 升级过程中业务不受影响
topology.yaml配置原则
deploy_dir/data_dir/log_dir
- 绝对路径:deploy_dir/tidb-4000
- 相对路径:/home/tidb/deploy_dir/tidb-4000
运行时配置修改:
tiup cluster edit-config test
tiup cluster reload test