RANDOM_2_LRU 

Ignite stores the two most recent timestamps of all pages in an array. During eviction, it randomly selects five array indexes and computes the minimum difference between two timestamps for these five pages, compares the five minimum differences, and removes the least recently used page. This algorithm is useful for evicting data pages that are accessed rarely but have accidentally been accessed once.

The following Java configuration sets the RANDOM_2_LRU eviction algorithm for a data region:

DataRegionConfiguration region1= new DataRegionConfiguration();
region1.setName("region1");
region1.setPageEvictionMode(DataPageEvictionMode.RANDOM_2_LRU);

The corresponding XML configuration is as follows:

 <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
<property name="pageEvictionMode" value="RANDOM_2_LRU"/>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.226.121