Help Center/
MapReduce Service/
User Guide (Kuala Lumpur Region)/
MRS Cluster Component Operation Gudie/
Using CarbonData (for MRS 3.x or Later)/
CarbonData FAQ/
How to Avoid Minor Compaction for Historical Data?
Updated on 2022-08-12 GMT+08:00
How to Avoid Minor Compaction for Historical Data?
Question
How to avoid minor compaction for historical data?
Answer
If you want to load historical data first and then the incremental data, perform following steps to avoid minor compaction of historical data:
- Load all historical data.
- Configure the major compaction size to a value smaller than the segment size of historical data.
- Run the major compaction once on historical data so that these segments will not be considered later for minor compaction.
- Load the incremental data.
- You can configure the minor compaction threshold as required.
For example:
- Assume that you have loaded all historical data to CarbonData and the size of each segment is 500 GB.
- Set the threshold of major compaction property to carbon.major.compaction.size = 491520 (480 GB x 1024).
- Run major compaction. All segments will be compacted because the size of each segment is more than configured size.
- Perform incremental loading.
- Configure the minor compaction threshold to carbon.compaction.level.threshold = 6,6.
- Run minor compaction. As a result, only incremental data is compacted.
Parent topic: CarbonData FAQ
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot