From cf6c65f64d3df959cb57107277ad4f6c5cf6ccf1 Mon Sep 17 00:00:00 2001 From: steviez Date: Tue, 23 Apr 2024 09:21:04 -0500 Subject: [PATCH] Reduce from 8 to 1 TVU receive socket/thread A single streamer is capable of handling the load, and doing so with a single thread is more efficient. --- gossip/src/cluster_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossip/src/cluster_info.rs b/gossip/src/cluster_info.rs index c6454f804d282d..e9e905c691219e 100644 --- a/gossip/src/cluster_info.rs +++ b/gossip/src/cluster_info.rs @@ -148,7 +148,7 @@ const MIN_NUM_STAKED_NODES: usize = 500; // Must have at least one socket to monitor the TVU port // The unsafes are safe because we're using fixed, known non-zero values pub const MINIMUM_NUM_TVU_SOCKETS: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(1) }; -pub const DEFAULT_NUM_TVU_SOCKETS: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(8) }; +pub const DEFAULT_NUM_TVU_SOCKETS: NonZeroUsize = MINIMUM_NUM_TVU_SOCKETS; #[derive(Debug, PartialEq, Eq, Error)] pub enum ClusterInfoError {