All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.ignite.internal.processors.cache.persistence.pagemem.README.md Maven / Gradle / Ivy

Go to download

Java-based middleware for in-memory processing of big data in a distributed environment.

There is a newer version: 3.0.0-beta1
Show newest version
Apache Ignite Native Peristence Page Memory
-------------------------------------------
This package contains page memory implementation for case persitence is enabled.

## Loaded Pages Table

An implementation of [LoadedPagesMap.java](LoadedPagesMap.java)
(PageIdTable) manages mapping from Page ID to relative pointer map (rowAddr).

See introduction in wiki [Region Structure](https://cwiki.apache.org/confluence/display/IGNITE/Ignite+Durable+Memory+-+under+the+hood#IgniteDurableMemory-underthehood-Regionandsegmentstructure).



Current implementation is [RobinHoodBackwardShiftHashMap.java](RobinHoodBackwardShiftHashMap.java)

## Throttling
Throttling is an intentional slowdown of operation in the grid to equate throughput of the storage and speed of user operations.

Throttling is implemented at physical level of operations, so it operates not with user entries, but with page memory pages.

For an introduction, please see
[wiki PagesWriteThrottling](https://cwiki.apache.org/confluence/display/IGNITE/Ignite+Persistent+Store+-+under+the+hood#IgnitePersistentStore-underthehood-PagesWriteThrottling)

There are two types of throttling implemented in Apache Ignite:
* Checkpoint buffer overflow protection.

This CP Buffer throttling is enabled by default. It is activated if CP buffer is close to being filled.
In this case, there is an exponential backoff at 2/3 when filling reached.
Since the CP buffer is being cleaned as the checkpoint progresses, this more or less behaves like trotting.

* the whole region marked dirty protection.
This type of throttling protects region segments from being completely filled by dirty pages when checkpoint progress is far from completion.

### Speed Based Throttling

If throttling is enabled in User configuration, then Speed based throttling is applied.

Speed based throttling is implemented by
[PagesWriteSpeedBasedThrottle.java](PagesWriteSpeedBasedThrottle.java)

Throttling is not active outside of [checkpoint](../checkpoint) process.
But when checkpoint is in progress speed based-throttling approach estimates the current number of pages written and pages to be written.




From source data remained estimated time of checkpoint is calculated. Then we apply this time estimation to our progress of marking pages as dirty.







© 2015 - 2024 Weber Informatics LLC | Privacy Policy