From 10d8f0f2f79bb102a959e44d214f074348ac1ed7 Mon Sep 17 00:00:00 2001 From: Commelina Date: Thu, 14 Nov 2024 12:10:47 +0200 Subject: [PATCH] hornbill: modify server startup options (listeners, etc.) --- docker/node-hornbill/start-server.sh | 5 ++--- src/jepsen/hstream/kafka/db/hornbill.clj | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docker/node-hornbill/start-server.sh b/docker/node-hornbill/start-server.sh index 7719f5d..0838767 100644 --- a/docker/node-hornbill/start-server.sh +++ b/docker/node-hornbill/start-server.sh @@ -11,10 +11,9 @@ done SERVER_ID=$(echo $(hostname) | cut -c 2-) # n_i -> i MY_IP=$(hostname -I | head -n1 | awk '{print $1;}') /usr/local/bin/hornbill server \ - --bind-address 0.0.0.0 \ - --port 9092 \ + --listeners plaintext://0.0.0.0:9092 \ + --advertised-listeners plaintext://$MY_IP:9092 \ --metrics-port 6600 \ - --advertised-address $MY_IP \ --meta-servers http://meta:8964 \ --store-config /etc/fdb.cluster \ --server-id $SERVER_ID \ diff --git a/src/jepsen/hstream/kafka/db/hornbill.clj b/src/jepsen/hstream/kafka/db/hornbill.clj index 98a4b3a..8e8086a 100644 --- a/src/jepsen/hstream/kafka/db/hornbill.clj +++ b/src/jepsen/hstream/kafka/db/hornbill.clj @@ -33,10 +33,9 @@ "Generate the arguments for hornbill server." [node] [:server - :--bind-address "0.0.0.0" - :--port 9092 + :--listeners "plaintext://0.0.0.0:9092" + :--advertised-listeners (str "plaintext://" (node-ips (keyword node)) ":9092") :--metrics-port 6600 - :--advertised-address (node-ips (keyword node)) :--meta-servers "http://meta:8964" :--store-config "/etc/fdb.cluster" :--server-id (parse-int (subs node 1))