环境搭建

提问:

EP01-5分钟系列–安装单节点tidb

centos :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43


准备:
centos  root用户登录 ,ubuntu遇到其他问题
ssh-copy-id root@127.0.0.1 



## 安装tiup
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
tiup install cluster

配置模板:
https://github.com/pingcap/tiup/blob/master/embed/examples/cluster/minimal.yaml 模板
lscpu 默认

// tiup cluster deploy <cluster-name> <version> <topology.yaml> [flags]
tiup cluster deploy tidb7.5 7.5.0 ./minimal_centos.yaml

查看集群列表
tiup cluster list

启动集群
tiup cluster start watchpoints

检查集群状态
tiup cluster display watchpoints

禁用开启启动
tiup cluster disable tidb-test

删除集群
tiup cluster destroy watchpoints

yum -y install mysql

# help

- https://docs.pingcap.com/zh/tidb/dev/quick-start-with-tidb
- https://asktug.com/t/topic/1019413
- https://asktug.com/t/topic/1018622
- ttps://docs.pingcap.com/zh/tidb/stable/tiup-cluster [反复看]
- https://docs.pingcap.com/zh/tidb/stable/check-before-deployment

## tikv

EP02-5分钟系列–编译tikv 并替换

build

一、问题是什么

开始时间:2023-05-05

结束时间:2023-06-05

期望一个月内

二、如何分析的

TiKV 源码阅读三部曲(一)重要模块

本小节将简单介绍 KVService 及其启动流程,并顺带介绍 TiKV 若干重要结构的初始化流程

TiKV 源码阅读三部曲(二)读流程

本小节将在 TiKV 6.1 版本的源码基础上,以一条读请求为例,介绍当前版本读请求的全链路执行流程。

三、如何解决的

文章地址