gohmc commented on issue #6264: URL: https://github.com/apache/pulsar/issues/6264#issuecomment-695198757
pulsar-metadata.yml: Instead of hardcode each node; use swarm service name (note changes to pulsar-brokers.yml below): --web-service-url http://broker:8080 --broker-service-url pulsar://broker:6650 pulsar-bookies.yml: Instead of repeating bookie, use replicas instead **bookie**: image: apachepulsar/pulsar command: > /bin/bash -c "bin/apply-config-from-env.py conf/bookkeeper.conf && bin/pulsar bookie" networks: - pulsar environment: zkServers: zk1:2181,zk2:2181,zk3:2181 deploy: **replicas: 3** placement: **max_replicas_per_node: 1** constraints: [node.role == manager] pulsar-brokers.yml: Should expose 6650/8080 for ingestion **broker**: image: apachepulsar/pulsar command: > /bin/bash -c "bin/apply-config-from-env.py conf/broker.conf && bin/pulsar broker" networks: - pulsar **ports: - 6650:6650 - 8080:8080** environment: zookeeperServers: zk1:2181,zk2:2181,zk3:2181 configurationStoreServers: zk1:2181,zk2:2181,zk3:2181 clusterName: pulsar-cluster-1 brokerServicePort: "6650" webServicePort: "8080" deploy: **replicas: 3** placement: **max_replicas_per_node: 1** constraints: [node.role == manager]  ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
