Skip to content

Conversation

lexnv
Copy link
Contributor

@lexnv lexnv commented Nov 6, 2023

The purpose of this PR is to test in staging that the frontend can handle the messages exposed by the backed; as well as finding a directional limit of:

  • kernel versions
  • polkadot versions
  • CPU names.

target_os: self.target_os.generate_ranking_top(10),
target_arch: self.target_arch.generate_ranking_top(10),
cpu: self.cpu.generate_ranking_top(10),
version: self.version.generate_ranking_top(MAXIMUM_STATS_COUNT),
Copy link
Contributor

@niklasad1 niklasad1 Nov 6, 2023

Choose a reason for hiding this comment

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

Is it possible to add a few comments why 10 vs 1024 is used for certain metrics?

FYI, I have some troubles to understand the rationale behind by looking at the code, so I would like
to have either some kind of grouping by two different structs in ChainStats or add a few comments.

For example:

struct Chainstats {
   // This contains full stats for the metrics 
   full_stats: FullStats
   // This contains the top k stats for the metrics 
   top_k_stats: TopStats,
   other: Other,
}

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At the moment, staging does not propagate a meaningful number of statistics back to the frontend due to a limited variety of testing nodes with similar kernels and cpus.

I believe we'll end up taking a similar approach to this, but that decision still needs to be data-driven. In the meanwhile, will refactor the ChainStats to make it clear for which statistics we'd want more granular control in the frontend, good suggestion! Thanks!

@jsdw
Copy link
Collaborator

jsdw commented Feb 28, 2024

@lexnv just looking through old PRs; what should we do about this one? :)

@lexnv
Copy link
Contributor Author

lexnv commented Apr 5, 2024

I'll have another look over this PR, the general idea was to provide more data to the front end.
This info was requested a while ago by the parachain team.
The next steps here would be to test it in a deployment and make sure that the UI remains response before merging this

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.

3 participants