Skip to content

Commit a0610f7

Browse files
authored
Create neo4j.conf
1 parent f601ea8 commit a0610f7

File tree

1 file changed

+120
-0
lines changed

1 file changed

+120
-0
lines changed

configuration/neo4j.conf

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
#*****************************************************************
2+
# Neo4j configuration
3+
#
4+
# For more details and a complete list of settings, please see
5+
# https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/
6+
#*****************************************************************
7+
8+
9+
10+
11+
12+
dbms.connectors.default_listen_address=0.0.0.0
13+
#CHANGE THIS WITH THE CURRENT SERVER ADDRESS
14+
dbms.connectors.default_advertised_address=dahu-13
15+
dbms.mode=CORE
16+
causal_clustering.minimum_core_cluster_size_at_formation=3
17+
causal_clustering.minimum_core_cluster_size_at_runtime=3
18+
#CHANGE THIS WITH THE ADDRESSES OF THE SERVERS OF THE CLUSTER
19+
causal_clustering.discovery_members=dahu-11:5000,dahu-13:5000,dahu-27:5000
20+
21+
22+
# Paths of directories in the installation.
23+
dbms.directories.data=/var/lib/neo4j/data
24+
dbms.directories.plugins=/var/lib/neo4j/plugins
25+
dbms.directories.certificates=/var/lib/neo4j/certificates
26+
dbms.directories.logs=/var/log/neo4j
27+
dbms.directories.lib=/usr/share/neo4j/lib
28+
dbms.directories.run=/var/run/neo4j
29+
30+
# This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to
31+
# allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the
32+
# `LOAD CSV` section of the manual for details.
33+
dbms.directories.import=/var/lib/neo4j/import
34+
35+
36+
37+
# Bolt connector
38+
dbms.connector.bolt.enabled=true
39+
#dbms.connector.bolt.tls_level=OPTIONAL
40+
#dbms.connector.bolt.listen_address=:7687
41+
42+
# HTTP Connector. There can be zero or one HTTP connectors.
43+
dbms.connector.http.enabled=true
44+
#dbms.connector.http.listen_address=:7474
45+
46+
# HTTPS Connector. There can be zero or one HTTPS connectors.
47+
dbms.connector.https.enabled=true
48+
#dbms.connector.https.listen_address=:7473
49+
50+
#CHANGE NUMBER OF THREADS IN NEED
51+
# Number of Neo4j worker threads.
52+
#dbms.threads.worker_count=4
53+
54+
55+
56+
# To enable HTTP logging, uncomment this line
57+
#dbms.logs.http.enabled=true
58+
59+
# Number of HTTP logs to keep.
60+
#dbms.logs.http.rotation.keep_number=5
61+
62+
# Size of each HTTP log that is kept.
63+
#dbms.logs.http.rotation.size=20m
64+
65+
# To enable GC Logging, uncomment this line
66+
#dbms.logs.gc.enabled=true
67+
68+
# GC Logging Options
69+
# see http://docs.oracle.com/cd/E19957-01/819-0084-10/pt_tuningjava.html#wp57013 for more information.
70+
#dbms.logs.gc.options=-XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+PrintTenuringDistribution
71+
72+
73+
74+
# Enable this to specify a parser other than the default one.
75+
#cypher.default_language_version=3.0
76+
77+
78+
79+
#********************************************************************
80+
# JVM Parameters
81+
#********************************************************************
82+
83+
# G1GC generally strikes a good balance between throughput and tail
84+
# latency, without too much tuning.
85+
dbms.jvm.additional=-XX:+UseG1GC
86+
87+
# Have common exceptions keep producing stack traces, so they can be
88+
# debugged regardless of how often logs are rotated.
89+
dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow
90+
91+
# Make sure that `initmemory` is not only allocated, but committed to
92+
# the process, before starting the database. This reduces memory
93+
# fragmentation, increasing the effectiveness of transparent huge
94+
# pages. It also reduces the possibility of seeing performance drop
95+
# due to heap-growing GC events, where a decrease in available page
96+
# cache leads to an increase in mean IO response time.
97+
# Try reducing the heap memory, if this flag degrades performance.
98+
dbms.jvm.additional=-XX:+AlwaysPreTouch
99+
100+
# Trust that non-static final fields are really final.
101+
# This allows more optimizations and improves overall performance.
102+
# NOTE: Disable this if you use embedded mode, or have extensions or dependencies that may use reflection or
103+
# serialization to change the value of final fields!
104+
dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions
105+
dbms.jvm.additional=-XX:+TrustFinalNonStaticFields
106+
107+
# Disable explicit garbage collection, which is occasionally invoked by the JDK itself.
108+
dbms.jvm.additional=-XX:+DisableExplicitGC
109+
110+
111+
dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
112+
113+
# This mitigates a DDoS vector.
114+
dbms.jvm.additional=-Djdk.tls.rejectClientInitiatedRenegotiation=true
115+
116+
117+
#********************************************************************
118+
# Other Neo4j system properties
119+
#********************************************************************
120+
dbms.jvm.additional=-Dunsupported.dbms.udc.source=debian

0 commit comments

Comments
 (0)