Skip to content

Commit

Permalink
Merge pull request #307 from stakwork/feat/increase_heap_size
Browse files Browse the repository at this point in the history
Feat/increase heap size
  • Loading branch information
kevkevinpal authored Sep 20, 2024
2 parents 2c40f98 + 7db4773 commit fd0ed70
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/images/neo4j.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ impl Neo4jImage {
)
.await?;

let apoc_url = "https://github.com/neo4j/apoc/releases/download/5.19.0/apoc-5.19.0-core.jar";
let apoc_url =
"https://github.com/neo4j/apoc/releases/download/5.19.0/apoc-5.19.0-core.jar";
log::info!("=> download apoc plugin for neo4j...");
let bytes = reqwest::get(apoc_url).await?.bytes().await?;
upload_to_container(
Expand Down Expand Up @@ -136,17 +137,21 @@ fn neo4j(node: &Neo4jImage) -> Config<String> {
let mut dbms_connector_bolt_listen_address = "NEO4J_dbms_connector_bolt_listen__address";
let dbms_allow_upgrade = "NEO4J_dbms_allow__upgrade=true";
let mut dbms_default_database = "NEO4J_dbms_default__database=neo4j";
let mut dbms_security_procedures_unrestricted = "NEO4J_dbms_security_procedures_unrestricted=apoc.*";
let mut dbms_security_procedures_unrestricted =
"NEO4J_dbms_security_procedures_unrestricted=apoc.*";
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_security_auth_minimum_password_length =
"NEO4J_dbms_security_auth__minimum__password__length=4";
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";
dbms_default_listen_address = "NEO4J_server_default__listen__address";
dbms_connector_bolt_listen_address = "NEO4J_server_bolt_listen__address";
dbms_default_database = "NEO4J_initial_dbms_default__database=neo4j";
dbms_security_auth_minimum_password_length = "NEO4J_dbms_security_auth__minimum__password__length=4";
dbms_security_procedures_unrestricted = "NEO4J_dbms_security_procedures_unrestricted=apoc.*";
dbms_security_auth_minimum_password_length =
"NEO4J_dbms_security_auth__minimum__password__length=4";
dbms_security_procedures_unrestricted =
"NEO4J_dbms_security_procedures_unrestricted=apoc.*";
dbms_security_procedures_whitelist = "NEO4J_dbms_security_procedures_whitelist=apoc.*";
}

Expand All @@ -161,21 +166,20 @@ fn neo4j(node: &Neo4jImage) -> Config<String> {
format!("NEO4J_apoc_export_file_enabled=true"),
format!("NEO4J_apoc_import_file_enabled=true"),
format!("NEO4J_dbms_security_procedures_unrestricted=apoc.*,algo.*"),
format!("{}=64m", server_memory_heap_initial_size),
format!("{}=512m", dbms_memory_heap_max_size),
format!("{}=512m", server_memory_heap_initial_size),
format!("{}=2g", dbms_memory_heap_max_size),
format!("NEO4J_apoc_uuid_enabled=true"),
format!("{}=0.0.0.0", dbms_default_listen_address),
format!(
"{}=0.0.0.0:{}",
dbms_connector_bolt_listen_address,
&node.bolt_port
dbms_connector_bolt_listen_address, &node.bolt_port
),
format!("NEO4J_dbms.security.procedures.allowlist=gds.*"),
format!("{}", dbms_allow_upgrade),
format!("{}", dbms_default_database),
format!("NEO4J_dbms_security_auth__minimum__password__length=4"),
format!("{}", dbms_security_procedures_unrestricted),
format!("{}", dbms_security_procedures_whitelist)
format!("{}", dbms_security_procedures_whitelist),
]),
..Default::default()
};
Expand Down

0 comments on commit fd0ed70

Please sign in to comment.