当前位置:网站首页>Tidb - quick start, cluster setup
Tidb - quick start, cluster setup
2022-06-10 19:50:00 【4xx. me】
TiDB Open source distributed relational database , It supports both online transaction processing and online analysis processing (Hybrid Transactional and Analytical Processing, HTAP) Integrated distributed database products , With horizontal expansion or reduction 、 Financial high availability 、 real time HTAP、 Cloud native distributed database 、 compatible MySQL 5.7 The protocol and MySQL Ecological and other important characteristics . The goal is to provide users with one-stop OLTP (Online Transactional Processing)、OLAP (Online Analytical Processing)、HTAP Solution .TiDB For high availability 、 Strong consensus requires higher requirements 、 Large data scale and other application scenarios .
The goal of this article
- A preliminary understanding TiDB
- Use TiUP Simulate the production environment on a single machine TiDB Cluster steps
- Basic use
A preliminary understanding TiDB
- TiDB yes Open source A distributed Relational database
- TiDB compatible MySQL 5.7 agreement
- TiDB Horizontal expansion and contraction
- Official website :https://pingcap.com/
Use TiUP Simulate the production environment on a single machine TiDB Cluster steps
Official quick start tutorial :https://docs.pingcap.com/zh/tidb/stable/quick-start-with-tidb 18 year 10 I wrote an article about construction in January TiDB A tutorial for :https://4xx.me/archives/67.html
1. TiUP Is a cluster management tool , It is recommended to deploy in the central control computer
2. Prepare a deployment host , Recommended installation CentOS 7.3 And above .( It can be together with the central control computer )
3. Download and install TiUP
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
## Redeclare global environment variables
source .bash_profile
## confirm TiUP Whether the tool is installed
which tiup
## install TiUP cluster Components
tiup cluster
## to update TiUP cluster Component to latest version
tiup update --self && tiup update cluster4. Create a new profile topology.yaml.ip Change to the machine that needs to be deployed ip, Be careful ssh port
- Provide a copy of
topology.yamlTemplates :topology.yaml
## Global variables are applied to all deployments and used as the default value of
## the deployments if a specific deployment value is missing.
global:
user: "tidb"
ssh_port: 22
deploy_dir: "/data/tidb-deploy"
data_dir: "/data/tidb-data"
## Monitored variables are applied to all the machines.
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
server_configs:
tidb:
log.slow-threshold: 300
tikv:
readpool.storage.use-unified-pool: false
readpool.coprocessor.use-unified-pool: true
pd:
replication.enable-placement-rules: true
tiflash:
logger.level: "info"
pd_servers:
- host: 192.168.137.13
tidb_servers:
- host: 192.168.137.13
tikv_servers:
- host: 192.168.137.13
port: 20160
status_port: 20180
monitoring_servers:
- host: 192.168.137.135. Execute the cluster deployment command
### see tidb Version list
tiup list tidb
### tidb-test Name the cluster ,v4.0.4 Currently installed version
tiup cluster deploy tidb-test v4.0.4 ./topology.yaml --user root -p
### Follow the lead , Input ”y” And root password , To complete the deployment 6. Start cluster
### tidb-test Name the cluster
tiup cluster start tidb-test7. View the topology and status of the cluster
tiup cluster display tidb-test8. visit web Monitoring background , Default account root, The password is empty
http://192.168.137.13:2379/dashboard/#/signin
Basic use
1. Use Navicat Premium 15 Registered Edition Connect to database , Default port 4000, account number root, The password is empty
2. Change or set the password
## set password for account number =password(' New password ');
set password for root=password('root');边栏推荐
- Esp8266 system environment setup
- 2022.05.27 (lc_647_palindrome substring)
- Office technical lecture: punctuation - Chinese - Daquan
- 禁止摆烂,软件测试工程师从初级到高级进阶指南,助你一路晋升
- frp reverse proxy
- 腾讯Libco协程开源库 源码分析(三)---- 探索协程切换流程 汇编寄存器保存 高效保存协程环境
- 面试中经常问到的几个问题,快来看看能答对几道吧
- This article introduces you to j.u.c's futuretask, fork/join framework and BlockingQueue
- Go语学习笔记 - 跨域配置、全局异常捕获 | Web框架Gin(四)
- Analysis of epidemic situation in Shanghai based on improved SEIR model
猜你喜欢

轻松学Pytorch-全卷积神经网络实现表情识别

【C语言】还搞不明白结构体吗?不妨来看看这篇文章,带你初步了解结构体

【C语言进阶】指针的进阶【中篇】

SAR图像聚焦质量评价插件

Tencent cloud database tdsql- a big guy talks about the past, present and future of basic software

我的第一部作品:TensorFlow2.x

Domain Driven Design (VI) - Architecture Design

全数字时代,企业IT如何完成转型?

China pufuteng hotels and resorts launched new spa products to celebrate the global health day on June 11

Before we learn about high-performance computing, let's take a look at its history
随机推荐
Source code analysis of Tencent libco collaboration open source library (III) -- Exploring collaboration switching process assembly register saving and efficient collaboration environment
LeetCode_并查集_中等_399. 除法求值
2022.05.28 (lc_5_longest palindrome substring)
618大促将至,用AI挖掘差评,零代码实现亿级评论观点情感分析
Cet article vous donne un aperçu de la tâche future de j.u.c, du cadre Fork / join et de la file d'attente de blocage
It is forbidden to throw away rotten software. A guide for software test engineers to advance from elementary level to advanced level will help you promote all the way
一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue
Ranked first in China's SDN (software) market share for six consecutive years
Multi channel signal data compression storage
This article introduces you to j.u.c's futuretask, fork/join framework and BlockingQueue
Performance and high availability analysis of database firewall
Mongodb unique index
MySql的MyISAM引擎切换InnoDB时报错Row size too large (> 8126)解决
2022.05.29 (lc_6078_rearranges characters to form target string)
Morris traversal of binary tree
Apicloud visual development - one click generation of professional source code
Apicloud visual development novice graphic tutorial
APICloud可视化开发丨一键生成专业级源码
SAR image focusing quality evaluation plug-in
Mixin -- mixed