Commit Graph

2935 Commits

Author SHA1 Message Date
Hector Sanjuan
551c2245ca Fix link to guide
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-04-27 01:32:08 +02:00
Hector Sanjuan
e654e18447 Merge pull request #90 from ipfs/guide
A guide to running ipfs cluster
2017-04-26 13:59:41 +02:00
Hector Sanjuan
ef4132f572 Fix #84: A guide to running ipfs cluster
This should fix what I meant in #84

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-04-22 13:47:08 +02:00
Hector Sanjuan
98039bdd0d Merge pull request #91 from ipfs/pin-ls-cid
Fix #87: Implement ipfs-cluster-ctl pin ls <cid>
2017-04-07 01:35:01 +02:00
Hector Sanjuan
bb82c27b25 Fix #87: Implement ipfs-cluster-ctl pin ls <cid>
I have updated API endpoints to be /allocations rather than /pinlinst

It's more self-explanatory.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-04-06 21:12:16 +02:00
Hector Sanjuan
e3f6a6c5c1 Merge pull request #89 from ipfs/autosyncs
Fix #88: Run SyncAllLocal() regularly on peers.
2017-04-06 18:10:04 +02:00
Hector Sanjuan
856252e5c6 Fix #88: Run SyncAllLocal() regularly on peers.
It makes a pin ls requests to ipfs and makes sure the pin tracker is
up to date.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-04-05 23:29:22 +02:00
Hector Sanjuan
4ae6486e26 Merge pull request #85 from ipfs/add-config-alloc-default
Set default allocation strategy in default configuration
2017-03-31 15:47:19 +02:00
Hector Sanjuan
def0316734 Set default allocation strategy in default configuration
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-31 14:37:41 +02:00
Hector Sanjuan
9b3449e3f8 Remove debugging leftovers in ipfshttp
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-30 15:38:41 +02:00
Hector Sanjuan
63e77d3a6f gx publish 0.0.12
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-30 14:03:15 +02:00
Hector Sanjuan
257077c5b2 Release 0.0.12
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-30 14:03:04 +02:00
Hector Sanjuan
ff8c24ae0c Merge pull request #82 from ipfs/catch-sighup
Catch SIGHUP too
2017-03-30 13:14:37 +02:00
Hector Sanjuan
c51ac9402f Catch SIGHUP too
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-30 13:02:09 +02:00
Hector Sanjuan
ee48d84243 Merge pull request #80 from ipfs/add-proxy-hijack
Fix #57: Hijack /add requests and pin items in cluster
2017-03-30 12:12:06 +02:00
Hector Sanjuan
18034356fa Fix #57: Hijack /add requests and pin items in cluster after ipfs adds them.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-30 11:27:40 +02:00
Hector Sanjuan
0518d70e1d Merge pull request #78 from ipfs/small-fixes-2
Some small fixes
2017-03-28 19:42:59 +02:00
Hector Sanjuan
d5fd902c13 Add Usage gif 2017-03-28 19:36:51 +02:00
Hector Sanjuan
2d8cd236b5 Fix #75: Overriding options should not make them permanent in config
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-28 19:10:50 +02:00
Hector Sanjuan
38a9996186 Fix #76: Handle SIGTERM just as SIGINT
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-28 19:10:50 +02:00
Hector Sanjuan
db6956b737 Fix #77: ipfs-cluster-ctl output tweaks.
Be more consistent when printing errors (i.e. if json encoding
is requested then it should be used for errors too). Do not
print "Request accepted".

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-28 19:10:50 +02:00
Hector Sanjuan
43aa5ffa1f Fix: do not bootstrap twice
:S

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-28 17:27:45 +02:00
Hector Sanjuan
55600898cc Add initialization gif to this README 2017-03-28 14:14:47 +02:00
Hector Sanjuan
648e25c2bc gx publish 0.0.11
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-28 11:57:41 +02:00
Hector Sanjuan
39683460c6 Release 0.0.11
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-28 11:57:11 +02:00
Hector Sanjuan
6688ecf262 Merge pull request #74 from ipfs/set-proxy-status
Fix ipfs proxy not respecting return status codes
2017-03-28 11:39:47 +02:00
Hector Sanjuan
30262a2499 Fix ipfs proxy not respecting return status codes
Added extra test for it.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-28 11:09:05 +02:00
Hector Sanjuan
8c0f17a795 Update Captain's log
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-28 01:30:26 +02:00
Hector Sanjuan
dbdea1856f Merge pull request #73 from ipfs/disk-informer
Fix #49: Add disk informer
2017-03-27 21:28:56 +02:00
Hector Sanjuan
2bbbea79cc Issue #49: Add disk informer
The disk informer uses "ipfs repo stat" to fetch the RepoSize value and
uses it as a metric.

The numpinalloc allocator is now a generalized ascendalloc which
sorts metrics in ascending order and return the ones with lowest
values.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-27 20:40:49 +02:00
Hector Sanjuan
e8ba1b7dad Merge pull request #72 from ipfs/connect-ipfs-nodes
Fixes #16: trigger ipfs swarm connect to other ipfs nodes in the cluster
2017-03-27 13:04:43 +02:00
Hector Sanjuan
90635f31a1 Do not fail tests if the coverage token is not set
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-27 12:42:54 +02:00
Hector Sanjuan
4bb30cd24a Fixes #16: trigger ipfs swarm connect to other ipfs nodes in the cluster.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-27 12:42:54 +02:00
Hector Sanjuan
98043ca675 Merge pull request #71 from ipfs/pin-ls-recursive
Use "pin ls --type=recursive $pin" when checking if a pin exists
2017-03-21 14:05:58 +01:00
Hector Sanjuan
8753d50c18 Increase delay in Tracker Untrack test
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-21 13:53:19 +01:00
Hector Sanjuan
17796afb2e Use "pin ls --type=recursive $pin" when checking if a pin exists
This is significantly faster for pins that don't exist.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-21 12:57:09 +01:00
Hector Sanjuan
304bb8f59c Merge pull request #70 from ipfs/use-multiaddr-net
Take advantage of go-multiaddr-net utilities.
2017-03-17 20:17:51 +01:00
Hector Sanjuan
e3a52e1d7d Make tests less prone to fail
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-17 17:05:22 +01:00
Hector Sanjuan
f3c1636062 Take advantage of go-multiaddr-net utilities.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-16 15:51:24 +01:00
Hector Sanjuan
4180d1cb1b Merge pull request #69 from ipfs/submodules
Move components to submodules.

fixes #18. Moves:

* RESTAPI
* IPFSHTTPConnector
* Consensus
* PeerMonitor
* MapPinTracker

to subfolders and adds some extra tests to keep coverage report reasonable.
2017-03-14 17:46:19 +01:00
Hector Sanjuan
03a931b8df Fix logging
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 17:32:00 +01:00
Hector Sanjuan
b4dd8dd9c6 Update code layout desc in architecture.md
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 16:47:48 +01:00
Hector Sanjuan
e2efef8469 go lint, go vet, put the Consensus component behind interface.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 16:37:29 +01:00
Hector Sanjuan
37fab27ba6 Move MapPinTracker to its own submodule and add tests for it
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 16:10:45 +01:00
Hector Sanjuan
0ae9231993 Gitignore: Improve ignoring tests leftovers
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 14:34:23 +01:00
Hector Sanjuan
a6b99107ae Fix numpinalloc tests
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 14:31:26 +01:00
Hector Sanjuan
11f3e6b2d4 Fix #65: Use Go 1.8 in travis
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 14:22:02 +01:00
Hector Sanjuan
a40e90a78d Fix: metrics with nanoseconds TTLs
It turns out they only worked in round seconds. Tests send a metric
every second, so sometimes they were expired right away.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 14:18:23 +01:00
Hector Sanjuan
b57fa40f47 Add a couple of consensus tests to keep coverage high.
The code path is well tested, but Go does not know about it
in submodules.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-14 13:50:30 +01:00
Hector Sanjuan
8c1bf77287 Fix state interface
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-13 18:44:42 +01:00