Sergey Chugunov created IGNITE-5375:
---------------------------------------

             Summary: New PersistentStoreMetrics, MemoryMetrics interface 
improvements
                 Key: IGNITE-5375
                 URL: https://issues.apache.org/jira/browse/IGNITE-5375
             Project: Ignite
          Issue Type: Task
          Components: persistence
            Reporter: Sergey Chugunov
             Fix For: 2.1


h2. Notes
Original discussions on dev list: on [Persistent Store 
Metrics|http://apache-ignite-developers.2346864.n4.nabble.com/Persistent-Distributed-Store-Metrics-tt17730.html];
 on a new way of thinking of Memory Policies as [virtual 
memory|http://apache-ignite-developers.2346864.n4.nabble.com/DISCUSS-Ignite-memory-gt-virtual-memory-tt18291.html].

Existing {{MemoryMetrics}} interface will be enhanced with additional methods 
for monitoring persistence activities (only new methods are listed):
{code}
public interface MemoryMetrics {
    ...
    public long getDirtyPages();

    public float getPagesReplaceRate();

    public long getPhysicalMemoryPages();
}
{code}

Proposed interface for Persistent Store Metrics:
{code}
public interface PersistentStoreMetrics {
    public float getWalLoggingRate();

    public int getWalArchiveSegments();

    public float getWalFsyncTime();

    public float getCheckpointingTime();

    public float getCheckpointingFsyncTime();

    public long getCheckpointingTotalPagesNumber();

    public long[] getCheckpointingPagesByTypeNumber();

    public long getCheckpointingCopiedOnWritePagesNumber();
}
{code}

h2. Acceptance Criteria
# MemoryMetrics interface is expanded with new methods
# Persistent Store Metrics are implemented according to the proposed interface
# Semantics of existing method {{MemoryMetrics::getTotalAllocatedPages}} is 
changed to return not only pages residing in memory, but total amount of paged 
including ones on disk. 
For amount of pages in RAM new method {{getPhysicalMemoryPages}} is added.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to