ES data persistence?

Hi!

I have kubernetes with elasticsearch in it, for logs. I have a single-node elastic search cluster (to keep things simple as I think I don't need bigger at the moment). /data folder is on persisted storage.

In this setup, even though data folder is persisted, each restart seems to do data loss (i don't see old logs after restart). Is that expected, and can I make a different setup so that after restart ES continues from persisted data folder?

image: docker.elastic.co/elasticsearch/elasticsearch:6.2.1
ES_JAVA_OPTS : "-Xms256m -Xmx256m"
discovery.type: "single-node"
es-volume: /data

ES logs after restart, if important: https://pastebin.com/C2KvzHeQ

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.