Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Latest commit

 

History

History
49 lines (39 loc) · 1.84 KB

README.md

File metadata and controls

49 lines (39 loc) · 1.84 KB

OpenShift

The following commands can be used to setup the Neo4J databases on OpenShift:

oc new-project model-graph

# WildFly 13
oc new-app --name=model-graph-13 -l wildfly=13 hpehl/model-graph-wildfly:13.0.0.Final
oc expose service/model-graph-13 -l wildfly=13 --name=model-graph-13-browser --port=7474 
oc expose service/model-graph-13 -l wildfly=13 --name=model-graph-13-bolt    --port=7687 

# WildFly 12
oc new-app --name=model-graph-12 -l wildfly=12 hpehl/model-graph-wildfly:12.0.0.Final
oc expose service/model-graph-12 -l wildfly=12 --name=model-graph-12-browser --port=7474 
oc expose service/model-graph-12 -l wildfly=12 --name=model-graph-12-bolt    --port=7687 

# WildFly 11
oc new-app --name=model-graph-11 -l wildfly=11 hpehl/model-graph-wildfly:11.0.0.Final
oc expose service/model-graph-11 -l wildfly=11 --name=model-graph-11-browser --port=7474 
oc expose service/model-graph-11 -l wildfly=11 --name=model-graph-11-bolt    --port=7687 

Reduced Memory

Per default the Neo4J JVMs use 512 MB heap memory. In case your OpenShift account is limited, use one of the following commands to start Neo4J with less memory:

# WildFly 13
oc new-app --name=model-graph-13 \
           -l wildfly=13 \
           -e NEO4J_dbms_memory_heap_initial__size=128M \
           -e NEO4J_dbms_memory_heap_max__size=128M \
           hpehl/model-graph-wildfly:13.0.0.Final

# WildFly 12
oc new-app --name=model-graph-12 \
           -l wildfly=12 \
           -e NEO4J_dbms_memory_heap_initial__size=128M \
           -e NEO4J_dbms_memory_heap_max__size=128M \
           hpehl/model-graph-wildfly:12.0.0.Final

# WildFly 11
oc new-app --name=model-graph-11 \
           -l wildfly=11 \
           -e NEO4J_dbms_memory_heap_initial__size=128M \
           -e NEO4J_dbms_memory_heap_max__size=128M \
           hpehl/model-graph-wildfly:11.0.0.Final