Fix node count metrics (#3997)
- the count was truncated to avalanche neighborhood size
This commit is contained in:
parent
e4536621df
commit
15aa07f2a0
|
@ -77,10 +77,10 @@ impl Broadcast {
|
||||||
let mut broadcast_table = cluster_info.read().unwrap().sorted_tvu_peers(
|
let mut broadcast_table = cluster_info.read().unwrap().sorted_tvu_peers(
|
||||||
&staking_utils::delegated_stakes_at_epoch(&bank, bank_epoch).unwrap(),
|
&staking_utils::delegated_stakes_at_epoch(&bank, bank_epoch).unwrap(),
|
||||||
);
|
);
|
||||||
|
inc_new_counter_info!("broadcast_service-num_peers", broadcast_table.len() + 1);
|
||||||
// Layer 1, leader nodes are limited to the fanout size.
|
// Layer 1, leader nodes are limited to the fanout size.
|
||||||
broadcast_table.truncate(NEIGHBORHOOD_SIZE);
|
broadcast_table.truncate(NEIGHBORHOOD_SIZE);
|
||||||
|
|
||||||
inc_new_counter_info!("broadcast_service-num_peers", broadcast_table.len() + 1);
|
|
||||||
inc_new_counter_info!("broadcast_service-entries_received", num_entries);
|
inc_new_counter_info!("broadcast_service-entries_received", num_entries);
|
||||||
|
|
||||||
let to_blobs_start = Instant::now();
|
let to_blobs_start = Instant::now();
|
||||||
|
|
Loading…
Reference in New Issue