The sstableofflinerelevel utility relevels SSTables.

This tool is intended to run in an offline fashion. When using the LevelledCompactionStrategy, it is possible for the number of SSTables in level L0 to become excessively large, resulting in read latency degrading. This is often the case when atypical write load is experienced (eg. bulk import of data, node bootstrapping). This tool will relevel the SSTables in an optimal fashion. The --dry run flag can be used to run in test mode and examine the tools results.

  • Cassandra Package installations:
    $ sstableofflinerelevel [--dry-run] keyspace table
  • Cassandra Tarball installations:
    $ cd install_location/tools
    $ bin/sstableofflinerelevel [--dry-run] keyspace table
  • DataStax Enterprise 4.8 tarball installations:
    $ cd install_location/resources/cassandra/tools
    $ bin/sstableofflinerelevel [--dry-run] keyspace table


Choose a keyspace and table to relevel.
$ sstableofflinerelevel cycling cyclist_name