From 11bf00e181225115e63b347c5e72faa94ed2ede7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haydar=20K=C3=9CLEKC=C4=B0?= <586318+hkulekci@users.noreply.github.com> Date: Sat, 25 Mar 2023 14:07:39 +0300 Subject: [PATCH] elasticsearch answer updates (#354) --- README.md | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a97f4ae..4c47d28 100644 --- a/README.md +++ b/README.md @@ -2044,7 +2044,7 @@ The Elastic Stack consists of: * Elastic Hadoop * APM Server -Elasticserach, Logstash and Kibana are also known as the ELK stack. +Elasticsearch, Logstash and Kibana are also known as the ELK stack.
@@ -2112,17 +2112,22 @@ While there can be multiple master nodes in reality only of them is the elected
What is an ingest node?
-A node which responsible for parsing the data. In case you don't use logstash then this node can recieve data from beats and parse it, similarly to how it can be parsed in Logstash. +A node which responsible for processing the data according to ingest pipeline. In case you don't need to use +logstash then this node can recieve data from beats and process it, similarly to how it can be processed +in Logstash.
-What is Coordinating node?
+What is Coordinating only node?
+ +From the official docs: + +Coordinating only nodes can benefit large clusters by offloading the coordinating node role from data and master-eligible nodes. They join the cluster and receive the full cluster state, like every other node, and they use the cluster state to route requests directly to the appropriate place(s). -A Coordinating node responsible for routing requests out and in to the cluser (data nodes).
-How data is stored in elasticsearch?
+How data is stored in Elasticsearch?
* Data is stored in an index * The index is spread across the cluster using shards @@ -2131,7 +2136,7 @@ A Coordinating node responsible for routing requests out and in to the cluser (d
What is an Index?
-Index in Elastic is in most cases compared to a whole database from the SQL/NoSQL world.
+Index in Elasticsearch is in most cases compared to a whole database from the SQL/NoSQL world.
You can choose to have one index to hold all the data of your app or have multiple indices where each index holds different type of your app (e.g. index for each service your app is running). The official docs also offer a great explanation (in general, it's really good documentation, as every project should have): @@ -2157,15 +2162,17 @@ From the official docs:
What is a Document?
-Continuing with the comparison to SQL/NoSQL a Document in Elastic is a row in table in the case of SQL or a document in a collection in the case of NoSQL. -As in NoSQL a Document is a JSON object which holds data on a unit in your app. What is this unit depends on the your app. If your app related to book then each document describes a book. If you are app is about shirts then each document is a shirt. +Continuing with the comparison to SQL/NoSQL a Document in Elasticsearch is a row in table in the case of SQL or a document in a collection in the case of NoSQL. +As in NoSQL a document is a JSON object which holds data on a unit in your app. What is this unit depends on the your app. If your app related to book then each document describes a book. If you are app is about shirts then each document is a shirt.
You check the health of your elasticsearch cluster and it's red. What does it mean? What can cause the status to be yellow instead of green?
-Red means some data is unavailable. -Yellow can be caused by running single node cluster instead of multi-node. +Red means some data is unavailable in your cluster. Some shards of your indices are unassinged. +There are some other states for the cluster. +Yellow means that you have unassigned shards in the cluster. You can be in this state if you have single node and your indices have replicas. +Green means that all shards in the cluster are assigned to nodes and your cluster is healthy.