liming30 commented on issue #959:
URL: 
https://github.com/apache/incubator-paimon/issues/959#issuecomment-1516234667

   
   > We already have 
https://paimon.apache.org/docs/master/maintenance/write-performance/#dedicated-compaction-job
 for streaming mode, it continuously modify snapshot generation and do 
compaction. Same way?
   
   @JingsongLi Yes, running `dedicated-compaction-job` in stream mode can 
decouple compaction from streaming-job and continuously do compaction. But I 
may not be willing to use this solution, there are two considerations:
   
   1. From the perspective of `resource utilization`, 
`dedicated-compaction-job` is an intermittent job (depending on the generation 
of snapshot, which depends on the production of checkpoint), which cannot 
effectively utilize resources;
   
   2. From the perspective of `compaction trigger timing`, I roughly read the 
code related to `CompactorSink`. It seems that compaction will be triggered 
when a new snapshot is generated, and some other factors are not considered, 
such as write amplification, space amplification, etc. Frequent compactions may 
also have a negative impact on storage.
   
   Finally, I expect that there can be an external service and a resident 
`compaction-job`. The `compaction-job` can handle the compaction task of 
different tables.  This compaction-job can handle the compaction of different 
tables, and external services distribute compaction tasks to the 
`compaction-job` according to different strategies (such as table space 
amplification, write amplification, etc.), which can improve resource 
utilization and configure more flexible compaction strategies.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to