mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 12:28:24 +00:00
Modularize beacon node backend (#4718)
#4669 Modularize the beacon node backend to make it easier to add new database implementations
This commit is contained in:
@@ -33,6 +33,13 @@ pub static DISK_DB_READ_BYTES: LazyLock<Result<IntCounterVec>> = LazyLock::new(|
|
||||
&["col"],
|
||||
)
|
||||
});
|
||||
pub static DISK_DB_KEY_READ_BYTES: LazyLock<Result<IntCounterVec>> = LazyLock::new(|| {
|
||||
try_create_int_counter_vec(
|
||||
"store_disk_db_key_read_bytes_total",
|
||||
"Number of key bytes read from the hot on-disk DB",
|
||||
&["col"],
|
||||
)
|
||||
});
|
||||
pub static DISK_DB_READ_COUNT: LazyLock<Result<IntCounterVec>> = LazyLock::new(|| {
|
||||
try_create_int_counter_vec(
|
||||
"store_disk_db_read_count_total",
|
||||
@@ -40,6 +47,13 @@ pub static DISK_DB_READ_COUNT: LazyLock<Result<IntCounterVec>> = LazyLock::new(|
|
||||
&["col"],
|
||||
)
|
||||
});
|
||||
pub static DISK_DB_KEY_READ_COUNT: LazyLock<Result<IntCounterVec>> = LazyLock::new(|| {
|
||||
try_create_int_counter_vec(
|
||||
"store_disk_db_read_count_total",
|
||||
"Total number of key reads to the hot on-disk DB",
|
||||
&["col"],
|
||||
)
|
||||
});
|
||||
pub static DISK_DB_WRITE_COUNT: LazyLock<Result<IntCounterVec>> = LazyLock::new(|| {
|
||||
try_create_int_counter_vec(
|
||||
"store_disk_db_write_count_total",
|
||||
@@ -66,6 +80,12 @@ pub static DISK_DB_EXISTS_COUNT: LazyLock<Result<IntCounterVec>> = LazyLock::new
|
||||
&["col"],
|
||||
)
|
||||
});
|
||||
pub static DISK_DB_DELETE_TIMES: LazyLock<Result<Histogram>> = LazyLock::new(|| {
|
||||
try_create_histogram(
|
||||
"store_disk_db_delete_seconds",
|
||||
"Time taken to delete bytes from the store.",
|
||||
)
|
||||
});
|
||||
pub static DISK_DB_DELETE_COUNT: LazyLock<Result<IntCounterVec>> = LazyLock::new(|| {
|
||||
try_create_int_counter_vec(
|
||||
"store_disk_db_delete_count_total",
|
||||
@@ -73,6 +93,19 @@ pub static DISK_DB_DELETE_COUNT: LazyLock<Result<IntCounterVec>> = LazyLock::new
|
||||
&["col"],
|
||||
)
|
||||
});
|
||||
pub static DISK_DB_COMPACT_TIMES: LazyLock<Result<Histogram>> = LazyLock::new(|| {
|
||||
try_create_histogram(
|
||||
"store_disk_db_compact_seconds",
|
||||
"Time taken to run compaction on the DB.",
|
||||
)
|
||||
});
|
||||
pub static DISK_DB_TYPE: LazyLock<Result<IntCounterVec>> = LazyLock::new(|| {
|
||||
try_create_int_counter_vec(
|
||||
"store_disk_db_type",
|
||||
"The on-disk database type being used",
|
||||
&["db_type"],
|
||||
)
|
||||
});
|
||||
/*
|
||||
* Anchor Info
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user