Hello guys,
Can anyone help me on this problem?
My Cluster:
I have a ES cluster with 3 nodes version 7.7. Every node have 2 vCPU and 16GB Ram. I have 2 index:
Index 1: 121 MB (1.9M Doc, 2 Primary Shards, 1 Replica Shard)
Index 2: 23.5GB (263M Doc , 2 Primary Shards, 1 Replica Shard)
I configured JVM heap size with 8GB Ram:
-Xms8g
-Xmx8g
Here is my ES config file
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: ${HOSTNAME}
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
# Make this node eligible to be elected as master node which controls the cluster (enabled by default)
node.master: true
# Enable data node which holds data and performs data related operations such as CRUD, search, aggregations (enabled by default)
node.data: true
# Enable ingest node which preprocesses document before indexing happens (enabled by default)
node.ingest: true
# Disable cross-cluster search (enabled by default)
search.remote.connect: false
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch,/home/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: ${HOSTNAME}
#
# Set a custom port for HTTP:
#
# Port to bind for incoming HTTP requests (defaults to 9200-9300)
http.port: 9200
# Port to bind for communication between nodes (defaults to 9300-9400)
transport.tcp.port: 9300
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["Node001", "Node002", "Node003"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["Node001", "Node002", "Node003"]
Recently, my Elasticsearch Cluster is not stable.
I check on the log show as below:
I have a tool to check the status of index
The shard 1 (Primary) is N/A. But when I restart the elasticsearch service, it comes back to normal.
Question:
Does my system need more memory in JVM Heap?