clickhouse-backup icon indicating copy to clipboard operation
clickhouse-backup copied to clipboard

Implement `rebalance` command to allow move parts from shadow between disks

Open Slach opened this issue 1 year ago • 0 comments

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_space and unreserved_space from system.disks, and volumes in system.storage_policies choose proper disk, copy part, move part to other dsk in backup_name/metadata.json, delete part in original disk

Slach avatar Oct 09 '24 14:10 Slach