Commit Graph

2935 Commits

Author SHA1 Message Date
Hector Sanjuan
f19c4b5567 fix lowercase commit symbol
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 16:33:34 +01:00
Hector Sanjuan
dddd53fe5f Fix -X parameter
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 16:29:37 +01:00
Hector Sanjuan
d5fc795ee5 Re-add version method to cluster-ctl
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 16:26:42 +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
50de95d464 Issue-21: Use https://github.com/urfave/cli for cluster-ctl
Rewrote the app with better command and help support.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 16:25:53 +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
24c8253c9e Fix config example
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-24 00:46:21 +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
8293965b88 Merge pull request #30 from mateon1/fix/proofread-and-whitespace
Fix typo and remove trailing whitespace.
2017-01-23 22:54:53 +01:00
Hector Sanjuan
e932b2f3f6 Fix tests with raftCfg config section and do not panic if its not there
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 21:07:16 +01:00
Hector Sanjuan
d987073201 Improve docs for the new configuration formats
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 20:56:35 +01:00
Hector Sanjuan
7954556848 Improve error messages with fishy configurations
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 20:39:09 +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
74c494eb1e Fix configuration generation.
Add a custom RaftConfig section which is limited to whatever
values we want to leave to the user.

Make sure the consensus data is, by default, next to the service.json file.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 19:06:00 +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
365c549d7c Fix #5: Rename apps to ipfs-cluster-service and ipfs-cluster-ctl
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 13:34:22 +01:00
Hector Sanjuan
2983544561 Fix #27: Add captain's log and ROADMAP
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 13:16:20 +01:00
Hector Sanjuan
9c80bc03a9 Merge pull request #13 from ipfs/devel
ipfs-cluster (alpha)
2017-01-23 12:45:29 +01:00
Hector Sanjuan
5fc0ab0710 Do not open connections by default
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 12:33:36 +01:00
Hector Sanjuan
1308a3a32f Increase leader timeout
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 12:27:24 +01:00
Hector Sanjuan
c2d9326715 Improve consensus startup by waiting for a leader.
This should also fix some tests error-ing randomly when there is no leader.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-23 12:09:29 +01:00
Hector Sanjuan
b5bb6e9cc3 Readme: Fix "pin rm" example
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-17 19:29:52 +01:00
Hector Sanjuan
19c75fdbfe Expand ipfs-cluster-server usage section
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-15 16:18:22 +01:00
Hector Sanjuan
95e31ace87 Address small typos pointed out by @mateon1
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-01-15 16:06:47 +01:00
Hector Sanjuan
34f74a662c TODO has been formalized as issues
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-29 18:50:28 +01:00
Hector Sanjuan
c7b94b0ec9 Add architecture docs
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-29 18:38:09 +01:00
Hector Sanjuan
37c7c39b84 update todo
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-29 17:51:52 +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
17ef2da1ac Enable debug flag. fix accepted response output.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-22 18:29:41 +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
0b5a300568 Harden http.Server
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-22 11:31:09 +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
0746ccd11e ipfscluster-server
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-21 20:04:28 +01:00
Hector Sanjuan
34720465cd ipfscluster-server executable
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-21 19:37:25 +01:00
Hector Sanjuan
f785c90de0 Rename E2E tests because they're not really E2E
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-21 14:30:54 +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
fa0a0d2caf Missing return
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-19 19:58:01 +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
ba31e35c1a File renames and cleanups
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-12-16 17:55:24 +01:00