Documentation ¶
Index ¶
- Constants
- Variables
- func DryRunTable()
- func InitConfig()
- func InitLogging(level string, logFormat string)
- func MoveCommandsToTable(input []MoveCommand)
- func RebalanceInfoToTable(input rebalanceInfo)
- func RerouteResponseToTable(input rerouteResponse)
- func Run()
- func SettingsToTable(input map[string]interface{})
- func ShardsAvailableForMoveToTable(input []shard)
- type Elastic
- func (e Elastic) ExecuteMoveCommands(url string, moveCommands ShardsReroute, dryRun bool) rerouteResponse
- func (e Elastic) GetDiskSpaceInfo(url string, allowedPercentOfDifference int, fromNode string, toNode string) rebalanceInfo
- func (e Elastic) GetShardsInfo(url string, diskSpaceInfo rebalanceInfo, shardsToMove int) []shard
- func (e Elastic) PrepareMoveCommand(shards []shard, fromNode, toNode string) ShardsReroute
- type MoveCommand
- type ShardsReroute
Constants ¶
View Source
const AppName = "elasticsearch-reroute-shards"
View Source
const AppVersion = "v1.0.0"
Variables ¶
View Source
var ( CfgFile string Listen string CacheEnabled bool )
Functions ¶
func DryRunTable ¶
func DryRunTable()
func InitConfig ¶ added in v1.0.1
func InitConfig()
func InitLogging ¶ added in v1.0.1
func MoveCommandsToTable ¶
func MoveCommandsToTable(input []MoveCommand)
func RebalanceInfoToTable ¶
func RebalanceInfoToTable(input rebalanceInfo)
func RerouteResponseToTable ¶
func RerouteResponseToTable(input rerouteResponse)
func SettingsToTable ¶
func SettingsToTable(input map[string]interface{})
func ShardsAvailableForMoveToTable ¶
func ShardsAvailableForMoveToTable(input []shard)
Types ¶
type Elastic ¶
func (Elastic) ExecuteMoveCommands ¶
func (e Elastic) ExecuteMoveCommands(url string, moveCommands ShardsReroute, dryRun bool) rerouteResponse
func (Elastic) GetDiskSpaceInfo ¶
func (e Elastic) GetDiskSpaceInfo(url string, allowedPercentOfDifference int, fromNode string, toNode string) rebalanceInfo
GetDiskSpaceInfo func
func (Elastic) GetShardsInfo ¶
func (Elastic) PrepareMoveCommand ¶
func (e Elastic) PrepareMoveCommand(shards []shard, fromNode, toNode string) ShardsReroute
type MoveCommand ¶
type ShardsReroute ¶
type ShardsReroute struct {
Commands []MoveCommand `json:"commands"`
}
Click to show internal directories.
Click to hide internal directories.