Comments (12)
@its-VSP that is a bug to report for go-ipfs https://github.com/ipfs/go-ipfs
from ipfs-blob-store.
You will have to do a ipfs.files.stat
of the MFS root /
and then grab that cid and call in the other node ipfs.files.cp
the cid you got from the first node.
from ipfs-blob-store.
https://github.com/ipfs-shipyard/cohosting packs a line of work and a set of conversations that should be interesting for you :)
from ipfs-blob-store.
@daviddias , can you give me insight on., how i can make it automate like
- doing _m = ipfs.files.stat('/') in node1
- going to node2 - using what (i mean without manual routing)
- doing ipfs.files.cp(_m) in node 2
from ipfs-blob-store.
@its-VSP a few from multiple ways:
- You can use pubsub to communicate that there as been an update (old tutorial here https://blog.ipfs.io/29-js-ipfs-pubsub with video, might require updates at the API level. A newer example can be found here https://github.com/libp2p/js-libp2p/tree/master/examples/pubsub)
- You can use IPNS to publish a new "head"
- You can use dnslink to publish that new "head"
from ipfs-blob-store.
Thanks @daviddias ., we had made use of IPNS earlier but my only question is "how i can manage that static multihash[of IPNS] between the nodes"
where that ipns has a single File which is having updated heads(root hashes) of every node within a cluster
Do you have any idea or suggestion?
from ipfs-blob-store.
@its-VSP I wasn't able to fully grasp what you are trying to build there. Wanna draw a picture and post an image here?
from ipfs-blob-store.
@daviddias Okay. Let's say there is a load balancer which balances request between node1 and node2 ,
My question was how node 1 and 2 can look to only one ipns consisting a file having a updated hash of MFS roots of both of the nodes
Without hard coding the ipns- hash within the source code
from ipfs-blob-store.
@its-VSP the IPNS name is pegged to the private/public key pair. You should keep the multihash of it around, store it somewhere (DNSname, some db, hardcoded) so that it can be bootstrapped.
from ipfs-blob-store.
Thanks @daviddias .
from ipfs-blob-store.
You bet :)
from ipfs-blob-store.
Yes i did @daviddias
Had another issue but don't know this is the correct place or not to ask
ipfs.files.flush is returning nothing., and even the data is not being flushed
Hypothesis : I wanna flush the mfs root of node 1 before copying the updated mfs root from node 2
from ipfs-blob-store.
Related Issues (10)
- Requires update to node-ipfs-api HOT 2
- file not available when writestream ends HOT 3
- no way to extract /ipfs address of blobs in the store HOT 2
- Does this still require a daemon? HOT 3
- Move to IPFS Shipyard? HOT 7
- Make ipfs-blob-store take an ipfs instance rather than packing js-ipfs-api
- immutable or mutable? HOT 10
- Make mfs the only ipfs-blob-store HOT 4
- add to maxogden/abstract-blob-store HOT 5
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-blob-store.