Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the master not join on cluster if it is recreated (empty) #12

Open
dottgonzo opened this issue Sep 5, 2017 · 0 comments
Open

the master not join on cluster if it is recreated (empty) #12

dottgonzo opened this issue Sep 5, 2017 · 0 comments

Comments

@dottgonzo
Copy link

Hi,
running a master + replicas, give the opportunity to have a failover system. In my cluster i've tried to remove and recreate the master and i was expecting to see that it came back in the cluster and recover it's data, but this not happen. Can you help me to understand if it is doable?

this is my compose

version: '3.3'

networks:
  traefik-net:
    external: true
  couchdb:
    external: true

services:

  master:
    image: arungupta/couchbase
    networks:
      - traefik-net
      - couchdb
    environment:
      TYPE: MASTER
    deploy:
      labels:
        - traefik.port=11211
        - traefik.frontend.rule=Host:couchdb.XXXXXX
        - traefik.docker.network=traefik-net
        - traefik.cluster.port=8091
        - traefik.cluster.frontend.rule=Host:couchadmin.XXXXX
        - traefik.cluster.docker.network=traefik-net
      mode: replicated
      replicas: 1
      endpoint_mode: dnsrr
      restart_policy:
        condition: any
        delay: 5s
        max_attempts: 0
        window: 5s

  replicas:
    image: arungupta/couchbase
    networks:
      - couchdb
    environment:
      TYPE: WORKER
      COUCHBASE_MASTER: couchdb_master
      AUTO_REBALANCE: 'true'
    deploy:
      mode: global
      endpoint_mode: dnsrr
      restart_policy:
        condition: any
        delay: 5s
        max_attempts: 0
        window: 5s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant