Commit Graph

81 Commits

Author SHA1 Message Date
dependabot-preview[bot]
ab0e42ae3a
build(deps): bump github.com/imdario/mergo from 0.3.7 to 0.3.9
Bumps [github.com/imdario/mergo](https://github.com/imdario/mergo) from 0.3.7 to 0.3.9.
- [Release notes](https://github.com/imdario/mergo/releases)
- [Commits](https://github.com/imdario/mergo/compare/v0.3.7...v0.3.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-03 09:43:39 +00:00
Hector Sanjuan
b72bf7b55d
Merge pull request #1029 from ipfs/dependabot/go_modules/github.com/ipfs/go-ds-badger-0.2.3
build(deps): bump github.com/ipfs/go-ds-badger from 0.2.2 to 0.2.3
2020-04-03 11:27:53 +02:00
Hector Sanjuan
47474a949e
Merge pull request #1031 from ipfs/dependabot/go_modules/github.com/gorilla/mux-1.7.4
build(deps): bump github.com/gorilla/mux from 1.7.3 to 1.7.4
2020-04-03 11:27:02 +02:00
Hector Sanjuan
9eb1353404
Merge pull request #1028 from ipfs/dependabot/go_modules/github.com/urfave/cli-1.22.4
build(deps): bump github.com/urfave/cli from 1.22.1 to 1.22.4
2020-04-03 11:25:42 +02:00
dependabot-preview[bot]
d769a97043
build(deps): bump github.com/ipfs/go-ds-badger from 0.2.2 to 0.2.3
Bumps [github.com/ipfs/go-ds-badger](https://github.com/ipfs/go-ds-badger) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/ipfs/go-ds-badger/releases)
- [Commits](https://github.com/ipfs/go-ds-badger/compare/v0.2.2...v0.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-03 09:05:30 +00:00
dependabot-preview[bot]
5cc6bc7891
build(deps): bump github.com/gorilla/mux from 1.7.3 to 1.7.4
Bumps [github.com/gorilla/mux](https://github.com/gorilla/mux) from 1.7.3 to 1.7.4.
- [Release notes](https://github.com/gorilla/mux/releases)
- [Commits](https://github.com/gorilla/mux/compare/v1.7.3...v1.7.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-03 09:03:51 +00:00
dependabot-preview[bot]
b8f311d40f
build(deps): bump github.com/urfave/cli from 1.22.1 to 1.22.4
Bumps [github.com/urfave/cli](https://github.com/urfave/cli) from 1.22.1 to 1.22.4.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v1.22.1...v1.22.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-03 09:03:37 +00:00
Hector Sanjuan
77a47d066b
Merge pull request #1037 from ipfs/dependabot/go_modules/github.com/ipfs/go-fs-lock-0.0.4
build(deps): bump github.com/ipfs/go-fs-lock from 0.0.1 to 0.0.4
2020-04-03 10:55:58 +02:00
Hector Sanjuan
e1deb85a89
Merge pull request #1036 from ipfs/dependabot/go_modules/github.com/hashicorp/go-hclog-0.12.2
build(deps): bump github.com/hashicorp/go-hclog from 0.12.1 to 0.12.2
2020-04-03 10:54:40 +02:00
Hector Sanjuan
081526d0ea
Merge pull request #1035 from ipfs/dependabot/go_modules/github.com/prometheus/client_golang-1.5.1
build(deps): bump github.com/prometheus/client_golang from 1.4.0 to 1.5.1
2020-04-03 10:54:27 +02:00
Hector Sanjuan
123b51f131
Merge pull request #1034 from ipfs/dependabot/go_modules/github.com/urfave/cli/v2-2.2.0
build(deps): bump github.com/urfave/cli/v2 from 2.0.0 to 2.2.0
2020-04-03 10:54:05 +02:00
dependabot-preview[bot]
71a967113c
build(deps): bump github.com/ipfs/go-fs-lock from 0.0.1 to 0.0.4
Bumps [github.com/ipfs/go-fs-lock](https://github.com/ipfs/go-fs-lock) from 0.0.1 to 0.0.4.
- [Release notes](https://github.com/ipfs/go-fs-lock/releases)
- [Commits](https://github.com/ipfs/go-fs-lock/compare/v0.0.1...v0.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 22:11:50 +00:00
dependabot-preview[bot]
a98a47403a
build(deps): bump github.com/hashicorp/go-hclog from 0.12.1 to 0.12.2
Bumps [github.com/hashicorp/go-hclog](https://github.com/hashicorp/go-hclog) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/hashicorp/go-hclog/releases)
- [Commits](https://github.com/hashicorp/go-hclog/compare/v0.12.1...v0.12.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 22:11:24 +00:00
dependabot-preview[bot]
065e0ec325
build(deps): bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.4.0 to 1.5.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.4.0...v1.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 22:10:56 +00:00
dependabot-preview[bot]
9973632492
build(deps): bump github.com/urfave/cli/v2 from 2.0.0 to 2.2.0
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.0.0 to 2.2.0.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.0.0...v2.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 22:10:35 +00:00
dependabot-preview[bot]
afb17314d3
build(deps): bump contrib.go.opencensus.io/exporter/jaeger
Bumps [contrib.go.opencensus.io/exporter/jaeger](https://github.com/census-ecosystem/opencensus-go-exporter-jaeger) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/census-ecosystem/opencensus-go-exporter-jaeger/releases)
- [Commits](https://github.com/census-ecosystem/opencensus-go-exporter-jaeger/compare/v0.1.0...v0.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 22:10:09 +00:00
Hector Sanjuan
f3ed4533f2 Revert "Revert to Go1.13"
This reverts commit 5bd6057bf9.
2020-04-02 18:03:58 +02:00
Hector Sanjuan
5bd6057bf9 Revert to Go1.13 2020-04-02 16:48:52 +02:00
Hector Sanjuan
dad63ac700 Chore: update deps libp2p 0.7.2 2020-04-01 11:15:29 +02:00
Hector Sanjuan
636c4ca331 Chore: upgrade go-ipfs-chunker 2020-03-27 00:18:08 +01:00
Hector Sanjuan
c9298a222c Chore: more dependency upgrades 2020-03-26 12:40:14 +01:00
Hector Sanjuan
b3853caf36 Dependency ugprade: changes needed
* Libp2p protectors no longer needed, use PSK directly
* Generate cluster 32-byte secret here (helper gone from pnet)
* Switch to go-log/v2 in all places
* DHT bootstrapping not needed. Adjust DHT options for tests.
* Do not rely on dissappeared CidToDsKey and DsKeyToCid functions fro dshelp.
* Disable QUIC (does not support private networks)
* Fix tests: autodiscovery started working properly
2020-03-22 14:50:25 +01:00
Hector Sanjuan
8ced9b16de chore: general dependency upgrade (build fixes come later) 2020-03-22 14:50:25 +01:00
Hector Sanjuan
4ea830f74e Feat: ipfs-cluster-follow
This adds a new cluster command: ipfs-cluster-follow.

This command allows initializing and running follower peers as configured by a
remote-source configuration. The command can list configured peers
and obtain information for each of them.

Peers are launched with the rest API listening on a local unix socket. The
command can be run to list the items in the cluster pinset using this
endpoint. Alternatively, if no socket is present, the peer will be assumed to
be offline and the pin list will be directly read from the datastore.

Cluster peers launched with this command (and their configurations) are
compatible with ipfs-cluster-ctl and ipfs-cluster-service. We purposely do not
support most configuration options here. Using ipfs-cluster-ctl or launching
the peers using ipfs-cluster-service is always an option when the usecase
deviates from that supported by ipfs-cluster-follow.

Examples:

$ ipfs-cluster-follow -> list configured peers
$ ipfs-cluster-follow --help
$ ipfs-cluster-follow <clusterName> init <url>
$ ipfs-cluster-follow <clusterName> info
$ ipfs-cluster-follow <clusterName> run
$ ipfs-cluster-follow <clusterName> list
2019-12-07 15:38:59 +01:00
Hector Sanjuan
a6c83f72ba Fix #973: update quic-transport
Did not build in windows before...
2019-12-06 10:58:30 +01:00
Hector Sanjuan
71217ac5d1 restapi client: support talking to unix sockets
Setting APIAddr to a Unix socket multiaddress will just work.
2019-12-02 11:56:16 +01:00
Hector Sanjuan
f9411539f0 go.mod: remove btcd indirect dependency
It causes a checksum mismatch error and it is not needed directly.
2019-11-21 11:46:22 -06:00
Kishan Mohanbhai Sagathiya
9bef8ea04e Bump btcd to v0.20.1-beta 2019-11-21 14:05:44 +05:30
Hector Sanjuan
3a22da58ee
Merge pull request #955 from marten-seemann/update-quic
update go-libp2p-quic-transport to v0.2.1
2019-11-09 14:55:32 +01:00
Marten Seemann
dc4dc977f3 update go-libp2p-quic-transport to v0.2.1 2019-11-09 18:39:24 +07:00
Hector Sanjuan
df08d76c2c Fix #949: Cluster peers should advertise their external earlier
This lowers the activation threshold for an observed addressed
to 1 and increases the OwnObservedAddressTTL to infinite.

This should let cluster peers (particularly in small clusters)
advertise their known external addresses asap so that other peers
can include them in their peerstores (and save them on shutdown).

By default this only happens when an external address has received 4
connections in the last 40 minutes. In NATed environments this may
result in cluster peers advertising right away their NAT-translated address/ports
which may not be dialable, but in other cases that address seems to be
indeed dialable (docker).
2019-11-07 13:05:31 +01:00
Hector Sanjuan
834a95b44a update go-dot to latest tag 2019-11-07 12:52:17 +01:00
Hector Sanjuan
71bf98ac86 go.mod 2019-11-07 10:51:46 +01:00
Kishan Mohanbhai Sagathiya
4d8ef92b3d health/graph: Improve graph
Mark local, trusted peers. Add peernames. Improve display.
2019-11-07 10:47:29 +01:00
Hector Sanjuan
b08fe09cec Move to latest quic-transport 2019-11-05 12:52:08 +01:00
Hector Sanjuan
73ab101a3a Use latest go-libp2p-raft
Does not spit errors when no addresses are known for a peer.
2019-11-05 12:51:18 +01:00
Hector Sanjuan
8d7ff58787 Use fixed version of go-libp2p-tls 2019-11-05 12:51:15 +01:00
Hector Sanjuan
24491ab3fc Update to latest quic-transport 2019-11-05 12:50:46 +01:00
Hector Sanjuan
669e75aefc libp2p host: add secio as alternative, do not rewrap host
Only use QUIC for tests, as TCP+TLS has proven very unreliable.
2019-11-05 12:50:46 +01:00
Kishan Mohanbhai Sagathiya
56ef75b50c Use TLS instead of secio for security 2019-11-05 12:50:46 +01:00
Kishan Mohanbhai Sagathiya
ce85bfc745 Added support for QUIC
- Cluster peers will now be able dial and listen using QUIC
- By default QUIC is enabled, to disable it remove QUIC listen address
from service.json
- This commit also adds a config option for whether to act as relay or
not, EnableRelayHop
2019-11-05 12:50:46 +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
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
78c83f0bb5 Bump things to Go 1.13 2019-10-04 19:27:02 +02:00
Hector Sanjuan
be4be9a494 Dependency update 2019-09-27 18:54:42 +02: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
6c863df9fe Merge branch 'master' of github.com:ipfs/ipfs-cluster into feat/http-logging 2019-08-29 21:37:04 +05:30
Hector Sanjuan
bab0485616 Update go-ds-crdt 2019-08-28 12:07:47 +02:00
Hector Sanjuan
c030dd7c8c Update go-ds-crdt 2019-08-27 11:49:24 +02:00