当前位置:网站首页>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 .
边栏推荐
- Gradientdrawable get a single color
- The popularity of B2B2C continues to rise. What are the benefits of enterprises doing multi-user mall system?
- STM32简易多级菜单(数组查表法)
- Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"
- Progressive JPEG pictures and related
- TDengine可通过数据同步工具 DataX读写
- OpenGL - Model Loading
- Viewpager pageradapter notifydatasetchanged invalid problem
- 微信小程序获取住户地区信息
- 百度交易中台之钱包系统架构浅析
猜你喜欢

The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall

分布式数据库下子查询和 Join 等复杂 SQL 如何实现?

OpenGL - Coordinate Systems

基于宽表的数据建模应用

Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding

Deep understanding of C language pointer

为什么不建议你用 MongoDB 这类产品替代时序数据库?

Using request headers to develop multi terminal applications

百度评论中台的设计与探索

图神经网络+对比学习,下一步去哪?
随机推荐
Wxss template syntax
Kotlin introductory notes (VII) data class and singleton class
从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
微信小程序获取住户地区信息
搞数据库是不是越老越吃香?
[ctfhub] Title cookie:hello guest only admin can get flag. (cookie spoofing, authentication, forgery)
[listening for an attribute in the array]
[Yugong series] go teaching course 003-ide installation and basic use in July 2022
Progressive JPEG pictures and related
TDengine 离线升级流程
LeetCode 556. 下一个更大元素 III
Applet customization component
Unity skframework framework (XXII), runtime console runtime debugging tool
Global configuration tabbar
OpenGL - Coordinate Systems
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Svg optimization by svgo
Analysis of eventbus source code
百度APP 基于Pipeline as Code的持续集成实践
H.265编码原理入门