Skip to content

Define external users and use cases for the CometBFT storage layer #68

Closed

Description

@jmalicevic

Original issue: tendermint/tendermint#9943

Problem definition

We do not have a complete picture on how our users as well as different CometBFT components interact with storage. We therefore need to collect all the relevant use cases for the storage backend. While issue #67 captures internal storage use cases, we need to understand how CometBFT storage is used not including CometBFT itself:

  • Who are the main users and how are they using CometBFT storage (validators, sentries, full nodes, relayers, etc., but with specific emphasis on what people are doing with full nodes).

  • What are their pain points with regards to storage (usage, querying time, impact from unavailable data) ?

  • What types of queries do they typically run agains CometBFT?

  • What RPC endpoints are relevant? Are all fields returned by the endpoint of importance?

  • How big is their data (block, genesis file)?

  • Do they enable data indexing ?

DoD

  • A list of different users, their typical usage patterns and issues with regards to CometBFT storage.
  • Make sure we understand what types of data they access and whether and how we could allow them to configure individual storage usage.

Activity

  1. self-assigned this
    on Dec 27, 2022
  2. moved this from Todo to In Progress in CometBFT 2023on Jan 10, 2023
  3. added this to the 2023-Q2 milestone on Mar 28, 2023
  4. changed the title [-]Define storage use cases and workloads[/-] [+]Define external users and use cases for the CometBFT storage layer[/+] on Mar 29, 2023
  5. added
    P:storage-optimization
    on Jun 20, 2023
  6. modified the milestones: 2023-Q2, 2023-Q3 on Jun 27, 2023
  7. removed their assignment
    on Jun 27, 2023
  8. mzabaluev commented on Jun 28, 2023

    @mzabaluev
    Contributor

    In order for this to not be an open-ended research topic, it would make sense to limit the census to several important customers (by production share, ecosystem importance, foundation partnerships, and possible other factors) in each category, in assumption that the usage patterns within each application category are largely similar.

  9. mzabaluev commented on Jun 29, 2023

    @mzabaluev
    Contributor

    The data access requirements for Hermes are in fact documented in the repository (subject to being updated, also as part of this work).

    Brief summary of the request cases with the most impact on storage:

    Endpoint Parameters Use of result Frequency Notes
    /block_search Query filtering for a specific IBC channel and sequence number in event data Block height only Every N blocks (default N = 100) The cut-off height is not part of the query, but is used to filter the responses (want blocks older than that).
    /block_results Height {begin,end,finalize}_block_events fields For every match from the above query Also used by CLI, which prints out the whole result.
    /tx_search Query filtering for a specific IBC channel and sequence number in event data height, tx_result.events Every N blocks (default N = 100) The cut-off height is not part of the query, but is used to filter the responses (want blocks older than that).
    /tx_search Tx hash height, tx_result.events Often for packet confirmation, rarely in other cases.
    /tx_search Query filtering for client ID and consensus height in update_client events height, tx_result.events Rarely except with non-0 delay connections or misbehavior detection
    /header Height Timestamp, consensus state Frequently
    /commit, /latest_commit Height height, proposer_address Every time the light client needs a "light block"
    /validators Height validators Every time the light client needs a "light block"
  10. romac commented on Jun 29, 2023

    @romac
    Contributor

    @mzabaluev FYI I just now updated that document with a couple missing endpoints: informalsystems/hermes@efc9ff5

  11. jmalicevic commented on Oct 16, 2023

    @jmalicevic
    CollaboratorAuthor

    For Q3, we can close this issue and expand on new findings as needed.

    • The validator team has shared with us a document explaining their detailed use cases. Their main problem is that the pruning mechanism is not actually freeing storage space on disk. Additionally the response time is slow.
    • Injective has a custom built indexer that extracts data via RPC and is very interested in using our gRPC endpoints to extract the data in that way.
  12. moved this from In Progress to Done in CometBFT 2023on Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P:storage-optimizationstorage

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions