Comments (4)
I suppose they are automatically saved into service.json file in cluster peer section?
Yes that is the default behaviour (you can check it).
If a peer is shutdown cleanly and the leave_on_shutdown
option is set to true, the that peer will leave the cluster/consensus (and cluster_peers
will be emptied). On startup it needs to use the bootstrap
list or be added from a member of the cluster with peers add
.
If a peer is shutdown cleanly and the leave_on_shutdown
option is set to false, the peer will save current list of peers in cluster_peers
and shutdown without leaving the cluster/consensus. This means that other peers will still try to contact it. In a 2-peer cluster, if one goes down, a leader election will be triggered and, since no majority is possible, no leader will be chosen, so many operations will fail (pins, unpins) in the meantime, but things will recover as soon as it comes back up.
Does that make sense to you or would you suggest improvements on this front?
from ipfs-cluster.
@hsanjuan Thanks for fast response, this makes perfect sense, just wanted to double check.
No suggestions for now, this is awesome 👍
Where can "leave_on_shutdown" parameter can be specified?
from ipfs-cluster.
@bgadmin in ~/.ipfs-cluster/service.json
If you don't see this parameter, I recommend that you ipfs-cluster-service -c /tmp init
and compare your version with the newly created one. It should create something like:
{
"id": "QmXaNvRpnr3eNpSRAjhAF8yctGPPpxX1B2TetSzuPVyRbE",
"private_key": "blabla....",
"cluster_peers": [],
"bootstrap": [],
"leave_on_shutdown": false,
"cluster_multiaddress": "/ip4/0.0.0.0/tcp/9096",
"api_listen_multiaddress": "/ip4/127.0.0.1/tcp/9094",
"ipfs_proxy_listen_multiaddress": "/ip4/127.0.0.1/tcp/9095",
"ipfs_node_multiaddress": "/ip4/127.0.0.1/tcp/5001",
"consensus_data_folder": "/tmp/data",
"state_sync_seconds": 60,
"replication_factor": -1,
"monitoring_interval_seconds": 15,
"allocation_strategy": "reposize"
}
Anything not specified will get defaults.
from ipfs-cluster.
please re-open if needed!
from ipfs-cluster.
Related Issues (20)
- ipfs cluster have a Default management webUi? HOT 2
- cluster Sees 0 other peers HOT 3
- I can't disable unpin parameter for the ipfshttp in docker compose file? HOT 3
- Fetching files from IPFS-cluster using CID HOT 1
- How to listen on a WebSocket or WebTransport or WebRTC address, so that I can dial to the cluster from helia browser node HOT 7
- IPFS cluster client's add endpoint's response HOT 1
- Error while adding multiple files in the IPFS cluster based private network HOT 1
- Error in adding and removing files from IPFS nodes HOT 1
- Pinning multiple files when adding multiple files like Kubo HOT 1
- Pins not replicated, while clusters sees each other HOT 3
- Does ipfs-cluster support byzantine tolerance? HOT 2
- ipfs-cluster-ctl peers ls errors on unknown protocol HOT 1
- Support configurable pinning only on untrusted peers
- Docker image for ARM HOT 1
- v1.0.7 - [FATAL tini (7)] exec /usr/local/bin/custom-entrypoint.sh failed: Exec format error HOT 3
- feat: support enabling Helia on nodejs as a node in an ipfs-cluster HOT 3
- Failure of `ipfs-cluster-ctl ipfs gc` results in inconsistent storage files. HOT 1
- Connection to Kubo via Unix domain socket fails with HTTP error HOT 2
- ipfs-cluster doesn't maintain /dns4 ipfshttp.node_multiaddress entries as DNS addresses. HOT 3
- Pebble supports 32-bits now HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipfs-cluster.