Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage): rework raw cells cache #500

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 63 additions & 14 deletions scripts/gen-dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,54 @@ def storage() -> RowPanel:
create_heatmap_panel(
"tycho_storage_load_cell_time", "Time to load cell from storage"
),
create_counter_panel(
expr_sum_rate("tycho_storage_load_cell_time_count"),
"Number of load_cell calls",
UNITS.OPS_PER_SEC,
),
create_heatmap_panel(
"tycho_storage_get_cell_from_rocksdb_time", "Time to load cell from RocksDB"
),
create_counter_panel(
expr_sum_rate("tycho_storage_get_cell_from_rocksdb_time_count"),
"Number of cache missed cell loads",
UNITS.OPS_PER_SEC,
),
timeseries_panel(
title="Storage Cache Hit Rate",
targets=[
target(
expr=expr_operator(
expr_operator(
"1",
"-",
expr_operator(
expr_sum_rate(
"tycho_storage_get_cell_from_rocksdb_time_count",
),
"/",
expr_sum_rate(
"tycho_storage_load_cell_time_count",
),
),
),
"*",
"100",
),
legend_format="Hit Rate",
)
],
unit=UNITS.PERCENT_FORMAT,
),
create_counter_panel(
"tycho_storage_raw_cells_cache_size",
"Raw cells cache size",
UNITS.BYTES_IEC,
),
create_heatmap_quantile_panel(
"tycho_storage_store_block_data_size",
"Block data size",
UNITS.BYTES,
UNITS.BYTES_IEC,
"0.999",
),
create_heatmap_quantile_panel(
Expand Down Expand Up @@ -1631,7 +1672,7 @@ def mempool_point_rates() -> RowPanel:
create_counter_panel(
"tycho_mempool_msgs_unique_bytes",
"Adapter: unique externals size",
unit_format=UNITS.BYTES,
unit_format=UNITS.BYTES_IEC,
),
create_counter_panel(
"tycho_mempool_msgs_duplicates_count",
Expand All @@ -1640,7 +1681,7 @@ def mempool_point_rates() -> RowPanel:
create_counter_panel(
"tycho_mempool_msgs_duplicates_bytes",
"Adapter: removed duplicate externals size",
unit_format=UNITS.BYTES,
unit_format=UNITS.BYTES_IEC,
),
create_counter_panel(
"tycho_mempool_point_payload_count",
Expand All @@ -1649,7 +1690,7 @@ def mempool_point_rates() -> RowPanel:
create_counter_panel(
"tycho_mempool_point_payload_bytes",
"Engine: points payload size",
unit_format=UNITS.BYTES,
unit_format=UNITS.BYTES_IEC,
),
create_counter_panel(
"tycho_mempool_evicted_externals_count",
Expand All @@ -1658,7 +1699,7 @@ def mempool_point_rates() -> RowPanel:
create_counter_panel(
"tycho_mempool_evicted_externals_size",
"Input buffer: evicted externals size",
unit_format=UNITS.BYTES,
unit_format=UNITS.BYTES_IEC,
),
]
return create_row("Mempool point rates", metrics)
Expand Down Expand Up @@ -1983,15 +2024,23 @@ def collator_execution_manager() -> RowPanel:

def allocator_stats() -> RowPanel:
metrics = [
create_gauge_panel("jemalloc_allocated_bytes", "Allocated Bytes", UNITS.BYTES),
create_gauge_panel("jemalloc_active_bytes", "Active Bytes", UNITS.BYTES),
create_gauge_panel("jemalloc_metadata_bytes", "Metadata Bytes", UNITS.BYTES),
create_gauge_panel("jemalloc_resident_bytes", "Resident Bytes", UNITS.BYTES),
create_gauge_panel("jemalloc_mapped_bytes", "Mapped Bytes", UNITS.BYTES),
create_gauge_panel("jemalloc_retained_bytes", "Retained Bytes", UNITS.BYTES),
create_gauge_panel("jemalloc_dirty_bytes", "Dirty Bytes", UNITS.BYTES),
create_gauge_panel(
"jemalloc_fragmentation_bytes", "Fragmentation Bytes", UNITS.BYTES
create_gauge_panel(
"jemalloc_allocated_bytes", "Allocated Bytes", UNITS.BYTES_IEC
),
create_gauge_panel("jemalloc_active_bytes", "Active Bytes", UNITS.BYTES_IEC),
create_gauge_panel(
"jemalloc_metadata_bytes", "Metadata Bytes", UNITS.BYTES_IEC
),
create_gauge_panel(
"jemalloc_resident_bytes", "Resident Bytes", UNITS.BYTES_IEC
),
create_gauge_panel("jemalloc_mapped_bytes", "Mapped Bytes", UNITS.BYTES_IEC),
create_gauge_panel(
"jemalloc_retained_bytes", "Retained Bytes", UNITS.BYTES_IEC
),
create_gauge_panel("jemalloc_dirty_bytes", "Dirty Bytes", UNITS.BYTES_IEC),
create_gauge_panel(
"jemalloc_fragmentation_bytes", "Fragmentation Bytes", UNITS.BYTES_IEC
),
]
return create_row("Allocator Stats", metrics)
Expand Down
Loading
Loading