Usage counters - GPU
Closed this issue · 0 comments
nieznanysprawiciel commented
What:
- Measure time of processing Requests on framework
- Decide how we should measure simultaneous requests
Scenario:
- after receiving request - start counter
- proxy to framework(automatic)
- on response stop counter
Counter can have binary values: 0/1, parallel execution doesn't increment the value.
Should be implemented in the library for requests
Should expose API to retrieve data
Keep in mind that there can be more counters in the future, e.g. for number of requests
Next steps:
- migrate
exe-unit\src\metrics
andexe-unit\src\service\metrics.rs
intoexe-unit\components\metrics
in a way it will no longer useExeUnitContext
, and instead take just anAgreementView
make new crate to exportnewMetrics
trait, some shared implementations of the trait, andMetricsService
structya-counters
crate containingCounter
related code (formerMetric
s fromexe-unit
codebase)makehttp-gsb-proxy
accept list of counters/metrics implementingMetrics
andRequestMonitor
trait as a parameter and move code updating response/request monitoring metrics therehttp-gsb-proxy
produces implementations ofCounter
trait throughrequests_counter
andrequests_duration_counter
functions.- make
ya-counters
create exportexe-units
proc module + proc using Metrics (underproc
os
feature)