clickhouse-backup
clickhouse-backup copied to clipboard
Implement `rebalance` command to allow move parts from shadow between disks
check system.parts skip all object disk parts apply following rules
- if part exists in the same disk - do nothing
- part present in other disk - make hard links, move part to other disk in backup_name/metadata.json, delete part in original disk
- part not present in other disks, depends on
keep_free_spaceandunreserved_spacefrom system.disks, andvolumesin system.storage_policies choose proper disk, copy part, move part to other dsk in backup_name/metadata.json, delete part in original disk