Datapoints overwhelm the metrics queue and blow up ram usage. (#8272) (#8282)

automerge
This commit is contained in:
mergify[bot]
2020-02-14 21:49:26 -08:00
committed by GitHub
parent e2f5a63316
commit 3534a7cbc7
6 changed files with 57 additions and 31 deletions

View File

@@ -409,7 +409,7 @@ impl BankingStage {
if unprocessed_packets.is_empty() {
continue;
}
let num = unprocessed_packets
let num: usize = unprocessed_packets
.iter()
.map(|(_, unprocessed)| unprocessed.len())
.sum();

View File

@@ -1280,6 +1280,7 @@ impl ClusterInfo {
Some(res)
}
#[allow(clippy::cognitive_complexity)]
fn handle_packets(
me: &Arc<RwLock<Self>>,
recycler: &PacketsRecycler,

View File

@@ -208,6 +208,7 @@ impl ReplayStage {
let (lockouts_sender, commitment_service) =
AggregateCommitmentService::new(&exit, block_commitment_cache);
#[allow(clippy::cognitive_complexity)]
let t_replay = Builder::new()
.name("solana-replay-stage".to_string())
.spawn(move || {