You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/19 10:55:49 UTC

[GitHub] [pulsar] gohmc commented on issue #6264: Support for deployment with Docker Swarm

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]
   
   ![image](https://user-images.githubusercontent.com/46994372/93665439-18c1ea00-faa9-11ea-9e67-be884ece2514.png)
   


----------------------------------------------------------------
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:
users@infra.apache.org