当前位置:网站首页>Tdengine biweekly selection of community issues | phase III
Tdengine biweekly selection of community issues | phase III
2022-07-06 08:46:00 【Tdengine】
Hi, Hello everyone , To prevent too many common problems from bothering users , Easy for users to learn 、 Absorb experience , We will select the common problems encountered by users in the community recently 、 Summary , Share with you in the form of a column . This is the third issue of this column , The content shared is as follows :
Content preview
- Why do I write data in batches , Timestamp use NOW Function splicing will result in data loss ?
- How to smoothly expand the capacity of a cluster ?
- After cluster expansion ,DNode Status as Offline How to investigate ?
- How to smoothly shrink a cluster ?
- Novice benefits : Quick start TDengine modeling .
1. Why do I write data in batches , Timestamp use NOW Function splicing will result in data loss ?
To answer this question, we first need to emphasize a concept ,TDengine As a Time series database (Time-Series Database), The first timestamp field acts as a primary key , Construction of memory index 、 The storage of disk data is closely related to it , There must be no duplicate timestamp .
NOW function ( as well as NOW keyword ) Return the current time of the client . When performing batch writes , If the values given by the timestamp in the first column are NOW, It is indistinguishable under the time level of milliseconds by default in the database , Repeated timestamps written later will be lost or updated , The specific logic for handling repeated timestamps is provided in TDengine China Construction Library (Database) At the time of the Update Parameter determination .
2. How to smoothly expand the capacity of a cluster ?
To expand the cluster, you need to add nodes manually . The specific operation steps are as follows :
- After the first node is successfully deployed , Install nodes to be added in sequence TDengine Server program , edit /etc/hosts, Add the domain name resolution of all nodes in the cluster ( If deployed DNS server, There is no need to edit ).
- The configuration file of the first node taos.cfg Copy to the node to be added , Will be one of the fqdn The parameter is changed to the node itself fqdn (hostname).
- Start the node to be added taosd service , Then enter taos The command line executes the following statement to add the node to be added into the cluster :CREATE DNode ‘Node2:6030’ .
- perform SHOW DNodes Check whether the status of the data node is Ready. by Ready On behalf of successful cluster expansion .
3. After cluster expansion ,DNode Status as Offline How to investigate ?
After the new node joins the cluster normally , The data node list will show that the node is in Ready state . If the node status is Offline, Check according to the following contents :
- View the node taosd Started or not 、 Whether the firewall is closed ;
- Confirm whether the data folder of the node to be added is empty ;
- Check all nodes /etc/hosts Whether the domain name resolution is complete 、 It works ( All nodes need to be resolved , Include arbitrator);
- The node firstEP、fqdn Whether the parameters are configured correctly .
4. How to smoothly shrink a cluster ?
Cluster capacity reduction is achieved through DROP DNode Delete nodes to achieve , Stop specifying directly DNode Of taosd The process will only let this node Offline, But it cannot complete the effect of volume reduction . The specific operation steps are as follows :
- Get into taos Command line , perform SHOW DNodes Check the status of the node to be deleted , if ready Then proceed to the next step ;
- Delete the specified node from the current cluster DROP DNode ‘Node2:6030’ perhaps DROP DNode <DNodeId>.
- perform SHOW DNodes View the cluster node information , Finally, confirm that the information of the node to be deleted has disappeared from the list .
Be careful : Before deleting nodes , The cluster will DNode Data is migrated to other nodes , The completion speed depends on the bandwidth of the network 、 On disk IO, Never stop the node to be deleted before it is completed taosd service .
5. Novice benefits : Quick start TDengine modeling .
In the process of community support , You can find many novice partners deploying TDengine I don't know how to further experience , Our suggestion is to run the sentences in the official website documents , But there are many documents , In order to facilitate community partners to get started quickly , We condense the example model of the official website document 、 I summed it up , Let users know as soon as possible TDengine Modeling methods :[ Introduction to modeling ]
complimentary close
Thank you for reading the selected questions in this issue , I hope the above is helpful to you . You are using TDengine This kind of TIme-Series Database In the process of , If you encounter a difficult problem or have a problem with TDengine There are suggestions for improvement , Welcome to the GitHub Let's talk about Issue , The more detailed the content, the better ~ Last , Thank you for using TDengine!
Want to know more TDengine Database Specific details of , Welcome to GitHub View the relevant source code on .
边栏推荐
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- R language uses the principal function of psych package to perform principal component analysis on the specified data set. PCA performs data dimensionality reduction (input as correlation matrix), cus
- 软件卸载时遇到trying to use is on a network resource that is unavailable
- 企微服务商平台收费接口对接教程
- JVM performance tuning and practical basic theory - Part 1
- vb. Net changes with the window, scales the size of the control and maintains its relative position
- Detailed explanation of heap sorting
- @Jsonbackreference and @jsonmanagedreference (solve infinite recursion caused by bidirectional references in objects)
- 【ROS】usb_ Cam camera calibration
- 深度剖析C语言指针
猜你喜欢

生成器参数传入参数

Restful API design specification

Delay initialization and sealing classes

深度剖析C语言数据在内存中的存储

JVM performance tuning and practical basic theory - Part 1

JVM performance tuning and practical basic theory - Part 1

JVM 快速入门

软件卸载时遇到trying to use is on a network resource that is unavailable

sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题

【嵌入式】Cortex M4F DSP库
随机推荐
Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
如何有效地进行自动化测试?
Problems in loading and saving pytorch trained models
[NVIDIA development board] FAQ (updated from time to time)
China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
MySQL learning record 10getting started with JDBC
自动化测试框架有什么作用?上海专业第三方软件测试公司安利
Revit secondary development Hof method calls transaction
Current situation and trend of character animation
Chrome浏览器的crash问题
JVM performance tuning and practical basic theory - Part 1
Using pkgbuild:: find in R language_ Rtools check whether rtools is available and use sys The which function checks whether make exists, installs it if not, and binds R and rtools with the writelines
LeetCode:26. 删除有序数组中的重复项
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
China dihydrolaurenol market forecast and investment strategy report (2022 Edition)
【ROS】usb_cam相机标定
Analysis of the source code of cocos2d-x for mobile game security (mobile game reverse and protection)
查看局域网中电脑设备
The mysqlbinlog command uses
被破解毁掉的国产游戏之光