Skip to content

Commit

Permalink
hornbill: modify server startup options (listeners, etc.) (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Commelina authored Nov 14, 2024
1 parent 558eeb7 commit 0d029df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docker/node-hornbill/start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
5 changes: 2 additions & 3 deletions src/jepsen/hstream/kafka/db/hornbill.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0d029df

Please sign in to comment.