pokt-network/pocket-core

[Guardrails] Data Collection Automation - Merkle Sum Index Tree

jessicadaugherty opened this issue · 2 comments

Objective

To measure the efficacy of pocket-score scalability efforts, we should automate the collection of key data points to inform us on the impacts of changes in controlled and isolated environments. Bonus: classify service.

Origin Document

Guardrails Projects

Guardrails Recommendations

Guardrails Presentation

Goal

  • Automate the collection of Merkle Sum Index Tree data

Deliverable

  • Create a script to
    • Generate Relay Structures
    • Use the Relays as leafs to the tree
    • Generate the Merkle Root (Method 1 ‘to build the tree’)
    • Generate the Merkle Proof (Method 2 ‘to build the tree’)
  • Log the results and determine an interval at which to log this data

Non-goals / Non-deliverables

  • Automating the collection of additional data points

General issue deliverables

  • Update the appropriate CHANGELOG
  • Update any relevant READMEs (local and/or global)
  • Update any relevant global documentation & references
  • If applicable, update the source code tree explanation
  • If applicable, add or update a state, sequence or flowchart diagram using mermaid

Creator: @jessicadaugherty

Hey @iajrz! Question for you: at what interval should this data be collected (e.g. hourly, daily?)

Talk to Infra about aggregating data in grafana to have global average from Prometheus (vs. per chain)