aerospike / act

Aerospike Certification Tool
www.aerospike.com
Other
188 stars 50 forks source link

Disable defrag reads when defrag-lwm-pct is 0. #50

Closed mailravi3390 closed 4 years ago

mailravi3390 commented 4 years ago

Disable the impact of defragmentation on reads.

It seems like setting the property defrag-lwm-pct to 0 is not disabling large block reads. So, the property defrag-disable has been introduced to disable large block reads, when defrag-lwm-pct is set to 0.

It is desirable control this behavior using only a single property, which is defrag-lwm-pct. Which means that the number of defrag reads vs writes would need to be be adjusted and all cases would need to be handled accordingly.

The PR only illustrates the need for defrag-lwm-pct behavior to change.