Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Added new metrics for monitoring the number of memory pages related to SQL indexes. These metrics can be made available through JMX and viewed as part of data region and cache group properties under the `InMemoryIndexPages` name.
-
Release Notes Required
Description
Expose the number of index pages currently loaded into memory on per-cache group and per-data region basis.
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.
Attachments
Attachments
Issue Links
- links to