I'm trying to set up elastic search on Kubernetes (GKE) and try to limit its memory usage to max 512MB (or even lower).
Performance is not that crucial for us, we just need to run some Jaeger queries from time to time for tracing purposes.
When Jaeger tried to access ES, it crashes.
I tried to set the Heap to 256MB and the limit to 512MB in the manifest.
Currently, this is the config YAML:
apiVersion: elasticsearch.k8s.elastic.co/v1 kind: Elasticsearch metadata: name: elasticsearch spec: version: 7.7.0 nodeSets: - name: default count: 1 podTemplate: spec: containers: - name: elasticsearch env: - name: ES_JAVA_OPTS value: -Xms256m -Xmx256m resources: requests: memory: 512Mi cpu: 0.2 limits: memory: 512Mi cpu: 0.2 config: node.master: true node.data: true node.ingest: true node.store.allow_mmap: false
Would appreciate any help!