See: Description
Interface | Description |
---|---|
Evictor |
Interface for the eviction policy in Alluxio.
|
Class | Description |
---|---|
AbstractEvictor | Deprecated
use block annotator instead
|
BlockTransferInfo |
Provides information about the transfer of a block.
|
EvictionPlan |
This class provides information about the blocks that need to be moved when evicting.
|
Evictor.Factory |
Factory for
Evictor . |
EvictorUtils |
Utility functions for the evictor package.
|
LRUEvictor | Deprecated
use block annotator instead
|
Enum | Description |
---|---|
Evictor.Mode |
The eviction mode.
|
Evictor
which returns an evictor by
calling alluxio.worker.block.Evictor.Factory#create.
Evictor
interface. In order to evict
blocks by different policies, each evictor only need to implement
Evictor.freeSpaceWithView(long,
alluxio.worker.block.BlockStoreLocation, alluxio.worker.block.BlockMetadataEvictorView)
method. When this method is called, blocks will be evicted or moved if no enough space left.
Evictor.freeSpaceWithView(long,
alluxio.worker.block.BlockStoreLocation, alluxio.worker.block.BlockMetadataEvictorView)
method. Cascading Eviction will try to free space in next tier view where blocks need to be
transferred to, if the next tier view does not have enough free space to hold the blocks, the
next next tier view will be tried and so on until the bottom tier is reached, if blocks can not
even be transferred to the bottom tier, they will be evicted, otherwise, only blocks to be freed
in the bottom tier will be evicted.
For example,
alluxio.worker.block.evictor.LRUEvictor#cascadingEvict(long,
alluxio.worker.block.BlockStoreLocation,EvictionPlan)
is an implementation of Cascading Eviction.
Evictor.freeSpaceWithView(long,
alluxio.worker.block.BlockStoreLocation, alluxio.worker.block.BlockMetadataEvictorView)
is called. The eviction plan will return two block lists, one is the blocks to be removed
directly and another is the blocks to be moved to lower tier views.Copyright © 2023. All Rights Reserved.