The DBA Tools tab

Use system-level tools to investigate your ClickHouse® cluster

The DBA Tools panel lets you use system-level tools to investigate errors, check for schema consistency errors, rebalance storage across your cluster’s disks, and look at detached parts in your ClickHouse® cluster.

DBA Tools page

Figure 1 - The DBA Tools tab

It has six subtabs:

The Errors tab

The Errors tab, as you would expect, displays any errors that have occurred:

Errors tab

Figure 2 - The Errors tab

Details include the last time an error occurred, how many times it has occurred, and the error message.

The Schema Consistency tab

The Schema Consistency tab displays any schema consistency issues. Hopefully you have no issues and see this:

Schema Consistency tab

Figure 3 - The Schema Consistency tab

The Disks Balance tab

The Disks Balance tab has two tabs itself: The Distribution tab, which shows all of the disks in your ClickHouse cluster and how much free space is available on each, and the Rebalance tab, which lets you rebalance your data among your cluster’s disks.

The Distribution tab displays a graph of your disks and how much free space is available on each:

Disks Balance Distribution tab

Figure 4 - The Rebalance subtab of the Disks Balance tab

The Rebalance tab lets you, well, rebalance your data:

Disks Balance Rebalance tab

Figure 5 - The Rebalance subtab of the Disks Balance tab

Clicking the button rebalances the cluster’s disks. You should only rebalance your disks if you’ve gotten an alert that one of your disks is nearly full and you have at least one disk with plenty of space. Note that the ACM will not rebalance your disks if none of them have significant free space, and it will not rebalance the disks unless a significant amount of storage is involved.

The Detached Parts tab

The Detached Parts tab displays any detached parts in your ClickHouse cluster.

Detached Parts tab

Figure 6 - The Detached Parts tab

Selecting one or more parts activates the button.

See the Altinity Knowledge Base article on Detached Parts for more information.

The Crashes tab

The Crashes tab displays the details of any crash that may have occurred:

Crashes tab

Figure 7 - The Crashes tab

[ClickHouse rarely crashes, so we don’t have an example to show here.]

The Audit Report tab

The Audit Report tab lets you create new audit reports and lists any reports previously created:

Audit Report tab

Figure 8 - The Audit Report tab

Clicking the button creates a new report. Clicking the button downloads an HTML file to your machine. The report format is straightforward:

Sample Audit Report

Figure 9 - A sample Audit Report

If you’re inclined to print the report, be aware that it may be hundreds of pages long.