github.com/m3db/m3@v1.5.0/scripts/docker-integration-tests/replication/m3dbnode-cluster-a.yml (about)

     1  db:
     2    hostID:
     3      resolver: environment
     4      envVarName: M3DB_HOST_ID
     5  
     6    discovery:
     7      config:
     8        service:
     9          env: default_env
    10          zone: embedded
    11          service: m3db
    12          cacheDir: /var/lib/m3kv
    13          etcdClusters:
    14            - zone: embedded
    15              endpoints:
    16                - cluster_a_dbnode01:2379
    17        seedNodes:
    18          initialCluster:
    19            - hostID: cluster_a_m3db_local_1
    20              endpoint: http://cluster_a_dbnode01:2380
    21  
    22    # Disable repairs (within cluster a).
    23    repair:
    24      enabled: false
    25      throttle: 1ms
    26      checkInterval: 1ms
    27  
    28    # Enable replication (from cluster b).
    29    replication:
    30      clusters:
    31        - name: "cluster-b"
    32          repairEnabled: true
    33          client:
    34            config:
    35              service:
    36                env: default_env
    37                zone: embedded
    38                service: m3db
    39                cacheDir: /var/lib/m3kv
    40                etcdClusters:
    41                  - zone: embedded
    42                    endpoints:
    43                      - cluster_b_dbnode01:2379