当前位置:网站首页>Tdengine deployment cluster installation
Tdengine deployment cluster installation
2022-04-23 00:54:00 【~Rookie~Newbie~Noob~】
TDengine Installation and deployment
1. Official website download server and client Installation package , Ensure that the versions of the server and the client are consistent
server: TDengine-server-2.4.0.16-Linux-x64.tar.gz (15.5 M)
client:TDengine-client-2.4.0.16-Linux-x64-Lite.tar.gz (3.1 M)
2. Cluster planning (4 platform centos7 virtual machine )
| pc | ip | hostname |
|---|---|---|
| linux-1 | 192.168.101.78 | h1.taosdata.com |
| linux-2 | 192.168.101.79 | h2.taosdata.com |
| linux-3 | 192.168.101.80 | h3.taosdata.com |
| linux-4 | 192.168.101.81 | There is no need to configure hostname |
-
To configure hostname
edit /etc/hostname file , Modify the of the corresponding virtual machine hostname And restart -
Edit each (4 Virtual machines ) The virtual machine /etc/hosts file , Add the following :
192.168.101.78 h1.taosdata.com
192.168.101.79 h2.taosdata.com
192.168.101.80 h3.taosdata.comCheck whether they can ping through .
3. preparation
1. Turn off firewall ( Production environment is not recommended ) Or open up TCP and UDP 6030 Of 4042 port
2. Server clock synchronization , Ensure that all servers have the same time .
4 Upload installation package , And extract the
- take TDengine-server-2.4.0.16-Linux-x64.tar.gz (15.5 M) Uploaded to the h1.taosdata.com、h2.taosdata.com、h3.taosdata.com The server , And extract the
tar -xvf TDengine-server-2.4.0.16-Linux-x64.tar.gz - take TDengine-client-2.4.0.16-Linux-x64-Lite.tar.gz (3.1 M) Uploaded to the 192.168.101.81 Server and unzip
tar -xvf TDengine-client-2.4.0.16-Linux-x64-Lite.tar.gz
5. install
- Install server

Same operation , stay h2.taosdata.com and h3.taosdata.com Do it once . - Install client

6. After the server and client are installed , modify /etc/taos/taos.cfg The configuration file
-
Server configuration file modification : Be sure to modify the parameters firstEp and fqdn
h1.taosdata.com To configure :firstEp h1.taosdata.com:6030
fqdn h1.taosdata.comh2.taosdata.com To configure :
firstEp h1.taosdata.com:6030
fqdn h2.taosdata.comh3.taosdata.com To configure :
firstEp h1.taosdata.com:6030
fqdn h3.taosdata.com -
Client configuration file , Just configure firstEp that will do
firstEp h1.taosdata.com:6030
Start the first data node
-
stay h1.taosdata.com Node , Enter the following command , Start the first data node :
systemctl start taosdView node operation status , Make sure that the node is in running state .
systemctl status taosd
-
stay 192.168.101.81 On the connection server
taos -h h1.taosdata.com -
Execution instruction
show dnodes
4. Join subsequent nodes dynamically . stay h2.taosdata.com and h3.taosdata.com The same applies to section 1 Step by step operation , Make sure taos be in running state . And back again 192.168.101.81 On , Execution section 3 Step instruction .
taos> create dnode "h2.taosdata.com:6030"; taos> create dnode "h3.taosdata.com:6030"; taos> show dnodes;
thus , Has successfully built 3 Of nodes tdengin colony .
Vnode High availability
When you create a database , Available through REPLICA Set the number of copies :
CREATE DATABASE testdb REPLICA n;
- n Available settings are 1-3, But it cannot exceed the number of nodes .
- When one vnode group Half or more of vnode When not working ,vnode group We can't provide services to the outside world , Because you can't choose master Of .
- The default when creating a database is REPLICA yes 1, At this time, the cluster does not have vnode High availability ; If high availability is needed ,REPLICA Should be set to be greater than or equal to 2 Value .

What you see here ,node Of id by 3 The node of is master node .
版权声明
本文为[~Rookie~Newbie~Noob~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230053334225.html
边栏推荐
- Luogu p2241 statistical square
- L2-012 judgment on heap (25 points) (string bug to be solved)
- Information system project management - project initiation management
- Elk setup (IV): monitor MySQL slow query and error log
- thymeleaf 的templates子集目录下不能引入common公共页面,否则报错:模板解析错误,错误原因:公共页面的引用路径错误(缺少子目录名)
- [what is istio?] You're out before you know it. You can understand it quickly in 40 minutes
- Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
- 多测师杭州拱墅校区肖sir_高级金牌讲师_简历实战
- 德勤2022技术趋势:IT自我颠覆、技术跨界融合创新
- The market structure has entered a period of restructuring, ESP has frequently "recalled", and Chinese suppliers "take advantage of the trend"
猜你喜欢

DCB "first brother" xianruida, what does it rely on to raise the value curve?

Openresty installation and introduction

信息系统项目管理-立项管理

Acrel-5000型建筑能耗监测系统在西咸空港花园项目的研究与应用

Xamarin效果第二十二篇之录音效果

洛谷P2241统计方形

BUUCTF 隐藏的钥匙

Multi surveyor Xiao sir, Gongshu campus, Hangzhou_ Senior gold medal lecturer_ Resume practice

Lightly: a new generation of go IDE

Can you really cross with a k-fold? Thoughts on k-fold intersection
随机推荐
软件测试神仙文档,连阿里面试官都说太详细了,搞懂这些直接是P7级
leetcode 134. gas station
Oplg: new generation cloud primary observable best practices
L3-1 straight beat Huanglong (30 points) DJK + DFS
L2-022 rearrange linked list (25 points) linked list operation
Software testing immortal documents, even Ali interviewers said it was too detailed. Understanding these directly is P7 level
Partial ways of converting JSP to thymeleaf format
[HCTF 2018]admin
C#/. Net uses questpdf operation to generate PDF faster and more efficient!
L2-022 重排链表 (25 分) 链表操作
The addition inverse element (a ^ a = 0) XOR operation, which has no performance advantage, is just an intelligence game
Kotlin - inherit open
为企业出海“搭桥”,汇量科技靠什么出圈?
[what is istio?] You're out before you know it. You can understand it quickly in 40 minutes
L2-010 排座位 (25 分) 并查集
【蓝桥杯国赛真题18】Scratch加法选择题 青少年组 scratch蓝桥杯国赛真题和答案讲解
L2-002 链表去重 (25 分) 标程
Lightly: a new generation of cloud IDE
C# 11 对 ref 和 struct 的改进
Shenkaihong News Studio opened for the first time to witness the whole process of the growth of the times