2022-05-23 19:26:27 +03:00
|
|
|
package control
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
var shardsCmd = &cobra.Command{
|
|
|
|
Use: "shards",
|
|
|
|
Short: "Operations with storage node's shards",
|
|
|
|
Long: "Operations with storage node's shards",
|
|
|
|
}
|
|
|
|
|
|
|
|
func initControlShardsCmd() {
|
|
|
|
shardsCmd.AddCommand(listShardsCmd)
|
|
|
|
shardsCmd.AddCommand(setShardModeCmd)
|
2023-08-10 10:56:26 +03:00
|
|
|
shardsCmd.AddCommand(evacuateShardCmd)
|
2023-05-05 10:57:07 +03:00
|
|
|
shardsCmd.AddCommand(evacuationShardCmd)
|
2022-09-21 13:52:02 +03:00
|
|
|
shardsCmd.AddCommand(flushCacheCmd)
|
2023-04-07 14:36:00 +03:00
|
|
|
shardsCmd.AddCommand(doctorCmd)
|
2023-12-27 14:37:22 +03:00
|
|
|
shardsCmd.AddCommand(writecacheShardCmd)
|
2024-01-30 18:18:58 +03:00
|
|
|
shardsCmd.AddCommand(shardsDetachCmd)
|
2024-08-29 13:51:09 +03:00
|
|
|
shardsCmd.AddCommand(shardsRebuildCmd)
|
2022-05-23 19:26:27 +03:00
|
|
|
|
|
|
|
initControlShardsListCmd()
|
|
|
|
initControlSetShardModeCmd()
|
2022-09-13 13:33:14 +03:00
|
|
|
initControlEvacuateShardCmd()
|
2023-05-05 10:57:07 +03:00
|
|
|
initControlEvacuationShardCmd()
|
2022-09-21 13:52:02 +03:00
|
|
|
initControlFlushCacheCmd()
|
2023-04-07 14:36:00 +03:00
|
|
|
initControlDoctorCmd()
|
2023-12-27 14:37:22 +03:00
|
|
|
initControlShardsWritecacheCmd()
|
2024-01-30 18:18:58 +03:00
|
|
|
initControlShardsDetachCmd()
|
2024-08-29 12:11:19 +03:00
|
|
|
initControlShardRebuildCmd()
|
2022-05-23 19:26:27 +03:00
|
|
|
}
|