From f206d40e86e5847e2ab904d3da10872933faaa31 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Mon, 26 Aug 2019 12:15:45 +0200 Subject: [PATCH] Add memory limits to neo4j deployment I cannot increase the memory above "2G" without getting an error that no node has capacity for it. So I believe we have to change the kubernetes cluster if we want to assign more memory to neo4j. The other settings were suggested to me by neo4j-admin memrec: https://neo4j.com/docs/operations-manual/current/tools/neo4j-admin-memrec/ --- deployment/human-connection/deployment-neo4j.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deployment/human-connection/deployment-neo4j.yaml b/deployment/human-connection/deployment-neo4j.yaml index 2fcba9061..297f4b551 100644 --- a/deployment/human-connection/deployment-neo4j.yaml +++ b/deployment/human-connection/deployment-neo4j.yaml @@ -25,13 +25,20 @@ - name: nitro-neo4j image: humanconnection/neo4j:latest imagePullPolicy: Always + resources: + requests: + memory: "1G" + limits: + memory: "2G" env: - name: NEO4J_apoc_import_file_enabled value: "true" - name: NEO4J_dbms_memory_pagecache_size - value: 1G + value: "490M" - name: NEO4J_dbms_memory_heap_max__size - value: 1G + value: "500M" + - name: NEO4J_dbms_memory_heap_initial__size + value: "500M" - name: NEO4J_dbms_security_procedures_unrestricted value: "algo.*,apoc.*" envFrom: