<p>I am new into Kubernetes. I have difficulty digesting some concepts in my head.
Please help clarifying it. let us say, there is an ElasticSearch cluster running in K8S env with 5 replicas.</p>
<ol>
<li>Will all the pods have identical replicas(data)? Let us say I have 10GB data in my ES, so will there be 50GB approx space taken by 5 replicas in K8S cluster?</li>
<li>If I insert/delete a single document/data in my ES, who(which component) is responsible to insert/delete it among all replicas and keep them consistent with each other all the time?</li>
<li>Let us say, if a K8S node goes down and hence one replica. I observed a new replica is spinned instantly(5-10 seconds). I understand it as, 10GB of data has to be copied, ES image to be pulled, installed in pod and made consistent with other replicas and then made available. How these all process are done instantly?</li>
</ol>
<p>Please educate me, if I have conceptual blockage.
Thanks in advance.</p>

Om Sao
<ol>
<li>only if you enable 5 replicas. the default is 1 replica set</li>
<li>Elasticsearch will handle that internally</li>
<li>it's not instant, it does take time and how long that is depends on what version you are on. take a look at <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/delayed-allocation.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/current/delayed-allocation.html</a></li>
</ol>
