filecoin-saturn / L1-dashboard

https://dashboard.saturn.tech
Other
6 stars 4 forks source link

Clarify ttfbStats values meaning in orchestrator stats response #49

Open 31z4 opened 1 year ago

31z4 commented 1 year ago

Hi! I'm working on Saturn Moonlet which is a more powerful and insightful alternative to Saturn Node Dashboard that anyone can run.

I'd like to better understand how do values in ttfbStats section of GET https://orchestrator.strn.pl/stats response relate. I'm specifically interested in reqs_served_1h, hits_1h, errors_1h and slow_hits_1h. My current guess is that none of these values include each other. Meaning that reqs_served_1h does not include hits_1h, errors_1h and slow_hits_1h. And hits_1h does not include slow_hits_1h. So this means that we can sum up all these values to get the total number of requests served by a node:

reqs_server_total_1h = sum(reqs_served_1h + hits_1h + errors_1h + slow_hits_1h)

Is that correct?

P. S. I wasn't sure where to post this question because the orchestrator itself is closed source.