MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / db_pressure_on_core

Method db_pressure_on_core

nodedb/src/bridge/dispatch.rs:433–438  ·  view source on GitHub ↗

Per-database pressure state for the given core (used by metrics exporters). Returns `PressureState::Normal` when no pressure has been recorded for the database on that core.

(&self, core_id: usize, database_id: u64)

Source from the content-addressed store, hash-verified

431 /// Returns `PressureState::Normal` when no pressure has been recorded for
432 /// the database on that core.
433 pub fn db_pressure_on_core(&self, core_id: usize, database_id: u64) -> PressureState {
434 self.cores
435 .get(core_id)
436 .and_then(|ch| ch.db_pressure.get(&database_id).copied())
437 .unwrap_or(PressureState::Normal)
438 }
439
440 /// Poll responses from all Data Plane cores.
441 pub fn poll_responses(&mut self) -> Vec<envelope::Response> {

Callers 1

per_db_pressure_reportedFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 1

per_db_pressure_reportedFunction · 0.64