dragonflyoss/Dragonfly2

seedPeer diskGCThresholdPercent configuration does not take effect

Opened this issue · 2 comments

Bug report:

when use storage thresholdPercent more than seedpeer.persistence.diskGCThresholdPercent, the gc does not take effect

Expected behavior:

How to reproduce it:

configure seedPeer persistence,use local-path storageClass

Environment:

  • Dragonfly version: 2.1.24
  • OS: ubuntu18.04
  • Kernel (e.g. uname -a):
  • Others:
image image image I found that the method disk.Usage is used in the program, but this value is actually inaccurate.