XML Configuration Reference : Index : MaxSizeFullCompactPolicy
 
MaxSizeFullCompactPolicy
com.exalead.mercury.mami.indexing.v10.MaxSizeFullCompactPolicy
A FullCompactPolicy that compacts all slots into one whenever the "tail" of small slots exceeds a certain ratio of the large first slot. This policy is appropriate when auto-compacts are restricted to slots under a certain size for performance reasons. In this case, a full optimization can occasionally be triggered to purge the deletes. If not, the deletes occurring in later slots would never be deleted, incurring performance costs at query-time and extra disk space consumption.
Parent elements:
com.exalead.mercury.mami.indexing.v10.AutoCompactPolicy (as AutoCompactPolicy)
com.exalead.mercury.mami.indexing.v10.LowLatencyCompactPolicy (as LowLatencyCompactPolicy)
com.exalead.mercury.mami.indexing.v10.NoCompactPolicy (as NoCompactPolicy)
com.exalead.mercury.mami.indexing.v10.NumberOfSlotsBasedCompactPolicy (as NumberOfSlotsBasedCompactPolicy)
com.exalead.mercury.mami.indexing.v10.SlotsLogSizeBasedCompactPolicy (as SlotsLogSizeBasedCompactPolicy)
com.exalead.mercury.mami.indexing.v10.SlotsSizeBasedCompactPolicy (as SlotsSizeBasedCompactPolicy)
Attributes:
Name
Type
Default value
Description
percentage
int
100
Minimum percentage to launch a full compaction. Compacts all slots into one whenever the "tail" of small slots exceeds a certain percentage of the large first slot. Eg: with percentage=100, when cumulated size of all slots except biggest is higher than size of the biggest slot, a full compact is triggered.
minSlots
int
2
Minimum number of slots before triggering a full compact.