new nodes created where start elasticsearch in kubernetes

3/6/2019

I'm using elasticsearch 2.4.1 and kubernetes 1.9.2. My es path.data directory is mounted by nfs, two nodes are sharing the data. When I restart the es (restart deployment in k8s), 2 new nodes are created for sometime, 0 and 1 is old, 2 and 3 are created after restart. Why can't the es server recognize the old nodes?

root@elasticsearch-logging-686b8f5f95-lp9xh:/data/kubernetes-logging/nodes# ls -l

total 0

drwxr-xr-x 3 elasticsearch elasticsearch 37 Mar  4 09:04 0
drwxr-xr-x 3 elasticsearch elasticsearch 37 Mar  4 09:04 1
drwxr-xr-x 3 elasticsearch elasticsearch 37 Mar  5 06:39 2
drwxr-xr-x 3 elasticsearch elasticsearch 37 Mar  5 06:39 3
-- zjzhangkui
elasticsearch
kubernetes

0 Answers