Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a new cluster command: ipfs-cluster-follow. This command allows initializing and running follower peers as configured by a remote-source configuration. The command can list configured peers and obtain information for each of them. Peers are launched with the rest API listening on a local unix socket. The command can be run to list the items in the cluster pinset using this endpoint. Alternatively, if no socket is present, the peer will be assumed to be offline and the pin list will be directly read from the datastore. Cluster peers launched with this command (and their configurations) are compatible with ipfs-cluster-ctl and ipfs-cluster-service. We purposely do not support most configuration options here. Using ipfs-cluster-ctl or launching the peers using ipfs-cluster-service is always an option when the usecase deviates from that supported by ipfs-cluster-follow. Examples: $ ipfs-cluster-follow -> list configured peers $ ipfs-cluster-follow --help $ ipfs-cluster-follow <clusterName> init <url> $ ipfs-cluster-follow <clusterName> info $ ipfs-cluster-follow <clusterName> run $ ipfs-cluster-follow <clusterName> list
- Loading branch information
Showing
13 changed files
with
817 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# go source files | ||
SRC := $(shell find .. -type f -name '*.go') | ||
|
||
all: ipfs-cluster-service | ||
|
||
ipfs-cluster-follow: $(SRC) | ||
go build -mod=readonly -ldflags "-X main.commit=$(shell git rev-parse HEAD)" | ||
|
||
build: ipfs-cluster-follow | ||
|
||
install: | ||
go install -ldflags "-X main.commit=$(shell git rev-parse HEAD)" | ||
|
||
clean: | ||
rm -f ipfs-cluster-follow | ||
|
||
.PHONY: clean install build |
Oops, something went wrong.