Skip to content

Conversation

@JulianVentura
Copy link
Contributor

Add batcher queue len and queue size in bytes metrics

Description

This PR adds two new metrics for the batcher:

  • Queue length: The number of proofs waiting in the batcher's queue to be included in a batch
  • Queue size: The sum of the sizes of the verification data, measured in bytes, of the proofs waiting in the batcher's queue.
image

How to test

  1. Start all services locally, including the metrics
  2. Start sending proofs
  3. Go to the "System Data" dashboard and go to the bottom on the left size (the batcher side). You should see four new graphs showing the queue len and queue size.
  4. Stop sending proofs and the metrics should be reset back to zero.
  5. Send a burst of many proofs to see a spike in the graphs with make batcher_send_sp1_burst BURST_SIZE=23

Type of change

Please delete options that are not relevant.

  • New feature
  • Bug fix
  • Optimization
  • Refactor

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

Copy link
Member

@MarcosNicolau MarcosNicolau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You haven't updated the grafana json! Thou I added them myself and it does seem to be working fine.

Copy link
Collaborator

@JuArce JuArce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is missing to update the grafana dashbaord

Copy link
Contributor

@uri-99 uri-99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol yes missing graphana visualizations

@JulianVentura
Copy link
Contributor Author

Sorry! Grafana dashboard was just added @uri-99 @JuArce @MarcosNicolau

@JulianVentura JulianVentura self-assigned this Dec 10, 2024
@PatStiles
Copy link
Contributor

Worked locally for me!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think these 2 new boxes in grafana are quite informative, yet they ended up quite in the bottom of the dashboard. i would put them a bit higher

@JuArce JuArce added this pull request to the merge queue Jan 8, 2025
Merged via the queue into staging with commit 5d4c5e5 Jan 8, 2025
3 checks passed
@JuArce JuArce deleted the feat/batcher-queue-len-size-metric branch January 8, 2025 18:39
PatStiles pushed a commit that referenced this pull request Jan 9, 2025
PatStiles pushed a commit that referenced this pull request Jan 9, 2025
PatStiles pushed a commit that referenced this pull request Jan 10, 2025
PatStiles pushed a commit that referenced this pull request Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants