Browse Source
feat: auto-configure max volume count when max=0
feat: auto-configure max volume count when max=0
When -max=0, dynamically calculate max volume count based on free disk space, existing volumes, and EC shard count — matching Go's MaybeAdjustVolumeMax(). Recalculate on each heartbeat tick and when volume_size_limit changes from master.rust-volume-server
3 changed files with 89 additions and 5 deletions
-
24seaweed-volume/src/server/heartbeat.rs
-
18seaweed-volume/src/storage/disk_location.rs
-
52seaweed-volume/src/storage/store.rs
Write
Preview
Loading…
Cancel
Save
Reference in new issue