Running compaction

About this task

Run compaction on keyspaces and tables from node operations in OpsCenter. Compaction frees up disk space occupied by old SSTables and improves read performance by incrementally replacing old SSTables with compacted SSTables.

For information about manually running a compaction, see the corresponding nodetool compact command. For conceptual information, see Compaction strategies.

Prerequisites

If OpsCenter role-based security is enabled, be sure that the permission for the Compact option in Node Operations is enabled for the appropriate user roles.

Procedure

  1. Click cluster name > Nodes.

  2. In the List view, select one or more nodes.

  3. From the Other Actions menu, click Compact.

    The Compact option is also available from the Actions menu in the Node Details dialog.

    The Choose a Keyspace dialog appears.

  4. Select one or more or all keyspaces to compact and click Choose.

  5. Select one or more or all tables to compact and click Choose. If you selected all keyspaces, all tables are also selected for compaction.

    The Run Compaction dialog appears and warns of a temporary decrease in performance.

    Confirm compaction dialog

  6. Click Run Compaction.

    A message in the top banner indicates the operation is in progress. Click the Show Details link to view the progress in the Activities page General tab. The banner message indicates when the operation is complete.