@@ -140,9 +140,7 @@ use crate::epoch::committee_store::CommitteeStore;
140
140
use crate :: execution_driver:: execution_process;
141
141
use crate :: in_mem_execution_cache:: { ExecutionCache , ExecutionCacheRead , ExecutionCacheWrite } ;
142
142
use crate :: metrics:: LatencyObserver ;
143
- use crate :: metrics:: RateTracker ;
144
143
use crate :: module_cache_metrics:: ResolverMetrics ;
145
- use crate :: overload_monitor:: { overload_monitor, AuthorityOverloadInfo } ;
146
144
use crate :: stake_aggregator:: StakeAggregator ;
147
145
use crate :: state_accumulator:: { StateAccumulator , WrappedObject } ;
148
146
use crate :: subscription_handler:: SubscriptionHandler ;
@@ -239,9 +237,6 @@ pub struct AuthorityMetrics {
239
237
pub ( crate ) skipped_consensus_txns : IntCounter ,
240
238
pub ( crate ) skipped_consensus_txns_cache_hit : IntCounter ,
241
239
242
- pub ( crate ) authority_overload_status : IntGauge ,
243
- pub ( crate ) authority_load_shedding_percentage : IntGauge ,
244
-
245
240
/// Post processing metrics
246
241
post_processing_total_events_emitted : IntCounter ,
247
242
post_processing_total_tx_indexed : IntCounter ,
@@ -274,18 +269,6 @@ pub struct AuthorityMetrics {
274
269
// Tracks recent average txn queueing delay between when it is ready for execution
275
270
// until it starts executing.
276
271
pub execution_queueing_latency : LatencyObserver ,
277
-
278
- // Tracks the rate of transactions become ready for execution in transaction manager.
279
- // The need for the Mutex is that the tracker is updated in transaction manager and read
280
- // in the overload_monitor. There should be low mutex contention because
281
- // transaction manager is single threaded and the read rate in overload_monitor is
282
- // low. In the case where transaction manager becomes multi-threaded, we can
283
- // create one rate tracker per thread.
284
- pub txn_ready_rate_tracker : Arc < Mutex < RateTracker > > ,
285
-
286
- // Tracks the rate of transactions starts execution in execution driver.
287
- // Similar reason for using a Mutex here as to `txn_ready_rate_tracker`.
288
- pub execution_rate_tracker : Arc < Mutex < RateTracker > > ,
289
272
}
290
273
291
274
// Override default Prom buckets for positive numbers in 0-50k range
@@ -470,16 +453,6 @@ impl AuthorityMetrics {
470
453
registry,
471
454
)
472
455
. unwrap ( ) ,
473
- authority_overload_status : register_int_gauge_with_registry ! (
474
- "authority_overload_status" ,
475
- "Whether authority is current experiencing overload and enters load shedding mode." ,
476
- registry)
477
- . unwrap ( ) ,
478
- authority_load_shedding_percentage : register_int_gauge_with_registry ! (
479
- "authority_load_shedding_percentage" ,
480
- "The percentage of transactions is shed when the authority is in load shedding mode." ,
481
- registry)
482
- . unwrap ( ) ,
483
456
transaction_manager_object_cache_misses : register_int_counter_with_registry ! (
484
457
"transaction_manager_object_cache_misses" ,
485
458
"Number of object-availability cache misses in TransactionManager" ,
@@ -645,8 +618,6 @@ impl AuthorityMetrics {
645
618
registry
646
619
) . unwrap ( ) ,
647
620
execution_queueing_latency : LatencyObserver :: new ( ) ,
648
- txn_ready_rate_tracker : Arc :: new ( Mutex :: new ( RateTracker :: new ( Duration :: from_secs ( 10 ) ) ) ) ,
649
- execution_rate_tracker : Arc :: new ( Mutex :: new ( RateTracker :: new ( Duration :: from_secs ( 10 ) ) ) ) ,
650
621
}
651
622
}
652
623
}
@@ -713,9 +684,6 @@ pub struct AuthorityState {
713
684
714
685
/// Config for when we consider the node overloaded.
715
686
overload_threshold_config : OverloadThresholdConfig ,
716
-
717
- /// Current overload status in this authority. Updated periodically.
718
- pub overload_info : AuthorityOverloadInfo ,
719
687
}
720
688
721
689
/// The authority state encapsulates all state, drives execution, and ensures safety.
@@ -2484,21 +2452,17 @@ impl AuthorityState {
2484
2452
transaction_deny_config,
2485
2453
certificate_deny_config,
2486
2454
debug_dump_config,
2487
- overload_threshold_config : overload_threshold_config. clone ( ) ,
2488
- overload_info : AuthorityOverloadInfo :: default ( ) ,
2455
+ overload_threshold_config,
2489
2456
} ) ;
2490
2457
2491
2458
// Start a task to execute ready certificates.
2492
2459
let authority_state = Arc :: downgrade ( & state) ;
2493
2460
spawn_monitored_task ! ( execution_process(
2494
2461
authority_state,
2495
2462
rx_ready_certificates,
2496
- rx_execution_shutdown,
2463
+ rx_execution_shutdown
2497
2464
) ) ;
2498
2465
2499
- let authority_state = Arc :: downgrade ( & state) ;
2500
- spawn_monitored_task ! ( overload_monitor( authority_state, overload_threshold_config) ) ;
2501
-
2502
2466
// TODO: This doesn't belong to the constructor of AuthorityState.
2503
2467
state
2504
2468
. create_owner_index_if_empty ( genesis_objects, & epoch_store)
0 commit comments