Go to file
2017-08-28 08:51:01 -06:00
.gx gx publish 0.1.0 2017-07-29 14:21:19 +02:00
allocator Informer impl refactored; SortNumeric added for allocators. 2017-08-28 08:51:01 -06:00
api Added --no-check-certificate flag for TLS API client 2017-07-23 10:11:10 -06:00
consensus/raft Fix #97: Assume default DataFolder as subfolder to config folder when empty. 2017-07-18 11:36:24 +02:00
docker Docker test image add cluster respawn (#111) 2017-06-29 12:34:00 +02:00
docs Merge pull request #109 from ipfs/feat/pnet 2017-07-13 21:33:55 +02:00
informer Informer impl refactored; SortNumeric added for allocators. 2017-08-28 08:51:01 -06:00
ipfs-cluster-ctl Release 0.1.0 2017-07-29 14:21:06 +02:00
ipfs-cluster-service Informer impl refactored; SortNumeric added for allocators. 2017-08-28 08:51:01 -06:00
ipfsconn/ipfshttp freespace metric partial impl 2017-08-03 11:24:19 -06:00
monitor/basic Fix tests: Make metric broadcasting async 2017-07-21 23:45:33 +02:00
pintracker/maptracker Fix #88: Run SyncAllLocal() regularly on peers. 2017-04-05 23:29:22 +02:00
sharness More test fixing 2017-08-01 14:25:20 +02:00
state go lint, go vet, put the Consensus component behind interface. 2017-03-14 16:37:29 +01:00
test FreeSpace metric impl (including descendalloc) refactored and tested. 2017-08-11 13:57:42 -06:00
.gitignore Fix tests 2017-08-01 13:50:32 +02:00
.travis.yml Fix tests 2017-08-01 13:50:32 +02:00
architecture.md Update code layout desc in architecture.md 2017-03-14 16:47:48 +01:00
CAPTAIN.LOG.md Updated Captain's log and added Q3 Roadmap (#134) 2017-07-27 14:20:59 +02:00
cluster_test.go Informer impl refactored; SortNumeric added for allocators. 2017-08-28 08:51:01 -06:00
cluster.go Fix tests: Make metric broadcasting async 2017-07-21 23:45:33 +02:00
config_test.go Cluster secret: Docs, error handling, internal key mgmt. 2017-07-13 11:17:30 -06:00
config.go Rename TLS configuration options and set JSON key 2017-07-25 13:20:24 +02:00
coverage.sh Do not fail tests if the coverage token is not set 2017-03-27 12:42:54 +02:00
debug.go Issue #18: Move Consensus and PeerMonitor to its own submodules 2017-03-13 18:40:35 +01:00
Dockerfile Update docker build, closes #94 2017-05-02 17:37:18 -07:00
Dockerfile-test Docker test image add cluster respawn (#111) 2017-06-29 12:34:00 +02:00
ipfscluster_test.go Informer impl refactored; SortNumeric added for allocators. 2017-08-28 08:51:01 -06:00
ipfscluster.go freespace metric partial impl 2017-08-03 11:24:19 -06:00
LICENSE ipfscluster-server executable 2016-12-21 19:37:25 +01:00
logging.go Issue #49: Add disk informer 2017-03-27 20:40:49 +02:00
Makefile Fix tests 2017-08-01 13:50:32 +02:00
nodebug.go Issue #18: Move Consensus and PeerMonitor to its own submodules 2017-03-13 18:40:35 +01:00
package.json gx publish 0.1.0 2017-07-29 14:21:19 +02:00
peer_manager_test.go Merge pull request #109 from ipfs/feat/pnet 2017-07-13 21:33:55 +02:00
peer_manager.go Fix #24: Auto-join and auto-leave operations for Cluster 2017-02-07 18:46:09 +01:00
pnet_test.go Ran go fmt to format pnet_test.go 2017-07-20 17:12:34 -06:00
README.md Badges fixes (#135) 2017-07-26 17:33:04 +02:00
release.sh Fix release.sh 2017-03-09 13:15:00 +01:00
ROADMAP.md Updated Captain's log and added Q3 Roadmap (#134) 2017-07-27 14:20:59 +02:00
rpc_api.go freespace metric partial impl 2017-08-03 11:24:19 -06:00
silent.go Issue #18: Move Consensus and PeerMonitor to its own submodules 2017-03-13 18:40:35 +01:00
util.go Re-allocate pins on peer removal 2017-07-05 16:38:36 +02:00
version.go Release 0.1.0 2017-07-29 14:21:06 +02:00

ipfs-cluster

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

Collective pinning and composition for IPFS.

THIS SOFTWARE IS ALPHA

ipfs-cluster allows to replicate content (by pinning) in multiple IPFS nodes:

  • Works on top of the IPFS daemon by running one cluster peer per IPFS node (ipfs-cluster-service)
  • A replication_factor controls how many times a CID is pinned in the cluster
  • Re-pins stuff in a different place when a peer goes down
  • Provides an HTTP API and a command-line wrapper (ipfs-cluster-ctl)
  • Provides an IPFS daemon API Proxy which intercepts any "pin"/"unpin" requests and does cluster pinning instead
  • The IPFS Proxy allows to build cluster composition, with a cluster peer acting as an IPFS daemon for another higher-level cluster.
  • Peers share the state using Raft-based consensus. Uses the LibP2P stack (go-libp2p-raft, go-libp2p-rpc...)

Table of Contents

Maintainers and Roadmap

This project is captained by @hsanjuan. See the captain's log for a written summary of current status and upcoming features. You can also check out the project's Roadmap for a high level overview of what's coming and the project's Waffle Board to see what issues are being worked on at the moment.

Install

Pre-compiled binaries

You can download pre-compiled binaries for your platform from the dist.ipfs.io website:

Note that since IPFS Cluster is evolving fast, the these builds may not contain the latest features/bugfixes as they are updated only bi-weekly.

Docker

You can build or download an automated build of the ipfs-cluster docker container. This container runs both the IPFS daemon and ipfs-cluster-service and includes ipfs-cluster-ctl. To launch the latest published version on Docker run:

$ docker run ipfs/ipfs-cluster

To build the container manually you can:

$ docker build . -t ipfs-cluster

You can mount your local ipfs-cluster configuration and data folder by passing -v /data/ipfs-cluster your-local-ipfs-cluster-folder to Docker.

Install from sources

Installing from master is the best way to have the latest features and bugfixes. In order to install the ipfs-cluster-service the ipfs-cluster-ctl tools you will need Go installed in your system and the run the following commands:

$ go get -u -d github.com/ipfs/ipfs-cluster
$ cd $GOPATH/src/github.com/ipfs/ipfs-cluster
$ make install

This will install ipfs-cluster-service and ipfs-cluster-ctl in your $GOPATH/bin folder. See the usage below.

Usage

ipfs-cluster-usage

Quickstart

ipfs-cluster-service runs an ipfs-cluster peer:

For more information see the ipfs-cluster-service README. Also, read A guide to running IPFS Cluster for full a full overview of how cluster works.

ipfs-cluster-ctl is used to interface with the ipfs-cluster peer:

ipfs-cluster-ctl id                    # see peer information
ipfs-cluster-ctl pin add <cid>         # Pin a CID in ipfs-cluster
ipfs-cluster-ctl pin rm <cid>          # Upin a CID
ipfs-cluster-ctl ls                    # See current pins and allocations
ipfs-cluster-ctl status <cid>          # See information from every allocation for a CID.

For information on how to manage and perform operations on an IPFS Cluster peer see the ipfs-cluster-ctl README.

Go

IPFS Cluster nodes can be launched directly from Go. The Cluster object provides methods to interact with the cluster and perform actions.

Documentation and examples on how to use IPFS Cluster from Go can be found in godoc.org/github.com/ipfs/ipfs-cluster.

Additional docs

You can find more information and detailed guides:

Note: please contribute to improve and add more documentation!

API

TODO: Swagger

This is a quick summary of API endpoints offered by the Rest API component (these may change before 1.0):

Method Endpoint Comment
GET /id Cluster peer information
GET /version Cluster version
GET /peers Cluster peers
POST /peers Add new peer
DELETE /peers/{peerID} Remove a peer
GET /allocations List of pins and their allocations (consensus-shared state)
GET /allocations/{cid} Show a single pin and its allocations (from the consensus-shared state)
GET /pins Status of all tracked CIDs
POST /pins/sync Sync all
GET /pins/{cid} Status of single CID
POST /pins/{cid} Pin CID
DELETE /pins/{cid} Unpin CID
POST /pins/{cid}/sync Sync CID
POST /pins/{cid}/recover Recover CID

Architecture

The best place to get an overview of how cluster works, what components exist etc. is the architecture.md doc.

Contribute

PRs accepted.

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

License

MIT © Protocol Labs, Inc.