Ilya Shishkov created IGNITE-29098:
--------------------------------------

             Summary: Add PersistenceEnabled metric to expose data region type
                 Key: IGNITE-29098
                 URL: https://issues.apache.org/jira/browse/IGNITE-29098
             Project: Ignite
          Issue Type: Task
            Reporter: Ilya Shishkov
             Fix For: 2.19


h2. Description

Currently there is no way to determine whether a data region is persistent or 
in-memory from its metrics. This ticket adds a boolean metric 
{{PersistenceEnabled}} to each data region, published in the 
{{io.dataregion.<name>}} registry and exposed via JMX, the read API, and the 
legacy {{DataRegionMetrics}} interface. It returns {{true}} for persistent 
regions and {{false}} for in-memory regions, determined once at startup. The 
fix also adds {{DataRegionMetrics.isPersistenceEnabled()}} implemented in 
{{DataRegionMetricsImpl}} and {{{}DataRegionMetricsSnapshot{}}}, without 
changing exporters, configuration classes, or the persistence engine.
h2. Acceptance Criteria
 * Every data region exposes the {{PersistenceEnabled}} metric after node 
startup.
 * Value is {{true}} for persistent regions and {{false}} for in-memory regions.
 * Value always matches the region's persistence configuration.
 * Metric is visible in standard monitoring (e.g., JMX) alongside other data 
region metrics.
 * Existing data region metrics behave unchanged.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to