Aleksandr Polovtcev created IGNITE-14774:
--------------------------------------------
Summary: Add metrics for index pages loaded into memory
Key: IGNITE-14774
URL: https://issues.apache.org/jira/browse/IGNITE-14774
Project: Ignite
Issue Type: Improvement
Components: general
Affects Versions: 2.11
Reporter: Aleksandr Polovtcev
Assignee: Aleksandr Polovtcev
Fix For: 2.11
Expose the number of index pages currently loaded into memory on per-cache
group and per-data region basis.
h3. Implementation details
# PageMetrics - an aggregation of all page-related metrics. At the moment of
writing, contains the total number of pages and the number of index pages.
# DataRegionMetricsImpl now contains page metrics related to every created
cache group in a form of an immutable copy-on-write IntMap. It also contains an
aggregation over these metrics that can be used as metrics for the whole data
region.
# Index pages allocation is tracked through the PageIO#initNewPage method,
which can later be used to track other kinds of pages.
# Index pages de-allocation is tracked in various places like replacing a page
or adding it to a free list as I couldn’t find a single suitable place for this
logic.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)