Commit Graph

1809 Commits

Author SHA1 Message Date
Hector Sanjuan
af29bbc944 Pin-expiration: error when pinning expired pins 2019-11-05 12:22:52 +01:00
Kishan Mohanbhai Sagathiya
e4e1cbea6e Fix #481: Pin expiration
This adds a new PinOption: ExpireAt.

The StateSync ticker will check and unpin expired pins from the Cluster.

ipfs-cluster-ctl supports an "expire-in" which gives a duration.
2019-11-05 10:40:48 +01:00
Kishan Sagathiya
295915272b Tests: multiple fixes to tests reliability (#943)
This makes a number of fixes to improve the reliability of tests.
2019-10-31 21:51:13 +01:00
Kishan Sagathiya
7b499263af service init --randomports:
Allow initialize cluster with random ports that are ununsed (at the moment of initialization)
2019-10-24 17:54:50 +02:00
Kishan Sagathiya
31534a429b Fix #374: health metrics improvements
- Human-sizes for freespace metrics. Display whether if metric is
expires in something like "expires in 3m".
- When not passing metric name `ipfs-cluster-ctl health metrics` hits
the the metrics endpoint which returns a list of available metrics and
displays to user
- Humanize metrics output
- Sort metrics output
2019-10-24 16:37:26 +02:00
Hector Sanjuan
04a5881b07
Merge pull request #934 from ipfs/go1.13
Bump things to Go 1.13
2019-10-12 16:50:16 +02:00
Hector Sanjuan
05be173241 Fix test program for go1.13 2019-10-04 20:01:40 +02:00
Hector Sanjuan
78c83f0bb5 Bump things to Go 1.13 2019-10-04 19:27:02 +02:00
Hector Sanjuan
3abf764de8
Merge pull request #930 from ipfs/update/deps4
Update/deps4
2019-10-03 15:43:01 +02:00
Hector Sanjuan
e273a3919d Golint 2019-10-01 13:59:54 +02:00
Hector Sanjuan
2c47585870 Handle wrapping outside the ipfs adder
The ipfs adder does not wrap anymore.
2019-10-01 12:19:22 +02:00
Hector Sanjuan
9cd9bce556 Test base32 adding output 2019-10-01 12:19:22 +02:00
Hector Sanjuan
91f1d160a7 Attempt to fixes to adder and alignment with newer versions 2019-10-01 12:19:22 +02:00
Hector Sanjuan
be4be9a494 Dependency update 2019-09-27 18:54:42 +02:00
Hector Sanjuan
582968f44e
Merge pull request #915 from ipfs/feat/proxy-logging
API logs for IPFS Proxy
2019-09-27 12:07:34 +02:00
Hector Sanjuan
ffd02a6a64
Merge pull request #917 from ipfs/fix/pin-queue-full
Error queue is full for stateless pintracker
2019-09-27 11:48:03 +02:00
Hector Sanjuan
1f07b3af81
Merge pull request #919 from ipfs/feat/clean-metrics
Test that expired PeerMetrics gets deleted
2019-09-26 18:46:59 +02:00
Hector Sanjuan
ce20e86fdb
Merge pull request #907 from ipfs/feat/local-add
`--local` flag for `ctl add`
2019-09-23 13:13:59 -04:00
Hector Sanjuan
a98292bfa6
Merge pull request #893 from ipfs/feat/recover-all
Pin recover on all peers
2019-09-23 13:13:48 -04:00
Kishan Mohanbhai Sagathiya
fe57e33726 Addressed reviews 2019-09-21 14:07:26 +05:30
Hector Sanjuan
4696fdf8d5
Merge pull request #920 from jimpick/patch-1
Spelling fix
2019-09-20 15:17:47 -04:00
Hector Sanjuan
9012bfa73e Improve docker-compose.yml for testing
Makes sure it works well with the quickstart docs
2019-09-20 11:08:40 -04:00
Kishan Mohanbhai Sagathiya
ca81048ffa Allocate in the beginning for local as well 2019-09-18 13:21:04 +05:30
Jim Pick
6c790a9289
Spelling fix 2019-09-13 20:09:11 -07:00
Hector Sanjuan
3c4859c74c
Release 0.11.0 2019-09-13 18:57:25 +02:00
Hector Sanjuan
cf0b22c1f0
Merge pull request #880 from ipfs/0.11.0/changelog
Changelog for v0.11.0
2019-09-13 18:56:51 +02:00
Hector Sanjuan
c0384c2a8f Changelog for v0.11.0 2019-09-13 18:55:23 +02:00
Hector Sanjuan
d21dffa923
Release 0.11.0-rc10 2019-09-13 10:52:13 +02:00
Hector Sanjuan
14a9965e4c
Merge pull request #918 from ipfs/update/go-ds-crdt2
CRDT: update and increase timeout
2019-09-13 09:35:17 +02:00
Kishan Mohanbhai Sagathiya
76857112b2 Test that expired PeerMetrics gets deleted 2019-09-13 08:01:15 +07:00
Hector Sanjuan
1a0998f10d CRDT: update and increase timeout
* Update go-ds-crdt to 0.1.5 which adds a return statement in case of error fetching a node.
* Increase DAG-Get timeout to 2 minutes
* Downgrade go-bitswap to 0.1.6.
2019-09-12 19:22:52 +02:00
Kishan Mohanbhai Sagathiya
19cde2e8cf Error queue is full for stateless pintracker
- increase max pin queue size to 1 million
- hide max_pin_queue_size from configuration
2019-09-11 12:53:51 +07:00
Kishan Mohanbhai Sagathiya
6543c0c79b Addressed reviews 2019-09-10 20:05:38 +07:00
Kishan Mohanbhai Sagathiya
adc7c5b131 Merge branch 'master' of github.com:ipfs/ipfs-cluster into test2 2019-09-10 20:03:05 +07:00
Kishan Mohanbhai Sagathiya
7f6c45812f Fix test 2019-09-10 15:27:47 +07:00
Kishan Mohanbhai Sagathiya
bc357400f6 API logs for IPFS Proxy 2019-09-10 13:59:03 +07:00
Hector Sanjuan
cf189799f2
Release 0.11.0-rc9 2019-09-09 14:54:52 +02:00
Hector Sanjuan
12141a562e
Merge pull request #913 from ipfs/fix/add-params
Fix: consolidate parsing of PinOptions
2019-09-09 14:52:26 +02:00
Hector Sanjuan
4e75bee03d
Merge pull request #909 from ipfs/fix/rpl-confusion
Explanation of 0 replication factor
2019-09-09 10:31:18 +02:00
Hector Sanjuan
963bf8877f
Merge pull request #894 from ipfs/feat/http-logging
Logging for Cluster HTTP APIs
2019-09-09 10:30:01 +02:00
Hector Sanjuan
18dad223b2
Merge pull request #912 from ipfs/fix/allocations
Fix: handling allocations
2019-09-09 10:22:14 +02:00
Kishan Mohanbhai Sagathiya
3ad66bd59c Fix sharness 2019-09-08 17:11:32 +07:00
Kishan Mohanbhai Sagathiya
9cb1cdeaff Merge branch 'master' into feat/recover-all 2019-09-08 17:06:43 +07:00
Kishan Mohanbhai Sagathiya
b1748d13c4 Use absolute path 2019-09-07 19:05:57 +07:00
Kishan Mohanbhai Sagathiya
78ce03c62e go mod tidy 2019-09-07 18:44:30 +07:00
Hector Sanjuan
11d5f6a3f2 Fix: consolidate parsing of PinOptions
This removes duplicated code to parse PinOptions.
2019-09-06 18:38:55 +02:00
Hector Sanjuan
96752e4e58 Fix: handling allocations
* pin() should not allocate if allocations are already provided
* pin() should not skip pinning if the exact same pin exists
  * Additionally this was unreliable as it allocated it before
    so the pin may have existed but the allocations may have been
    artificially changed.
* pin() re-uses existing pin when pin options are the same and thus
  avoids changing the allocations of a pin.

As a side effect, this fixes re-allocations which were broken: peers
called `shouldPeerRepinCid()` and instead of repinning that single
cid proceeded to repin the full state. For every pin.

Additionally tests have been adapted. It may be that some re-alloc tests
were very unreliable for the problems above.
2019-09-06 17:56:00 +02:00
Hector Sanjuan
9eb0deee4e
Merge pull request #891 from ipfs/feat/metadata
Metadata can be set and shown from `ctl`
2019-09-06 15:46:29 +02:00
Hector Sanjuan
c1ff0651d3
Merge pull request #878 from ipfs/feat/sort-responses
Sort addresses in `/id`
2019-09-06 15:44:44 +02:00
Hector Sanjuan
2d389428cd Merge branch 'master' into feat/metadata 2019-09-06 15:17:05 +02:00