Before you begin reading the explanation below, try running the free ES Health Check-Up get actionable recommendations that can improve Elasticsearch performance and prevent serious incidents. Just 2 minutes to complete and you can check your threadpools, memory, snapshots and many more
What Does it Mean
Sometimes you can observe that the CPU and load on one of your master nodes is higher than on others.
This is absolutely normal behavior assuming that the loaded master node is the elected master. Although you need more than one master node (and ideally an odd number), only one of these nodes will be active at any one time. If CPU is very high and the node appears to be overloaded, then this may be cause for concern, since an overloaded master node may cause instability in the cluster.
How to Fix it
How to Fix Loaded Master Nodes
- Check for split brain
If you are using an Elasticsearch version earlier than 7, then make sure you are not suffering from the split brain problem described here: Elasticsearch Split Brain – A Thorough Guide, Including How To Avoid It.
- Check other processes
Ensure that there are no other processes running on the master node which could cause it to become unstable.
- Check the master node logs
Check the loaded master node logs. If the elected master is loaded, the log can reveal the potential causes, such as: high rate of mapping exceptions, too many doc types (for ES versions older than v6), or large metadata – too many fields/indices/shards.
Opster detects, prevents, optimizes and automates everything needed to run mission-critical Elasticsearch