OceanBase Diagnostic Tool (obdiag) must support online upgrades to reduce the dependency on the release of new versions and implement quick updates and real-time iterations. The design of obdiag allows the decoupling of the execution of some features from the execution logic. This makes online upgrades feasible.
Syntax of update commands
obdiag update
obdiag update --file=<file_name>
file_name specifies the path of add-on files used to manually upgrade obdiag. If you do not specify this parameter, the online upgrade process is used.
If you use the --file parameter to specify the path, you need to ensure the correctness of the files.
Upgrade process
- Move the original add-on file folder, such as
~/.obdiag/check, to {original folder name}.d, such as~/.obdiag/check.d. - Decompress the latest add-on files to
~/.obdiag/.
Notice
- Earlier inspection-related files are stored in
~/.obdiag/, such as~/.obdiag/tasks. You need to determine whether to delete these files.