GithubHelp home page GithubHelp logo

Comments (9)

meyerzinn avatar meyerzinn commented on June 18, 2024

I'd like to be clear. Is this pinning blocks or pinning merkel dags that describe files? I.e., say I use ipfs add shakespeare.txt and get a hash there representing the file--if I add that to the cluster, will the cluster distribute the file in the way you describe or distribute the individual blocks?

Also, can this support clusters where nodes have limits that vary?

from ipfs-cluster.

hsanjuan avatar hsanjuan commented on June 18, 2024

@20zinnm right now its not pinning blocsk individually. It's equivalent to ipfs pin add. It will distribute the file.

Also, can this support clusters where nodes have limits that vary?

yes, it should not be difficult to implement custom strategies for different limits.


// fixed formatting ~ Kubuxu

from ipfs-cluster.

meyerzinn avatar meyerzinn commented on June 18, 2024

@hsanjuan I've been doing some reading concerning the Raft consensus algorithm you use in ipfs-cluster, and I wonder why a model like this wouldn't work:

  1. Leader receives request to pin IPFS file.
  2. Leader commits a message like 'ADD [hash]' or something.
  3. Followers receive the request and break it down to individual blocks.
  4. Followers then decide whether or not they have the capacity to keep specific blocks.
  5. Should a follower decide to keep a block, it proposes a change to the log with the block hash (and if in an untrusted environment a proof of retrievability 1).
  6. The leader will commit it (or, if in an untrusted environment, will commit it after verifying the proof).
  7. Followers prioritize blocks to keep based upon how many others are included in the state as keeping the block.

This would allow for fine-grained distribution and replication at the block level to maximize the utilization of peers and allow them the ability to chose whether or not to take blocks. This is advantageous because it allows for heterogeneous peers (my raspberry pi with a gigabyte and a rack in the cloud with a petabyte can participate on the same cluster).

from ipfs-cluster.

hsanjuan avatar hsanjuan commented on June 18, 2024

Hello @20zinnm ,

As it was pointed out on irc, while your proposal offloads the tracking decision to the nodes, it does not allow to provide balancing strategies where comparison between nodes are needed (i.e. geographically or network-topology based decisions).

Regarding block-level tracking, as I said, on this first approach we will not do it. A number of reasons were also provided on irc. I think you can accommodate your use case by sending the block hashes to cluster rather than the main hash, as cluster does not make distinctions. Would that work for you?

from ipfs-cluster.

hsanjuan avatar hsanjuan commented on June 18, 2024

PR is in.The re-pinning on host failure has been moved to #45.

from ipfs-cluster.

0zAND1z avatar 0zAND1z commented on June 18, 2024

What is the default replication factor in an ipfs-cluster?

Would love to know that.

from ipfs-cluster.

lanzafame avatar lanzafame commented on June 18, 2024

from ipfs-cluster.

0zAND1z avatar 0zAND1z commented on June 18, 2024

Thanks.

What's the range for these replication factor variables here?

I see the https://cluster.ipfs.io/documentation/configuration/#the-cluster-main-section describing the default values for replication factor, but not the range of values.

from ipfs-cluster.

lanzafame avatar lanzafame commented on June 18, 2024

from ipfs-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.