apache / incubator-pegasus

Apache Pegasus - A horizontally scalable, strongly consistent and high-performance key-value store
https://pegasus.apache.org/
Apache License 2.0
1.96k stars 310 forks source link

feat(plog): garbage collection is allowed to be enabled/disabled for plog #1996

Closed empiredan closed 1 month ago

empiredan commented 2 months ago

Sometimes we have to disable plog garbage collection. For example, to duplicate data to the target cluster, we could firstly disable plog garbage collection, then do copy_data. After copy_data is finished, a duplication with DS_LOG status could be added to continue to duplicate data in plog to target cluster; at the same time, plog garbage collection certainly should be enabled again.

Therefore a new configuration is added to enable/disable plog garbage collection:

[replication]
+ plog_gc_enabled = true