You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql: Add new generator crdb_internal.scan_storage_internal_keys()
This new builtin is used to gather specific pebble metrics for a node
and store id (within an given keyspan). The builtin returns information
about the different types of keys (including snapshot pinned keys) as
well as bytes.
Informs: cockroachdb#94659
Release note: None
2470: `crdb_internal.scan_storage_internal_keys(node_id: int, store_id: int, start_key: bytes, end_key: bytes) -> tuple{int AS level, int AS node_id, int AS store_id, int AS snapshot_pinned_keys, int AS snapshot_pinned_keys_bytes, int AS point_key_delete_count, int AS point_key_set_count, int AS range_delete_count, int AS range_key_set_count, int AS range_key_delete_count}`,
2444
+
2471: `crdb_internal.scan_storage_internal_keys(node_id: int, store_id: int, start_key: bytes, end_key: bytes, mb_per_second: int4) -> tuple{int AS level, int AS node_id, int AS store_id, int AS snapshot_pinned_keys, int AS snapshot_pinned_keys_bytes, int AS point_key_delete_count, int AS point_key_set_count, int AS range_delete_count, int AS range_key_set_count, int AS range_key_delete_count}`,
"Scans a store's storage engine, computing statistics describing the internal keys within the span [start_key, end_key). This function is rate limited to 10 megabytes per second.",
701
+
volatility.Volatile,
702
+
),
703
+
makeGeneratorOverload(
704
+
tree.ParamTypes{
705
+
{Name: "node_id", Typ: types.Int},
706
+
{Name: "store_id", Typ: types.Int},
707
+
{Name: "start_key", Typ: types.Bytes},
708
+
{Name: "end_key", Typ: types.Bytes},
709
+
{Name: "mb_per_second", Typ: types.Int4},
710
+
},
711
+
storageInternalKeysGeneratorType,
712
+
makeStorageInternalKeysGenerator,
713
+
"Scans a store's storage engine, computing statistics describing the internal keys within the span [start_key, end_key).",
0 commit comments