Dmitrii Stepanov
a61201a987
This makes it simple to limit performance degradation for every shard because of rebuild. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
33 lines
856 B
Go
33 lines
856 B
Go
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)
|
|
shardsCmd.AddCommand(evacuateShardCmd)
|
|
shardsCmd.AddCommand(evacuationShardCmd)
|
|
shardsCmd.AddCommand(flushCacheCmd)
|
|
shardsCmd.AddCommand(doctorCmd)
|
|
shardsCmd.AddCommand(writecacheShardCmd)
|
|
shardsCmd.AddCommand(shardsDetachCmd)
|
|
shardsCmd.AddCommand(shardsRebuildCmd)
|
|
|
|
initControlShardsListCmd()
|
|
initControlSetShardModeCmd()
|
|
initControlEvacuateShardCmd()
|
|
initControlEvacuationShardCmd()
|
|
initControlFlushCacheCmd()
|
|
initControlDoctorCmd()
|
|
initControlShardsWritecacheCmd()
|
|
initControlShardsDetachCmd()
|
|
initControlShardRebuildCmd()
|
|
}
|