seaweedfs/weed/shell
Lisandro Pin f2db746690
Introduce logic to resolve volume replica placement within EC rebalancing. (#6254)
* Rename `command_ec_encode_test.go` to `command_ec_common_test.go`.

All tests defined in this file are now for `command_ec_common.go`.

* Minor code cleanups.

- Fix broken `ec.balance` test.
- Rework integer ceiling division to not use floats, which can introduce precision errors.

* Introduce logic to resolve volume replica placement within EC rebalancing.

This will be used to make rebalancing logic topology-aware.

* Give shell.EcNode.dc a dedicated DataCenterId type.
2024-11-18 18:05:06 -08:00
..
command_cluster_check.go refactor 2024-09-29 10:38:22 -07:00
command_cluster_ps.go refactor 2024-09-29 10:38:22 -07:00
command_cluster_raft_add.go refactor 2024-09-29 10:38:22 -07:00
command_cluster_raft_ps.go refactor 2024-09-29 10:38:22 -07:00
command_cluster_raft_remove.go refactor 2024-09-29 10:38:22 -07:00
command_collection_delete.go refactor 2024-09-29 10:38:22 -07:00
command_collection_list.go refactor 2024-09-29 10:38:22 -07:00
command_ec_balance.go Refactor ec.balance logic into a weeed/shell/command_ec_common.go… (#6195) 2024-11-04 17:56:20 -08:00
command_ec_common_test.go Introduce logic to resolve volume replica placement within EC rebalancing. (#6254) 2024-11-18 18:05:06 -08:00
command_ec_common.go Introduce logic to resolve volume replica placement within EC rebalancing. (#6254) 2024-11-18 18:05:06 -08:00
command_ec_decode.go refactor 2024-09-29 10:38:22 -07:00
command_ec_encode.go delete aborted ec shards from both source and target servers (#6221) 2024-11-09 11:32:08 -08:00
command_ec_rebuild.go refactor 2024-09-29 10:38:22 -07:00
command_ec_test.go Introduce logic to resolve volume replica placement within EC rebalancing. (#6254) 2024-11-18 18:05:06 -08:00
command_fs_cat.go refactor 2024-09-29 10:38:22 -07:00
command_fs_cd.go refactor 2024-09-29 10:38:22 -07:00
command_fs_configure.go adjust help message 2024-10-22 08:51:02 -07:00
command_fs_du.go refactor 2024-09-29 10:38:22 -07:00
command_fs_log.go fix help message 2024-09-29 21:53:07 -07:00
command_fs_ls.go refactor 2024-09-29 10:38:22 -07:00
command_fs_merge_volumes.go refactor 2024-09-29 10:38:22 -07:00
command_fs_meta_cat.go refactor 2024-09-29 10:38:22 -07:00
command_fs_meta_change_volume_id.go refactor 2024-09-29 10:38:22 -07:00
command_fs_meta_load.go refactor 2024-09-29 10:38:22 -07:00
command_fs_meta_notify.go refactor 2024-09-29 10:38:22 -07:00
command_fs_meta_save.go refactor 2024-09-29 10:38:22 -07:00
command_fs_mkdir.go refactor 2024-09-29 10:38:22 -07:00
command_fs_mv.go refactor 2024-09-29 10:38:22 -07:00
command_fs_pwd.go refactor 2024-09-29 10:38:22 -07:00
command_fs_rm.go refactor 2024-09-29 10:38:22 -07:00
command_fs_tree.go refactor 2024-09-29 10:38:22 -07:00
command_fs_verify.go refactor 2024-09-29 10:38:22 -07:00
command_lock_unlock.go refactor 2024-09-29 10:38:22 -07:00
command_mount_configure.go refactor 2024-09-29 10:38:22 -07:00
command_mq_balance.go refactor 2024-09-29 10:38:22 -07:00
command_mq_topic_compact.go merge current message queue code changes (#6201) 2024-11-04 12:08:25 -08:00
command_mq_topic_configure.go refactor 2024-09-29 10:38:22 -07:00
command_mq_topic_desc.go refactor 2024-09-29 10:38:22 -07:00
command_mq_topic_list.go refactor 2024-09-29 10:38:22 -07:00
command_remote_cache.go refactor 2024-09-29 10:38:22 -07:00
command_remote_configure.go refactor 2024-09-29 10:38:22 -07:00
command_remote_meta_sync.go refactor 2024-09-29 10:38:22 -07:00
command_remote_mount_buckets.go refactor 2024-09-29 10:38:22 -07:00
command_remote_mount.go refactor 2024-09-29 10:38:22 -07:00
command_remote_uncache.go refactor 2024-09-29 10:38:22 -07:00
command_remote_unmount.go refactor 2024-09-29 10:38:22 -07:00
command_s3_bucket_create.go refactor 2024-09-29 10:38:22 -07:00
command_s3_bucket_delete.go refactor 2024-09-29 10:38:22 -07:00
command_s3_bucket_list.go refactor 2024-09-29 10:38:22 -07:00
command_s3_bucket_quota_check.go refactor 2024-09-29 10:38:22 -07:00
command_s3_bucket_quota.go refactor 2024-09-29 10:38:22 -07:00
command_s3_circuitbreaker_test.go refactor(shell): readability improvements (#3704) 2022-09-16 02:43:49 -07:00
command_s3_circuitbreaker.go refactor 2024-09-29 10:38:22 -07:00
command_s3_clean_uploads.go refactor 2024-09-29 10:38:22 -07:00
command_s3_configure.go refactor 2024-09-29 10:38:22 -07:00
command_volume_balance_test.go [shell] volume.balance collect volume servers by dc rack node (#6191) 2024-11-03 11:08:45 -08:00
command_volume_balance.go [shell] add admin noLock for balance (#6209) 2024-11-05 19:09:22 -08:00
command_volume_check_disk_test.go fix: skipping checking active volumes with the same number of files at the moment (#4893) 2023-10-09 09:57:26 -07:00
command_volume_check_disk.go skip resource heavy commands from running on master nodes 2024-09-29 10:51:17 -07:00
command_volume_configure_replication.go refactor 2024-09-29 10:38:22 -07:00
command_volume_copy.go refactor 2024-09-29 10:38:22 -07:00
command_volume_delete_empty.go refactor 2024-09-29 10:38:22 -07:00
command_volume_delete.go refactor 2024-09-29 10:38:22 -07:00
command_volume_fix_replication_test.go Fix/copy before delete replication (#6064) 2024-09-26 08:34:13 -07:00
command_volume_fix_replication.go adjust resource heavy for volume.fix.replication 2024-09-29 11:32:18 -07:00
command_volume_fsck.go adjust resource heavy for volume.fix.replication 2024-09-29 11:32:18 -07:00
command_volume_grow.go refactor 2024-09-29 10:38:22 -07:00
command_volume_list_test.go Revert "remove github.com/golang/protobuf/proto" 2024-03-17 01:00:43 -07:00
command_volume_list.go adjust output format 2024-10-24 21:41:39 -07:00
command_volume_mark.go refactor 2024-09-29 10:38:22 -07:00
command_volume_mount.go refactor 2024-09-29 10:38:22 -07:00
command_volume_move.go refactor 2024-09-29 10:38:22 -07:00
command_volume_server_evacuate_test.go fix tests 2023-03-13 10:00:27 -07:00
command_volume_server_evacuate.go [shell] volume.balance collect volume servers by dc rack node (#6191) 2024-11-03 11:08:45 -08:00
command_volume_server_leave.go refactor 2024-09-29 10:38:22 -07:00
command_volume_tier_download.go refactor 2024-09-29 10:38:22 -07:00
command_volume_tier_move.go refactor 2024-09-29 10:38:22 -07:00
command_volume_tier_upload.go refactor 2024-09-29 10:38:22 -07:00
command_volume_unmount.go refactor 2024-09-29 10:38:22 -07:00
command_volume_vacuum_disable.go refactor 2024-09-29 10:38:22 -07:00
command_volume_vacuum_enable.go refactor 2024-09-29 10:38:22 -07:00
command_volume_vacuum.go refactor 2024-09-29 10:38:22 -07:00
command.go refactor 2024-09-29 10:38:22 -07:00
commands.go [shell] add admin noLock for balance (#6209) 2024-11-05 19:09:22 -08:00
shell_liner.go Added context for the MasterClient's methods to avoid endless loops (#5628) 2024-06-14 11:40:34 -07:00
volume.list2.txt tests add parsing ec shard info 2022-10-09 22:47:55 -07:00
volume.list.txt Revert "a new test case" 2022-09-10 15:35:42 -07:00