-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard does not use metrics anymore #1333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the naming you could rename DashboardAggregator
to DashboardMetrics
and DashboardAggregatorAggregator
to DashboardMetricsAggregator
it looks nicer I think
I also have weird behavior running 2 nodes: Also there is something wrong in the calculation of number of transaction. Currently for a bucket of a timestamp you create a list of all the durations of all nodes, but some durations of different node refer the same transaction, so if you have only one transaction processed by 3 nodes you'll say there where 3 transactions processed in the graph while in fact there were only 1 transaction. A solution could be to have a map with transaction address => duration, so you could easily calculate the real number of transaction, and it would also be a more accurate calculation of the average transaction validation time |
5a5710d
to
62bcff4
Compare
- Boxplot of validation duration - Tx count per node within last hour
1b98f39
to
ad31998
Compare
Description
With 21 nodes, we used to transmit more than 100GB per node per day to display the dashboard.
Before:
21 nodes * 300KB of data * 720 requests per hour * 24 hours = 100GB
After:
21 nodes * 4KB of data * 60 requests per hour * 24 hours = 121MB
I removed the fetching of metrics from nodes to nodes and replaced it with 2 new processes:
The aggregation is currently set to 1 minute and we keep 60 minutes of history. This way the dashboard can display the last hour of data as soon as we hit the page.
We could do smaller buckets / longer history if the need arises.
Fixes #1182
Type of change
How Has This Been Tested?
Unit tests + tested locally with 4 nodes
Checklist: