Commit Graph

1051 Commits

Author SHA1 Message Date
Hector Sanjuan
fb4812ec79 Feat #326: Adds "refs -r" pinning method support + multiple pin workers
This fixes #326. It adds a new `pin_method` configuration option to the
`ipfshttp` component allows to configure it to perform `refs -r <cid>` before
the `pin/add` call. By fetching content before pinning, we don't have
a global lock in place, and we can have several pin-requests to
ipfs in parallel.

It also adds a `concurrent_pins` option to the pin tracker, which
launches more pin workers so it can potentially trigger more pins at
the same time. This is a minimal intervention in the pintracker as #308
is still pending.

Documentation for the configuration file has been updated.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-09 15:01:29 +01:00
Hector Sanjuan
4e1f59062d
Merge pull request #333 from ipfs/feat/service/lock-msg
lock file location printed in log
2018-03-08 10:32:12 +01:00
Adrian Lanzafame
7e1e98d582 lock file location printed in log
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-03-08 16:47:58 +10:00
Hector Sanjuan
6ca0f53ee5
Merge pull request #329 from ipfs/feat/ctl-cmd/no-status-flag
ipfs-cluster-ctl cmd: add no-status flag to pin add/rm
2018-03-07 11:11:21 +01:00
Adrian Lanzafame
c4468bab49 ipfs-cluster-ctl cmd: add no-status flag to pin add/rm
It simply skips the status call on the globalClient, along
with the associated time.Sleep(1000), if the `--no-status`
flag is provided with the command.

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-03-07 11:46:40 +10:00
Hector Sanjuan
5108ee1957
Merge pull request #328 from ipfs/doc/cluster-guide-broken-link
Fix broken link
2018-03-06 11:54:45 +01:00
Adrian Lanzafame
e8e9b349f5
Fix broken link
Link to "How to Build and Update a Cluster" was broken.

License: MIT
Signed-off-by: Adrian Lanzafame <adrian.lanzafame@protocol.ai>
2018-03-06 12:21:25 +10:00
Hector Sanjuan
36e7ea6496
gx publish 0.3.4
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-02-20 20:26:17 +01:00
Hector Sanjuan
2e9bcec005
Release 0.3.4
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-02-20 20:25:44 +01:00
Hector Sanjuan
f9b2084977 Merge branch '0.3.4/changelog' 2018-02-20 20:23:26 +01:00
Hector Sanjuan
0b0270f408
Merge pull request #320 from ipfs/fix/official-builds
Fix: official builds panic on start
2018-02-20 20:20:40 +01:00
Hector Sanjuan
f40dec428a Changelog: 0.3.4
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-02-20 19:37:52 +01:00
Hector Sanjuan
5ba746a9ca Fix: official builds panic on start
Since the commit variable is not set in these builds :(

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-02-20 17:55:18 +01:00
Hector Sanjuan
33b2496438
gx publish 0.3.3
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-02-12 21:13:57 +01:00
Hector Sanjuan
9f30638784
Release 0.3.3
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-02-12 21:13:35 +01:00
Hector Sanjuan
c40721c82e Merge branch '0.3.3/changelog' 2018-02-12 21:10:44 +01:00
Hector Sanjuan
679108b443 Release 0.3.3: add changelog
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-02-12 21:03:18 +01:00
Hector Sanjuan
a371fa409f
Merge pull request #307 from ipfs/feat/auto-migration
Three small state features
2018-02-08 21:52:26 +01:00
Hector Sanjuan
800ebe2aab
Merge pull request #315 from ipfs/fix/daemon-error
Fix daemon error
2018-02-08 21:50:23 +01:00
Wyatt Daviau
cf6712ffcc making allocation flag global
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-02-08 14:47:44 -05:00
Wyatt Daviau
0784802abb moving upgrade flag to daemon
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-02-08 14:27:43 -05:00
Hector Sanjuan
3c563e8fcc
Merge pull request #313 from ipfs/feat/travis-cache
Add cache configuration to .travis.yml
2018-02-08 18:29:55 +01:00
Hector Sanjuan
a315965d38 Add cache configuration to .travis.yml
This should speed up builds a bit

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-02-08 12:23:24 +01:00
Hector Sanjuan
310e5e3ba4
Merge pull request #311 from ipfs/fix/cg-tests-jenkins
fix conn graph failures
2018-02-02 06:50:54 +01:00
Wyatt Daviau
8f8c3afbd0 fix conn graph failures
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-02-01 17:29:14 -05:00
Wyatt Daviau
2262adf33f state version command added
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-28 21:25:52 -05:00
Wyatt Daviau
36ab79eb01 upgrade skips upgrading from current state format
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-28 21:25:40 -05:00
Wyatt Daviau
4da9d9a94b upgrade flag runs upgrades on service launch
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-26 18:16:47 -05:00
Hector Sanjuan
a180f1a5c5
Merge pull request #291 from ipfs/feat/connectivity-graph
Feat/connectivity graph
2018-01-26 12:42:18 +01:00
Hector Sanjuan
ebd167edc0
Merge pull request #294 from ipfs/fix/jenkins
Fix jenkins tests
2018-01-26 12:40:09 +01:00
Hector Sanjuan
27679926e8
gx publish 0.3.2
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-26 10:39:41 +01:00
Hector Sanjuan
62cd18386c
Release 0.3.2
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-26 10:38:26 +01:00
Hector Sanjuan
11117e5a74 Merge branch '0.3.2/changelog' 2018-01-26 10:28:50 +01:00
Hector Sanjuan
e7048568b8
Merge pull request #303 from ipfs/fix/move-index-up
Fix/297
2018-01-26 10:21:43 +01:00
Hector Sanjuan
4d26550e5c Address comments
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-25 23:34:06 +01:00
Wyatt Daviau
eafc747305 fix/297 Resolve the lack of snapshot pushes:
Snapshot saving state commands (upgrade and import)
now save raft config peers as consensus peers in snapshot.
Snapshot index 1 -> 2 when saving from a fresh import to force
replication when bootstrapping.

License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-25 16:47:12 -05:00
Hector Sanjuan
21e05f1a49 Captain's log update
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-25 13:03:15 +01:00
Hector Sanjuan
17071540fe Changelog: 0.3.2
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-25 13:02:57 +01:00
Hector Sanjuan
f4c57d8581 Tests: make api/rest/client bind on random port
For jenkins

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-25 12:54:55 +01:00
Hector Sanjuan
8193f7334a Tests: make rest api test bind on random port
For jenkins

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-25 12:09:46 +01:00
Hector Sanjuan
67e505964e Tests: make ipfshttp connector tests bind on random port
For jenkins

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-24 20:17:42 +01:00
Hector Sanjuan
41149348a8 Tests: Make raft tests bind on random port
For jenkins

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-24 20:17:32 +01:00
Hector Sanjuan
ddb5da18c9 Tests: Bind testing clusters on random port
Jenkins likes this very much.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-24 20:16:55 +01:00
Hector Sanjuan
144729e149
Merge pull request #301 from ipfs/fix/297-state-unmarshal
Fix #297: State unmarshal
2018-01-24 19:55:47 +01:00
Hector Sanjuan
f94faa2ebb Fix #297: State unmarshal
It seems we have problems deserializing on top of an already
initialized state.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-01-24 16:52:43 +01:00
ZenGround0
4b26ccd144
Merge branch 'master' into feat/connectivity-graph 2018-01-23 08:34:43 -05:00
Wyatt Daviau
78f14b6d2a addressing more comments
License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-23 08:33:12 -05:00
Wyatt Daviau
d2ef32f48f Testing and polishing connection graph
Added go tests
Refactored cluster connect graph to new file
Refactored dot file printing to new repo
Fixed code climate issues
Added sharness test

License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-22 10:03:37 -05:00
Wyatt
e712c87570 First draft of ConnectGraph collection:
added ConnectGraph type and serialization
added cli command hitting cluster api
added cluster api client method + endpoint calling into rpc
added rpc calling into main cluster component
added clustercomponent's function to collect ConnectGraph
added functionality in ipfsconn to retrieve ipfs swarm peers
added dot file printing given ConnectGraphSerial

License: MIT
Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
2018-01-22 09:07:12 -05:00
Hector Sanjuan
8e487cd880
Merge pull request #292 from ipfs/feat/277-min-max-repl-factor
Fix #277: Introduce maximum and minimum replication factor
2018-01-22 10:54:09 +01:00