Skip to content

Establish and implement the relevant metrics to understand storage workloads #46

Closed

Description

@lasarojc

Was tendermint/tendermint#9773

We need to identify the set of metrics to understand the storage workloads of CometBFT. The metrics should help us identify:

  • The access patterns (sequential / random access)
  • How often the data is read/written
  • Who reads/writes the data
  • Is the data accessed by multiple components or just one.
  • How much of the total height time is spent in storage - on a small network, on a big network? (Is storage a bottleneck? )

Open questions: Do we want information on which CometBFT Blockstore / StateStore method call triggered the access or is read/write/delete count and timing enough?

Draft implementation: tendermint/tendermint#9774

DoD

Activity

  1. added this to the 2023-Q2 milestone on Mar 28, 2023
  2. added
    P:storage-optimization
    on Jun 20, 2023
  3. modified the milestones: 2023-Q2, 2023-Q3 on Jun 27, 2023
  4. removed their assignment
    on Jun 27, 2023
  5. modified the milestones: 2023-Q3, 2023-Q4 on Oct 16, 2023
  6. jmalicevic commented on Nov 22, 2023

    @jmalicevic
    Collaborator

    For Q4 2023, we will focus on:

    • Storage access time (last point in the issue description)
    • Which data is most frequently read
    • The amount of storage taken by different workloads with and without pruning
    • The throughout with and without pruning - This was derived from a call with Injective whose users' latency was heavily impacted by pruning being enabled.

    This list might be altered after an in person meeting of the team deciding on the exact measurments that will help us achieve our Q4 goals.

    The main result of this testing should be :

    • Showing that the impact of pruning has improved - compaction works
    • Database access times have decreased
    • Impact of the new pruning mechanism on throughput
    • Impact of different key representation + new pruning mechanism on throughput.
  7. melekes commented on Nov 28, 2023

    @melekes
    Collaborator

    The throughout with and without pruning - This was derived from a call with Injective whose users' latency was heavily impacted by pruning being enabled.

    The throughput can be hard to measure as it depends on many factors. Is it better to measure the duration of pruning (if possible)? This is similar to how the Golang core team optimised their garbage collector by looking at the duration of GC pauses.

  8. modified the milestones: 2023-Q4, 2024-Q1 on Jan 10, 2024
  9. moved this from Todo to In Progress in CometBFTon Jan 17, 2024
  10. self-assigned this
    on Jan 17, 2024
  11. moved this from In Progress to Ready for Review in CometBFTon Jan 30, 2024
  12. added a commit that references this issue on Feb 13, 2024
    dfd3f6c
  13. moved this from Ready for Review to Done in CometBFTon Feb 13, 2024
  14. added a commit that references this issue on Feb 22, 2024
    a00a92d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P:storage-optimizationmetricsstorage

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions