@@ -136,7 +136,7 @@ impl Default for StateSyncDriverConfig {
136136 max_connection_deadline_secs : 10 ,
137137 max_consecutive_stream_notifications : 10 ,
138138 max_num_stream_timeouts : 12 ,
139- max_pending_data_chunks : 100 ,
139+ max_pending_data_chunks : 50 ,
140140 max_pending_mempool_notifications : 100 ,
141141 max_stream_wait_time_ms : 5000 ,
142142 num_versions_to_skip_snapshot_sync : 100_000_000 , // At 5k TPS, this allows a node to fail for about 6 hours.
@@ -219,9 +219,7 @@ pub struct DataStreamingServiceConfig {
219219 /// Maximum number of concurrent data client requests (per stream) for state keys/values.
220220 pub max_concurrent_state_requests : u64 ,
221221
222- /// Maximum channel sizes for each data stream listener. If messages are not
223- /// consumed, they will be dropped (oldest messages first). The remaining
224- /// messages will be retrieved using FIFO ordering.
222+ /// Maximum channel sizes for each data stream listener (per stream).
225223 pub max_data_stream_channel_sizes : u64 ,
226224
227225 /// Maximum number of notification ID to response context mappings held in
@@ -256,7 +254,7 @@ impl Default for DataStreamingServiceConfig {
256254 global_summary_refresh_interval_ms : 50 ,
257255 max_concurrent_requests : MAX_CONCURRENT_REQUESTS ,
258256 max_concurrent_state_requests : MAX_CONCURRENT_STATE_REQUESTS ,
259- max_data_stream_channel_sizes : 300 ,
257+ max_data_stream_channel_sizes : 50 ,
260258 max_notification_id_mappings : 300 ,
261259 max_num_consecutive_subscriptions : 40 , // At ~4 blocks per second, this should last 10 seconds
262260 max_pending_requests : 50 ,
@@ -297,7 +295,7 @@ impl Default for DynamicPrefetchingConfig {
297295 Self {
298296 enable_dynamic_prefetching : true ,
299297 initial_prefetching_value : 3 ,
300- max_prefetching_value : 50 ,
298+ max_prefetching_value : 30 ,
301299 min_prefetching_value : 3 ,
302300 prefetching_value_increase : 1 ,
303301 prefetching_value_decrease : 2 ,
0 commit comments