Leader QoS service metrics (#21708)

* - qos_service metrics tagged with leader thread ids to separate gossip/tpu votes and transactions;
- qos_service metrics is reported with bank slot;
- replaced timer-based reporting with signal via channel; removed async report test as qos_service now lives within a thread

* - add tpu live packets (eg, not buffered packets) states to qos metrics reporting
This commit is contained in:
Tao Zhu
2021-12-22 15:39:59 -06:00
committed by GitHub
parent 2be139ca61
commit dd80a525ef
3 changed files with 174 additions and 118 deletions

View File

@ -97,7 +97,7 @@ fn bench_consume_buffered(bencher: &mut Bencher) {
None::<Box<dyn Fn()>>,
&BankingStageStats::default(),
&recorder,
&Arc::new(QosService::new(Arc::new(RwLock::new(CostModel::default())))),
&QosService::new(Arc::new(RwLock::new(CostModel::default())), 1),
);
});