From 2bd7f1a62e4b2299bea26f5a494e108b04921dd2 Mon Sep 17 00:00:00 2001 From: Jacob Goldverg Date: Mon, 11 Nov 2024 23:51:21 -0500 Subject: [PATCH] Forgot that we dont yet have a load balancer infront of the hz cluster yet --- .../odstransferservice/config/HazelcastClientConfig.java | 1 + src/main/resources/application.properties | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/onedatashare/transferservice/odstransferservice/config/HazelcastClientConfig.java b/src/main/java/org/onedatashare/transferservice/odstransferservice/config/HazelcastClientConfig.java index 1af6c30..e3cc56a 100644 --- a/src/main/java/org/onedatashare/transferservice/odstransferservice/config/HazelcastClientConfig.java +++ b/src/main/java/org/onedatashare/transferservice/odstransferservice/config/HazelcastClientConfig.java @@ -56,6 +56,7 @@ public ClientConfig prodClientConfig(SSLConfig sslConfig) { ClientConfig clientConfig = new ClientConfig(); clientConfig.setClusterName("prod-scheduler-cluster"); clientConfig.getNetworkConfig().setSSLConfig(sslConfig); + clientConfig.getNetworkConfig().addAddress(env.getProperty("hz.ipaddr", "localhost")); return clientConfig; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e4e0f2c..1e81e1b 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -35,4 +35,5 @@ transfer.service.concurrency=${MAX_CONCURRENCY:32} transfer.service.parallelism=${MAX_PARALLELISM:32} transfer.service.pipelining=${MAX_PIPELINING:32} -hz.keystore.password=changeit +hz.keystore.password=${HZ_KEYSTORE_PASSWORD:changeit} +hz.ipaddr=${HZ_IP_ADDR:localhost}