Skip to content
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

feat: add status/metrics api #70

Open
lispc opened this issue Jun 25, 2021 · 3 comments
Open

feat: add status/metrics api #70

lispc opened this issue Jun 25, 2021 · 3 comments
Labels

Comments

@lispc
Copy link
Member

lispc commented Jun 25, 2021

Request {
   task_query {
   start: timestamp, can be null,
   end: timestamp: can be null,
   tasks_limit: usize,
   }
}
Response {
    task_stats: {
        finished_task_num: usize,
        earliest_finished_tasks: vec[task_id] // len <= tasks_limit
        latest_finished_tasks: vec[task_id]
        processing_task_num: usize,
        earliest_processing_tasks: vec[task_id]
        latest_processing_tasks: vec[task_id]
        unstarted_task_num: usize,
        ...
        // any other types of tasks?
        // impl:   select task_status, count(*) from tasks group by task_status;
    },
    node_stats: {
         active_node_num: usize,
         offline_node_num: usize,
         total_node_num: usize,
     },
     proving_stats: {
           average_proving_time: float (secs) // last 100? or last hour? or [start, end) ? 
     }
}
@lispc lispc added the longterm label Jun 25, 2021
@lispc
Copy link
Member Author

lispc commented Jun 25, 2021

maybe in the long run, promethus / grafana will be useful?

@lispc
Copy link
Member Author

lispc commented Jul 5, 2021

average total proving block/s and txp/s

@lispc
Copy link
Member Author

lispc commented Jul 5, 2021

current tps: 0.06.

4 cpu core.

( 300 tps needs 5000 cores )

Block(2, 5, 10, 5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant