mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-04 16:45:33 +00:00
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/
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nitro-neo4j
|
|
namespace: human-connection
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 0
|
|
maxUnavailable: "100%"
|
|
selector:
|
|
matchLabels:
|
|
human-connection.org/selector: deployment-human-connection-neo4j
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
backup.velero.io/backup-volumes: neo4j-data
|
|
labels:
|
|
human-connection.org/selector: deployment-human-connection-neo4j
|
|
name: nitro-neo4j
|
|
spec:
|
|
containers:
|
|
- 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: "490M"
|
|
- name: NEO4J_dbms_memory_heap_max__size
|
|
value: "500M"
|
|
- name: NEO4J_dbms_memory_heap_initial__size
|
|
value: "500M"
|
|
- name: NEO4J_dbms_security_procedures_unrestricted
|
|
value: "algo.*,apoc.*"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: configmap
|
|
ports:
|
|
- containerPort: 7687
|
|
- containerPort: 7474
|
|
volumeMounts:
|
|
- mountPath: /data/
|
|
name: neo4j-data
|
|
volumes:
|
|
- name: neo4j-data
|
|
persistentVolumeClaim:
|
|
claimName: neo4j-data-claim
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|