Maintain a TiFlash Cluster
This document describes how to perform common operations when you maintain a TiFlash cluster, including checking the TiFlash version. This document also introduces critical logs and a system table of TiFlash.
Check the TiFlash version
There are two ways to check the TiFlash version:
If the binary file name of TiFlash is
tiflash, you can check the version by executing the./tiflash versioncommand.However, to execute the above command, you need to add the directory path which includes the
libtiflash_proxy.sodynamic library to theLD_LIBRARY_PATHenvironment variable. This is because the running of TiFlash relies on thelibtiflash_proxy.sodynamic library.For example, when
tiflashandlibtiflash_proxy.soare in the same directory, you can first switch to this directory, and then use the following command to check the TiFlash version:LD_LIBRARY_PATH=./ ./tiflash versionCheck the TiFlash version by referring to the TiFlash log. For the log path, see the
[logger]part in thetiflash.tomlfile. For example:<information>: TiFlash version: TiFlash 0.2.0 master-375035282451103999f3863c691e2fc2
TiFlash critical logs
You can find the beginning or the end of a Coprocessor request, and then locate the related logs of the Coprocessor request through the thread ID printed at the start of the log.
TiFlash system table
The column names and their descriptions of the information_schema.tiflash_replica system table are as follows: