Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ jobs:
-d \
-e GITHUB_ACTIONS=true -e CI=true \
-e PULSAR_PREFIX_advertisedAddress=127.0.0.1 \
-e PULSAR_PREFIX_advertisedListeners=pulsar://127.0.0.1:6650 \
-e PULSAR_PREFIX_brokerServicePort=6650 \
-e PULSAR_PREFIX_webServicePort=8080 \
-e PULSAR_PREFIX_topicLevelPoliciesEnabled=true \
-e PULSAR_PREFIX_acknowledgmentAtBatchIndexLevelEnabled=true \
apachepulsar/pulsar:${{ matrix.pulsar-version }} \
bin/pulsar standalone
bash -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❯ docker run --name probe -d -e PULSAR_PREFIX_advertisedAddress=9.9.9.9 \ # <---
          apachepulsar/pulsar:3.0.8 bin/pulsar standalone
  sleep 20
  docker exec probe curl -s http://127.0.0.1:8080/admin/v2/brokers/configuration/runtime \
          | tr ',' '\n' | grep '"advertisedAddress"'
  docker rm -f probe

"advertisedAddress":"localhost" # <---

❯ docker run --name probe -d -e PULSAR_PREFIX_advertisedAddress=9.9.9.9 \ # <---
          apachepulsar/pulsar:3.0.8 bash -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone"
  sleep 20
  docker exec probe curl -s http://127.0.0.1:8080/admin/v2/brokers/configuration/runtime \
          | tr ',' '\n' | grep '"advertisedAddress"'
  docker rm -f probe

"advertisedAddress":"9.9.9.9" # <---


- name: Wait for Pulsar readiness
timeout-minutes: 3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Features:
- TLS connection;
- Configurable executor (Tokio or async-std);
- Automatic reconnection with exponential back off;
- Message batching;
- Message batching, with per-message acknowledgment of batched entries and batch-index acknowledgment where the broker supports it;
- Compression with LZ4, zlib, zstd or Snappy (can be deactivated with Cargo features);
- Telemetry using [tracing](https://github.com/tokio-rs/tracing) crate (can be activated with Cargo features).

Expand Down
Loading