Hector Sanjuan
58702d04bc
Issue 8: Make SyncAll efficient with a single PinLs call.
...
This has implied changes to the PinTracker API, to the IPFSConnector API and
a few renames on some PinTracker related constants.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-25 18:07:19 +01:00
Hector Sanjuan
9a47e6dd1f
Update go-libp2p-gorpc
...
Uses experimental version of multicodecs but should finally pin all deps
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-25 12:50:46 +01:00
Hector Sanjuan
81db084249
Make sure the commit string gets set. Fix PublicKey. Output JSON in cluster-ctl
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 16:56:14 +01:00
Hector Sanjuan
9111c6282c
Issue-21: Add cluster ID() method
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 16:26:42 +01:00
Hector Sanjuan
af177bfde6
Address formatting, mispellings, lint errors from goreportcard
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 12:39:08 +01:00
Hector Sanjuan
9af863e3e0
Merge pull request #29 from ipfs/25-leader-comm
...
Fix #25 : Only the consensus layer should deal with leaders
2017-01-24 01:13:42 +01:00
Hector Sanjuan
e9698490b0
Improve handling of errors in GlobalPinInfo
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 01:09:27 +01:00
Hector Sanjuan
b3039b85d5
global status and global sync should not error when a node is down
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 00:54:26 +01:00
Hector Sanjuan
9efa2d063f
Merge pull request #31 from ipfs/22-configs
...
Fix #22 : Address feedback regarding configuration
2017-01-24 00:51:40 +01:00
Hector Sanjuan
afa8a5c33f
Improve startup messages and information
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 23:58:04 +01:00
Hector Sanjuan
84a7fa663d
Workaround tests failing randomly
...
Tracked down reason to: https://github.com/libp2p/go-libp2p-swarm/issues/15
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 20:29:05 +01:00
Hector Sanjuan
d1731ebd28
Use multiaddresses in the configuration and rename JSON entries for clarity
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 18:38:59 +01:00
mateon1
51f87407c6
Fix typo and remove trailing whitespace.
...
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-01-23 14:21:26 +01:00
Hector Sanjuan
031523f7bf
Fix #25 : Only the consensus layer should deal with leaders
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 14:01:49 +01:00
Hector Sanjuan
3243cfcccf
Make golint happy
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-28 16:29:07 +01:00
Hector Sanjuan
805b867651
Use go-libp2p-rpc. Tests updated.
...
The former RPC stuff had become a monster, really hard to have an overview
of the RPC api capabilities and with lots of magic.
go-libp2p-rpc allows to have a clearly defined RPC api which
shows which methods every component can use. A component to perform
remote requests, and the convoluted LeaderRPC, BroadcastRPC methods are
no longer necessary.
Things are much simpler now, less goroutines are needed, the central channel
handling bottleneck is gone, RPC requests are very streamlined in form.
In the future, it would be inmediate to have components living on different
libp2p hosts and it is way clearer how to plug into the advanced cluster rpc
api.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-27 18:19:54 +01:00
Hector Sanjuan
b92b598db1
ipfscluster tool. A CLI app wrapping the Cluster API.
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-22 17:14:15 +01:00
Hector Sanjuan
9ed3d05172
Go vet
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-21 20:46:00 +01:00
Hector Sanjuan
5c41d69abc
Figured out globalSync and globalSync cid. Tests. More tests.
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-20 19:51:13 +01:00
Hector Sanjuan
07a8f62ef4
Remote should be shutdown too
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-19 20:07:29 +01:00
Hector Sanjuan
25c921e6f5
Unbuffered channel explains hanging issues.
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-19 19:40:17 +01:00
Hector Sanjuan
8172b0ca61
Global pin status. /status /status/cid will now report pin tracker state
...
from all cluster members.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-19 18:35:24 +01:00
Hector Sanjuan
f0c5350743
Get remote RPC requests working. First e2e tests.
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-16 22:00:08 +01:00
Hector Sanjuan
4ca39ae9b3
Renames of configuration keys and more docs
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-16 19:14:45 +01:00
Hector Sanjuan
0422ceed16
Preliminary support for Remote RPC operations
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-16 12:40:28 +01:00
Hector Sanjuan
319c97585b
Renames everywhere removing redundant "Cluster" from "ClusterSomething".
...
Start preparing syncs() and status()
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-15 19:08:46 +01:00
Hector Sanjuan
45c31846d1
Fix startup sync mechanism
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-15 15:08:43 +01:00
Hector Sanjuan
09cc7e9265
Lowercase error messages
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-15 14:19:41 +01:00
Hector Sanjuan
a655288fd6
Improve shutdown routines
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-15 14:07:19 +01:00
Hector Sanjuan
f56a9dd77e
Add cluster_test
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-14 17:25:21 +01:00
Hector Sanjuan
0f31995bd6
consensus tests
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-14 15:31:50 +01:00
Hector Sanjuan
98dc9f2289
Fix syncAll being triggered before cluster run(). Other small things.
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-12 13:54:58 +01:00
Hector Sanjuan
34b2b6cbd1
Sync between tracker and cluster state. go vet. tests.
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-09 20:54:46 +01:00
Hector Sanjuan
5ae9b58daf
Some tests. Mostly to check if travis/coveralls work
2016-12-08 17:24:38 +01:00
Hector Sanjuan
a9dcf57a90
Add MapPinTracker sync and recover capabilities.
...
Sync checks that the CID status corresponds to what IPFS says.
Recover retries pinning, unpinning on Error-ed cids.
2016-12-07 17:21:29 +01:00
Hector Sanjuan
9c1c256e33
Introduce the concept of PinTracker. Thin ClusterState to minimal.
...
+ Try to make RPC handling code cleaner.
2016-12-06 22:29:59 +01:00
Hector Sanjuan
2285f8d1a8
Make ipfs pinning async. Add Pin intermediary states
2016-12-05 15:30:11 +01:00
Hector Sanjuan
e0840df267
WIP: basic functionality
2016-12-02 19:33:39 +01:00