Skip to content

Commit

Permalink
Merge pull request #436 from stakwork/upgrade-neo4j-config
Browse files Browse the repository at this point in the history
Upgrade neo4j config
  • Loading branch information
tobi-bams authored Jan 20, 2025
2 parents 61676f0 + 369597c commit 4a6eeb7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/images/neo4j.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ fn neo4j(node: &Neo4jImage) -> Config<String> {
let mut dbms_security_procedures_whitelist = "NEO4J_dbms_security_procedures_whitelist=apoc.*";
let mut dbms_security_auth_minimum_password_length =
"NEO4J_dbms_security_auth__minimum__password__length=4";
let mut dbms_memory_pagecache_size = "NEO4J_dbms_memory_pagecache_size";
if *node.version > *"4.4.9" {
server_memory_heap_initial_size = "NEO4J_server_memory_heap_initial__size";
dbms_memory_heap_max_size = "NEO4J_server_memory_heap_max__size";
Expand All @@ -153,6 +154,7 @@ fn neo4j(node: &Neo4jImage) -> Config<String> {
dbms_default_database = "NEO4J_initial_dbms_default__database=neo4j";
dbms_security_auth_minimum_password_length =
"NEO4J_dbms_security_auth__minimum__password__length=4";
dbms_memory_pagecache_size = "NEO4J_server_memory_pagecache_size"
}

let c = Config {
Expand All @@ -165,8 +167,9 @@ fn neo4j(node: &Neo4jImage) -> Config<String> {
format!("NEO4J_AUTH=neo4j/{}", node.password),
format!("NEO4J_apoc_export_file_enabled=true"),
format!("NEO4J_apoc_import_file_enabled=true"),
format!("{}=512m", server_memory_heap_initial_size),
format!("{}=2g", dbms_memory_heap_max_size),
format!("{}=1g", server_memory_heap_initial_size),
format!("{}=4g", dbms_memory_heap_max_size),
format!("{}=1g", dbms_memory_pagecache_size),
format!("NEO4J_apoc_uuid_enabled=true"),
format!("{}=0.0.0.0", dbms_default_listen_address),
format!(
Expand Down

0 comments on commit 4a6eeb7

Please sign in to comment.