Hey IPFS community!
So I’m working on a project for my master thesis and I need to make several test cases with clusters and understand which consensus fits better on the project.
I’m trying to run several clusters using docker, I’m running the docker-compose file provided on documentation [https://raw.githubusercontent.com/ipfs/ipfs-cluster/master/docker-compose.yml], and I understand that they discover themselfs using mDNS and I dont need to bootstrap on start up neither use a secret key. Everything works with crdt has expected.
To try the raft consensus I use the same docker-compose config except I remove from de env vars the
CLUSTER_CRDT_TRUSTEDPEERS. Then changed on the
service.json of every cluster the
secret key with the same one. On the
cluster0 I have
peer_addresses: [ ] and
“init_peerset”: [ ]
On the other clusters I pasted on
init_peerset the IPFS hash of the
cluster0 and on
peer_addresses with the cluster0 address
Running the docker-compose I get the following output:
cluster2 | 18:43:41.420 INFO raft: Current Raft Leader: 12D3KooWEb5WfKjzh53Xyoz7Kj1CwUDyEY8N8AhsqFnnX7h89nE6
cluster1 | 18:43:41.881 INFO raft: Current Raft Leader: 12D3KooWAr1PS8D9Dj1568qsaF2N9yriRk5rj1k62zFr5pMrGpeV
cluster0 | 18:43:41.906 INFO raft: Current Raft Leader: 12D3KooWA9gGWiQo3Ng8ZuoeyFDCsJisBLYwsdSZ8EJr9sWF7Nvg
They are not seeing each other, they considere themselfs the raft leaders. Any suggestion on what am I missing and how can I bootstrap correctly the clusters?