anybody knows how to run ipfs-cluster on linux?
I downloaded a Pre-compiled binaries and tar it in centos 7.2( no GO environment installed in this machine so I just tar the ipfs-cluster-service and ipfs-cluster-ctl)
first, download 0.2.1 as there were some bugs in 0.2.0 reading the config file.
Is this id the ipfs id or ipfs-cluster id?
That’s the ID from the ipfs-cluster peer that you are bootstrapping to. (Found in the config of that peer or with ipfs-cluster-ctl --host 192.168.1.2:9096 id
Note that you can add that node to the bootstrap section of the other, or you can start both peers with their multiaddresses in peers.
The secret should be the same in all peers configuration.
thank you @hector
I still have some questions about ipfs-cluster.
I “ipfs add” a file at one ipfs-cluster node, but the other node didnt "pin " that file automatically even over the time . I thought the other node would pin that file automatically.
yes,I “ipfs add” a file at a ipfs-cluster node A, and I want that file is automatically pinned to other node B in the same iPad-cluster, but it didn’t succeed.
If I ipfs-cluster-ctl pin add that file manually, I can read that file even A is closed…but I want this operation should be automatic.
@hector tnx
yes I know that. I just want to “ipfs add” a file at A node, and when ipfs of A is shutdown and ipfs-cluster of A is also shutdown, I can stil “ipfs cat” at B node. and I want that process should be automatical.
@Tim, just do ipfs-cluster-ctl pin add at any of the nodes and configure your cluster replication factor to -1, or 2 (if you just have 2 nodes). This will ensure all nodes have the file automatically and you can ipfs cat it regardless of who is down.
@Tim, then you need to use the IPFS proxy as explained in the link above:
ipfs --api /ip4/127.0.0.1/tcp/9095 add myfile.txt: this is like ipfs add except you point to cluster and not to ipfs directly. This will 1) Add the file to ipfs 2) pin it in cluster. It is equivalent to: