Comments (3)
@AlexMesser if you want ipfs daemon to be in a fully locked private network, you need to add a swarm.key etc as explained here: https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#private-networks, otherwise there's always the risk that it joins the public network and connects to other peers or the other way around.
from ipfs-cluster.
Thank you for the detailed writeup.
I am not sure. Bob should pubsub-broadcast the new pin and alice should receive it.
Both peers are connected so that is not the problem.
The only thing that is consistent with this is that Alice does not include Bob in the trusted_peers
array in the configuration (and it is not set to *
). However, Alice is accepting the BlockPut stream, so that means it trusts Bob.
Are they broadcasting on the same pubsub topic? That is set by crdt/cluster_name
option in the config.
from ipfs-cluster.
Thank you for response, cluster_name
was the issue. I specified custom cluster name in ipfs-cluster-follow
command while main cluster was default ipfs-cluster
.
Btw, I found another not an issue, but a bad behavior from IPFS side during pinset replication.
When follower (Bob) connects to main (Alice), Bob's IPFS Cluster replicates all pins in a ~30 seconds (1000 pins), but IPFS replication takes hours. I enabled debugging on IPFS container and found that it requests pins from peers that not belongs to my private network.
I removed all bootstrap peers from Bob IPFS configure-ipfs.sh
script and added Alice IPFS address as a bootstrap address:
ipfs init --profile=badgerds,server
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
ipfs config --json Swarm.ConnMgr.HighWater 2000
ipfs config --json Datastore.BloomFilterSize 1048576
ipfs config Datastore.StorageMax 100GB
+ ipfs bootstrap rm --all
+ ipfs bootstrap add /dns4/${IPFS_BOOTSTRAP_NODE}/tcp/4001/p2p/${IPFS_BOOTSTRAP_PEER_ID}
after these changes IPFS replicated 1000 pins in a ~3 minutes.
from ipfs-cluster.
Related Issues (20)
- Can the /add endpoint support the to-files parameter HOT 1
- ipfs-cluster-service_v1.0.5 appears to have built incompletely (numerous arch/platforms) HOT 2
- healthcheck endpoint without auth HOT 7
- Missing newline in JSON stream from proxy API pin/ls
- Schedule/Prioritise Content HOT 1
- MaxConcurrentCompactions is missing from Pebble json config HOT 2
- 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
- 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
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.