当前位置:网站首页>Tdengine offline upgrade process
Tdengine offline upgrade process
2022-07-05 09:43:00 【Tdengine】
matters needing attention :
- It is strongly recommended that users who need to upgrade directly to the latest version of each version branch ( All download links - TDengine | Taosi data );
- TDengine Version rollback is not allowed after upgrading . therefore , Please be sure to follow the upgrade process of the text , Backup ahead of time , So as to avoid unexpected problems ;
- After upgrade , Please verify the integrity of the database service as soon as possible ;
- For the use of RESTful Users of interface services , After upgrade , Remember to use systemctl start taosadapter start-up taosadapter service , In order to make sure RESTful Interface available ;
- With 2.0.16 For the dividing line , The upgrade steps are slightly different , Please check your database service version .( Version checking method : On the server side taos shell Internal execution select server_version());
Text :
2.0-2.0.15 edition , Upgrade up to 2.0.16 And any subsequent versions , The operation is as follows ( Including cluster and single machine ):
- Before upgrading , Please prepare the installation package of the new version on the server ( Download link : All download links - TDengine | Taosi data );
- Ensure that the current node is in a working state :
- ) show dnodes: various dnode status Are all ready;
- ) show mnodes: various mnode role Are all master perhaps slave;
- ) show Library name .vgroups: various vgroup status Are all ready, And role Are all master perhaps slave;
- ) The database reads and writes normally ;
- Stop the database service on all nodes :systemctl stop taosd
- Backup all node data files under the directory ( The default is :/var/lib/taos) All content to another path or store (vnode_bak Can be emptied );
- cd Enter the data file directory of each node ;
- ls -ltR | grep -i “wal” Check ” All under the data file directory wal Whether the file is empty ;
- If it is empty , Enter steps 9;
- If it is not empty , Start the database process of the node and then shut down . Be sure to wait until the file is empty for all nodes , To move on .( If the directory is started and stopped repeatedly, it cannot be empty , Please contact the TDengine Official support );
- When the database service is stopped , Execute one by one on all nodes rmtaos( The uninstallation method depends on the type of installation package , May refer to :TDengine Installation and uninstallation of multiple installation packages - TDengine | Taosi data ), Then install the new version install.sh( Or other installation methods , See ibid );
- After all nodes are upgraded , At each node Linux shell Use in taosd –force-keep-file Command to start the service process ;
- Open a new one linux terminal , Input taos -h xxxx -p command ( Fill in the user password according to the actual situation ), Perform step... Again 2 , And check the data integrity .
- After confirmation , Cancelable taosd –force-keep-file The process of . Again systemctl start taosd Mode start taosd service .
- 【 Optional 】 Execute on demand : systemctl start taosadapter;
- Perform step... Again 2 , And check the data integrity .
- After checking that there is no mistake , Upgrade Complete .
2.0.16 Version and later , Upgrade to any version , The operation is as follows ( Including cluster and single machine ):
- Before upgrading , Please prepare the installation package of the new version on the server ( Download link : All download links - TDengine | Taosi data );
- Ensure that the current node is in a working state :
- ) show dnodes: various dnode status Are all ready;
- ) show mnodes: various mnode role Are all master perhaps slave;
- ) show Library name .vgroups: various vgroup status Are all ready, And role Are all master perhaps slave;
- ) The database reads and writes normally ;
- Stop the database service on all nodes :systemctl stop taosd
- Backup all node data files under the directory ( The default is :/var/lib/taos) All content to another path or store (vnode_bak Can be emptied );
- cd Enter the data file directory of each node ;
- ls -ltR | grep -i “wal” Check ” All under the data file directory wal Whether the file is empty ;
- If it is empty , Enter steps 9;
- If it is not empty , Start the database process of the node and then shut down . Be sure to wait until the file is empty for all nodes , To move on .( If the directory is started and stopped repeatedly, it cannot be empty , Please contact the TDengine Official support );
- When the database service is stopped , Execute one by one on all nodes rmtaos( The uninstallation method depends on the type of installation package , May refer to :TDengine Installation and uninstallation of multiple installation packages - TDengine | Taosi data ), Then install the new version install.sh( Or other installation methods , See ibid );
- Start the database service at each node :systemctl start taosd;
- 【 Optional 】 Execute on demand : systemctl start taosadapter;
- Perform step... Again 2 , And check the data integrity .
- After checking that there is no mistake , Upgrade Complete .
Want to know more TDengine Database Specific details of , Welcome to GitHub View the relevant source code on .
边栏推荐
- Why does everyone want to do e-commerce? How much do you know about the advantages of online shopping malls?
- 基于STM32单片机的测温仪(带人脸检测)
- Why do offline stores need cashier software?
- First understanding of structure
- [object array A and object array B take out different elements of ID and assign them to the new array]
- Kotlin introductory notes (I) kotlin variables and non variables
- Principle and performance analysis of lepton lossless compression
- AUTOSAR from getting started to mastering 100 lectures (103) -dbc file format and creation details
- Hosting environment API
- 项目实战 | Excel导出功能
猜你喜欢

A detailed explanation of the general process and the latest research trends of map comparative learning (gnn+cl)

What should we pay attention to when developing B2C websites?

TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型

C语言-从键盘输入数组二维数组a,将a中3×5矩阵中第3列的元素左移到第0列,第3列以后的每列元素行依次左移,原来左边的各列依次绕到右边

OpenGL - Model Loading

一文详解图对比学习(GNN+CL)的一般流程和最新研究趋势

Unity SKFramework框架(二十三)、MiniMap 小地图工具

百度评论中台的设计与探索
![[sourcetree configure SSH and use]](/img/9a/1cd4ca29e5b7a3016ed6d5dc1abbef.png)
[sourcetree configure SSH and use]

SMT32H7系列DMA和DMAMUX的一点理解
随机推荐
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
uni-app---uni.navigateTo跳转传参使用
Kotlin introductory notes (V) classes and objects, inheritance, constructors
Online chain offline integrated chain store e-commerce solution
一篇文章带你走进cookie,session,Token的世界
Nips2021 | new SOTA for node classification beyond graphcl, gnn+ comparative learning
Android privacy sandbox developer preview 3: privacy, security and personalized experience
A keepalived high availability accident made me learn it again
【数组的中的某个属性的监听】
Hosting environment API
[ctfhub] Title cookie:hello guest only admin can get flag. (cookie spoofing, authentication, forgery)
Project practice | excel export function
[ManageEngine] how to make good use of the report function of OpManager
Viewpager pageradapter notifydatasetchanged invalid problem
Applet global style configuration window
Unity SKFramework框架(二十三)、MiniMap 小地图工具
Progressive JPEG pictures and related
First understanding of structure
正式上架!TDengine 插件入驻 Grafana 官网
[reading notes] Figure comparative learning gnn+cl