Skip to content

Storage optimization #44

Open
Open

Description

@lasarojc

High-level tracking issue for general storage optimization efforts. This issue can be expanded over time.

At present (mid 2023), depending on their configuration, Tendermint-based nodes use large quantities of storage space. This has significant cost implications for operators. We aim to implement strategies to reduce and/or offload certain data stored in order to reduce operators' costs.

The two main problems that are present in the CometBFT storage layer:

  1. We have a very big storage footprint
  2. Querying stored data (whether supporting RPC queries or Comet retrieving consensus data structures) is not optimized and in some cases proven to be very efficient

To address these problems, we first need to build understanding of:

  • Workloads : What we store, how frequently we access it, what are the characteristics of the stored data (and this list will be expanded).
  • The database backend: database features, design goals and optimization possibilities.

The work to be done can be broken down in the following main subsections:


To reach this goal we envision the following steps :


Tune CometBFT to address storage related bottlenecks

Part of this section covers addressing issues found during the benchmarking and investigation process outlined above. Another part addresses concrete issues reported by users. While part of this issues cannot be fully addressed before the analysis above, some optimizations can be performed on CometBFT as it is today - marked with * .


CometBFT stores and allows querying of data not essential for consensus
We need to Identify the functionalities we want to support within Tendermint and offload non-critical data and functionality.

  • Implement ADR-101 PoC targeting main #816
    This implementation provides users with an API to implement their own event indexing and prune the full nodes who store events at the moment.
  • Write a data companion based on ADR 101


CometBFT currently maintains its own [WAL](https://github.com/cometbft/cometbft/blob/101bf50e715d6a10c8135392166c35bdae94972e/consensus/wal.go) - is this even necessary, given that the underlying database should actually be taking care of this? It is another source of complexity and potential point of failure in the system that the team has to maintain.


Original issue: tendermint/tendermint#9881

Activity

  1. added
    major-priority
    tracking
    on Dec 23, 2022
  2. changed the title [-]Storage Optimization[/-] [+]Storage optimization[/+] on Mar 28, 2023
  3. moved this from Todo to In Progress in CometBFTon Jan 12, 2024
  4. added this to the 2024-Q1 milestone on Jan 31, 2024
  5. removed this from the 2024-Q1 milestone on Apr 1, 2024
  6. added a commit that references this issue on May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

major-prioritystoragetracking

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions