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

automerge
This commit is contained in:
anatoly yakovenko
2020-02-14 13:11:55 -06:00
committed by GitHub
parent c350543b46
commit 17fb8258e5
7 changed files with 58 additions and 31 deletions

View File

@ -404,7 +404,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

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

View File

@ -193,6 +193,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 || {

View File

@ -132,6 +132,7 @@ pub struct Validator {
}
impl Validator {
#[allow(clippy::cognitive_complexity)]
pub fn new(
mut node: Node,
keypair: &Arc<Keypair>,