Files
scylladb/replica
Patryk Wrobel 6e5a85c387 replica/table: add tablet count metric
This change introduces a new metric called tablet_count
that is recalculated during construction of table object
and on each call to table::update_effective_replication_map().

To get the count of tablet per current shard, tablet map
is traversed and for each tablet_id tablet_map::get_shard()
is called. Its return value is compared with this_shard_id().

The new metric is maintained and exposed only for tables
that uses tablets.

Refs: scylladb#16131
Signed-off-by: Patryk Wrobel <patryk.wrobel@scylladb.com>

Closes scylladb/scylladb#17056
2024-02-01 10:46:53 +02:00
..
2023-02-15 11:01:50 +02:00
2023-07-19 01:28:28 -04:00
2023-05-12 07:26:18 -04:00