elasticsearchutil

package
v0.0.0-...-830b495 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinMasterNodes

func MinMasterNodes(replicas int) int

MinMasterNodes calculates the minium number of master nodes needed to ensure that the cluster does not get into a split-brain state. https://www.elastic.co/guide/en/elasticsearch/reference/current/discovery-settings.html

func UpdateDiscoveryMinMasterNodes

func UpdateDiscoveryMinMasterNodes(esHost string, minMasterNodes int) error

UpdateDiscoveryMinMasterNodes sets the 'discovery.zen.minimum_master_nodes' setting in elasticsearch to the given minimum of master nodes. https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL