当前位置:网站首页>Tidb hybrid deployment topology
Tidb hybrid deployment topology
2022-07-02 15:08:00 【Tianxiang shop】
In this paper, TiDB Clustered TiKV and TiDB Hybrid deployment topology and main parameters . Common scenarios are , The deployer is multi-channel CPU processor , There's plenty of memory , To improve the utilization of physical machine resources , Single machine multi instance deployment , namely TiDB、TiKV adopt numa To nuclear , Isolation CPU resources .PD and Prometheus Mixed deployment , But the data directories of both need to use independent file systems .
Topology information
example | Number | Physical machine configuration | IP | To configure |
---|---|---|---|---|
TiDB | 6 | 32 VCore 64GB | 10.0.1.1 10.0.1.2 10.0.1.3 | To configure numa Binding operation |
PD | 3 | 16 VCore 32 GB | 10.0.1.4 10.0.1.5 10.0.1.6 | To configure location_labels Parameters |
TiKV | 6 | 32 VCore 64GB | 10.0.1.7 10.0.1.8 10.0.1.9 | 1. Distinguish instance level port、status_port; 2. Configure global parameters readpool、storage as well as raftstore; 3. Configure instance level host Dimensional labels; 4. To configure numa Binding operation |
Monitoring & Grafana | 1 | 4 VCore 8GB * 1 500GB (ssd) | 10.0.1.10 | The default configuration |
Topology template
Simple mixed part configuration template
Detailed mix configuration template
above TiDB In the cluster topology file , See adopt TiUP Deploy TiDB Cluster topology file configuration .
Introduction to key parameters of hybrid deployment
This section introduces the key parameters of single machine multi instance , It is mainly used for TiDB、TiKV Single machine multi instance deployment scenario . You need to follow the calculation formula provided , Fill the results in the configuration template of the previous step .
TiKV Make configuration optimization
readpool Thread pool adaptation , To configure
readpool.unified.max-thread-count
Parameters can makereadpool.storage
andreadpool.coprocessor
Share a unified route pool , At the same time, adaptive switches should be set separately .Turn on
readpool.storage
andreadpool.coprocessor
:readpool.storage.use-unified-pool: true readpool.coprocessor.use-unified-pool: true
The calculation formula is as follows :
readpool.unified.max-thread-count = cores * 0.8 / TiKV Number
storage CF (all RocksDB column families) Memory adaptation , To configure
storage.block-cache.capacity
Parameters can be implemented CF Automatically balance memory usage .storage.block-cache
Default on CF The adaptive , There is no need to modify .storage.block-cache.shared: true
The calculation formula is as follows :
storage.block-cache.capacity = (MEM_TOTAL * 0.5 / TiKV Number of instances )
If more than one TiKV Instances are deployed on the same physical disk , Need to be in tikv Add in configuration capacity Parameters :
raftstore.capacity = Total disk capacity / TiKV Number of instances
label Scheduling configuration
Due to the single machine multi instance deployment TiKV, To avoid physical downtime leading to Region Group Default 3 Replica 2 Copy lost , Problems that make the cluster unavailable , Can pass label To achieve PD Intelligent scheduling , Ensure that there are many machines on the same machine TiKV Instances will not appear Region Group Only 2 The situation of the copy .
TiKV To configure
The same physical machine has the same configuration host Level label Information :
config: server.labels: host: tikv1
PD To configure
PD Need configuration labels Type to identify and schedule Region:
pd: replication.location-labels: ["host"]
numa_node
To nuclearConfigure the corresponding... In the instance parameter module
numa_node
Parameters , And add the corresponding physical CPU The number of nuclear ;numa Before binding core for use , Confirm that it has been installed numactl Tools , And the physical machine corresponding to the physical machine CPU After , Then configure the parameters ;
numa_node
This configuration parameter is similar tonumactl --membind
Configuration correspondence .
Be careful
- When editing the profile template , Pay attention to modifying the necessary parameters 、IP、 Port and directory .
- Of each component deploy_dir, By default global Medium
<deploy_dir>/<components_name>-<port>
. for example tidb Port designation 4001, be deploy_dir The default is '/tidb-deploy/tidb-4001'. therefore , When specifying a non default port in a multi instance scenario , There is no need to specify the directory again . - There is no need to manually create
tidb
user ,TiUP cluster The component will automatically create the user on the deployment host . You can customize the user , It can also be consistent with the users of the central control computer . - If the deployment directory is configured as a relative path , It will be deployed in the user's home directory .
边栏推荐
- TiDB 环境与系统配置检查
- 哈夫曼树:(1)输入各字符及其权值(2)构造哈夫曼树(3)进行哈夫曼编码(4)查找HC[i],得到各字符的哈夫曼编码
- C# richTextBox控制显示最大行数
- Makefile separates file names and suffixes
- LeetCode_字符串_简单_412.Fizz Buzz
- [Space & single cellomics] phase 1: single cell binding space transcriptome research PDAC tumor microenvironment
- Reuse and distribution
- 解决el-radio-group 回显后不能编辑问题
- [noi Simulation Competition] scraping (dynamic planning)
- mathjax 入门(web显示数学公式,矢量的)
猜你喜欢
Edit the formula with MathType, and set it to include only mathjax syntax when copying and pasting
[noi simulation] Elis (greedy, simulation)
Fatal: unsafe repository is owned by someone else
C code audit practice + pre knowledge
Onnx+tensorrt: write preprocessing operations to onnx and complete TRT deployment
GeoServer offline map service construction and layer Publishing
Btrace- (bytecode) dynamic tracking tool
[apipost] tutorial
Solve the problem that El radio group cannot be edited after echo
[email protected] : The platform “win32“ is incompatible with this module."/>
info [email protected] : The platform “win32“ is incompatible with this module.
随机推荐
Record an error report, solve the experience, rely on repetition
C语言习题---(数组)
【无标题】LeetCode 2321. 拼接数组的最大分数
TiDB混合部署拓扑
二叉树的遍历方式主要有:先序遍历、中序遍历、后序遍历、层次遍历。先序、中序、后序其实指的是父节点被访问的次序。若在遍历过程中,父节点先于它的子节点被访问,就是先序遍历;
Niuke Practice 101
可视化搭建页面工具的前世今生
TiDB跨数据中心部署拓扑
info [email protected]: The platform “win32“ is incompatible with this module.
Wechat applet uses towxml to display formula
MFC 定时器使用
数据分析常见的英文缩写(一)
Tmall product details interface (APP, H5 end)
Internet Explorer officially retired
牛客练习赛101
编译原理课程实践——实现一个初等函数运算语言的解释器或编译器
Add vector formula in rich text editor (MathType for TinyMCE, visual addition)
传感器数据怎么写入电脑数据库
07_哈希
Implementation of n queen in C language