jiazhai commented on issue #7860:
URL: https://github.com/apache/pulsar/issues/7860#issuecomment-677993672


   @wuYin The files in Bookie is cleaned by "compaction" settings. like
   ```
   #############################################################################
   ## Entry log compaction settings
   #############################################################################
   
   # Set the rate at which compaction will readd entries. The unit is adds per 
second.
   compactionRate=1000
   
   # If bookie is using hostname for registration and in ledger metadata then
   # whether to use short hostname or FQDN hostname. Defaults to false.
   # useShortHostName=false
   
   # Threshold of minor compaction
   # For those entry log files whose remaining size percentage reaches below
   # this threshold will be compacted in a minor compaction.
   # If it is set to less than zero, the minor compaction is disabled.
   minorCompactionThreshold=0.2
   
   # Interval to run minor compaction, in seconds
   # If it is set to less than zero, the minor compaction is disabled.
   # Note: should be greater than gcWaitTime.
   minorCompactionInterval=3600
   
   # Set the maximum number of entries which can be compacted without flushing.
   # When compacting, the entries are written to the entrylog and the new 
offsets
   # are cached in memory. Once the entrylog is flushed the index is updated 
with
   # the new offsets. This parameter controls the number of entries added to the
   # entrylog before a flush is forced. A higher value for this parameter means
   # more memory will be used for offsets. Each offset consists of 3 longs.
   # This parameter should _not_ be modified unless you know what you're doing.
   # The default is 100,000.
   compactionMaxOutstandingRequests=100000
   
   # Threshold of major compaction
   # For those entry log files whose remaining size percentage reaches below
   # this threshold will be compacted in a major compaction.
   # Those entry log files whose remaining size percentage is still
   # higher than the threshold will never be compacted.
   # If it is set to less than zero, the minor compaction is disabled.
   majorCompactionThreshold=0.5
   
   # Interval to run major compaction, in seconds
   # If it is set to less than zero, the major compaction is disabled.
   # Note: should be greater than gcWaitTime.
   majorCompactionInterval=86400
   ```


----------------------------------------------------------------
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.

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


Reply via email to