Go to file
Hector Sanjuan acbd7fda60 Consensus: add new "crdt" consensus component
This adds a new "crdt" consensus component using go-ds-crdt.

This implies several refactors to fully make cluster consensus-component
independent:

* Delete mapstate and fully adopt dsstate (after people have migrated).
* Return errors from state methods rather than ignoring them.
* Add a new "datastore" modules so that we can configure datastores in the
   main configuration like other components.
* Let the consensus components fully define the "state.State". Thus, they do
not receive the state, they receive the storage where we put the state (a
go-datastore).
* Allow to customize how the monitor component obtains Peers() (the current
  peerset), including avoiding using the current peerset. At the moment the
  crdt consensus uses the monitoring component to define the current peerset.
  Therefore the monitor component cannot rely on the consensus component to
  produce a peerset.
* Re-factor/re-implementation of "ipfs-cluster-service state"
  operations. Includes the dissapearance of the "migrate" one.

The CRDT consensus component defines creates a crdt-datastore (with ipfs-lite)
and uses it to intitialize a dssate. Thus the crdt-store is elegantly
wrapped. Any modifications to the state get automatically replicated to other
peers. We store all the CRDT DAG blocks in the local datastore.

The consensus components only expose a ReadOnly state, as any modifications to
the shared state should happen through them.

DHT and PubSub facilities must now be created outside of Cluster and passed in
so they can be re-used by different components.
2019-04-17 19:14:26 +02:00
.github Fix #412: Add an issue template 2018-05-30 14:43:04 +02:00
.gx gx publish 0.10.0 2019-03-07 18:03:51 +00:00
adder support --nocopy when adding URLs 2019-03-26 10:22:37 -05:00
allocator Remove *Serial types. Use pointers for all types. 2019-02-27 17:04:35 +00:00
api Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
ci Pre-create and pre-connect hosts in tests 2018-04-05 16:49:26 +02:00
cmd Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
config Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
consensus Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
datastore Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
deptools Update gx and gx-go to latest stable 2018-10-31 17:12:12 +01:00
docker Docker: Run with daemon --upgrade by default. 2018-04-27 07:57:08 +02:00
informer Remove *Serial types. Use pointers for all types. 2019-02-27 17:04:35 +00:00
ipfsconn/ipfshttp Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
monitor Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
observations make tracing service name unique 2019-02-20 08:40:18 +10:00
pintracker Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
pstoremgr Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
rpcutil Remove *Serial types. Use pointers for all types. 2019-02-27 17:04:35 +00:00
sharness Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
state Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
test Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
version Release 0.10.1 2019-04-10 12:04:43 +02:00
.codeclimate.yml codeclimate 2018-08-07 20:12:05 +02:00
.codecov.yml Add codecov config file 2019-03-01 20:21:51 +00:00
.dockerignore Issue #259: Address CR comments 2017-12-04 13:59:48 +01:00
.gitignore Add a docker-compose.yml example with 2 peers and auto-bootstrap. 2018-10-23 18:25:43 +02:00
.travis.yml Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
add_test.go Remove *Serial types. Use pointers for all types. 2019-02-27 17:04:35 +00:00
allocate.go Remove *Serial types. Use pointers for all types. 2019-02-27 17:04:35 +00:00
CHANGELOG.md Changelog for 0.10.1 2019-04-10 11:44:52 +02:00
cluster_config_test.go Remove backwards compatibility hacks 2019-02-20 14:02:09 +00:00
cluster_config.go Remove backwards compatibility hacks 2019-02-20 14:02:09 +00:00
cluster_test.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
cluster.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
clusterhost.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
config_test.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
connect_graph.go Sharness fixes 2019-02-27 21:54:09 +00:00
CONTRIBUTING.md Docs: Move to website. 2018-04-27 09:05:11 +02:00
COPYRIGHT Dual-license the codebase. 2019-03-01 20:12:19 +00:00
docker-compose.yml Set CLUSTER_SECRET from shell 2018-10-24 21:20:53 +02:00
Dockerfile add certs to Dockerfile 2019-03-23 20:58:12 -05:00
Dockerfile-bundle Docker: Run with daemon --upgrade by default. 2018-04-27 07:57:08 +02:00
Dockerfile-test Enable go.mod for ipfs-cluster 2019-03-08 12:02:05 +00:00
go.mod Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
go.sum Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
ipfscluster_test.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
ipfscluster.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
LICENSE-APACHE Dual-license the codebase. 2019-03-01 20:12:19 +00:00
LICENSE-MIT Dual-license the codebase. 2019-03-01 20:12:19 +00:00
logging.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
Makefile Do not do gx releases 2019-04-10 12:04:39 +02:00
package.json Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
peer_manager_test.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
pnet_test.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
README.md docs: fix download link in readme 2019-03-18 09:42:43 +00:00
release.sh Do not do gx releases 2019-04-10 12:04:39 +02:00
rpc_api.go Consensus: add new "crdt" consensus component 2019-04-17 19:14:26 +02:00
util.go Remove *Serial types. Use pointers for all types. 2019-02-27 17:04:35 +00:00

IPFS Cluster

Made by Main project IRC channel standard-readme compliant GoDoc Go Report Card Build Status codecov

Pinset orchestration for IPFS.

logo

IPFS Cluster is a stand-alone application and a CLI client that allocates, replicates, and tracks pins across a cluster of IPFS daemons.

It provides:

  • A cluster peer application: ipfs-cluster-service, to be run along with go-ipfs.
  • A client CLI application: ipfs-cluster-ctl, which allows easily interacting with the peer's HTTP API.

Are you using IPFS Cluster?

Please participate in the IPFS Cluster user registry.


Table of Contents

Documentation

Please visit https://cluster.ipfs.io/documentation/ to access user documentation, guides and any other resources, including detailed download and usage instructions.

News & Roadmap

We regularly post project updates to https://cluster.ipfs.io/news/ .

The most up-to-date Roadmap is available at https://cluster.ipfs.io/roadmap/ .

Install

Instructions for different installation methods (including from source) are available at https://cluster.ipfs.io/download .

Usage

Extensive usage information is provided at https://cluster.ipfs.io/documentation/ , including:

Contribute

PRs accepted. As part of the IPFS project, we have some contribution guidelines.

Small note: If editing the README, please conform to the standard-readme specification.

License

This library is dual-licensed under Apache 2.0 and MIT terms.

© 2019. Protocol Labs, Inc.