Commit Graph

36 Commits

Author SHA1 Message Date
Marcin Rataj
70e604ff99
feat: Routing.Type=auto (DHT+IPNI) (#9475)
This changes the default routing to use both DHT and IPNI
at the same time. Closes #9454 Closes #9422

Full context:
https://github.com/ipfs/kubo/issues/9454
https://github.com/ipfs/kubo/issues/9422

Co-authored-by: Steve Loeppky <biglep@protocol.ai>
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Steve Loeppky <biglep@protocol.ai>
2022-12-08 23:20:24 +01:00
Mikel Cortes
72bad5c060
feat: increase default Reprovider.Interval (#9326)
* increase republish interval based on RFM17
* refactor(config): switch to implicit default

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-12-08 21:28:40 +01:00
Lucas Molas
e34c0da2b5 refactor(config): remove Swarm.ConnMgr defaults
This moves defaults to Kubo code, cleaning up config.
If value is in config, we assume it is an explicit choice made by user.
Makes migrations easier.
2022-11-15 20:26:59 +01:00
Antonio Navarro Perez
d1b9e41fc2
feat: Delegated routing with custom configuration. (#9274)
New multi-router configuration system based on https://hackmd.io/G1KRDEX5T3qyfoBMkIrBew#Methods

- Added a new routing type: "custom"
- Added specific struct types for different Routers (instead of map[string]interface{})
- Added `Duration` config type, to make easier time string parsing
- Added config documentation.
- Use the latest go-delegated-routing library version with GET support.
- Added changelog notes for this feature.

It:
- closes #9157
- closes #9079
- closes #9186
2022-09-22 15:47:45 +02:00
Antonio Navarro Perez
92c4dc61a8
feat(routing): Delegated Routing (#8997)
* Delegated Routing.

Implementation of Reframe specs (https://github.com/ipfs/specs/blob/master/REFRAME.md) using go-delegated-routing library.

* Requested changes.

* Init using op string

* Separate possible ContentRouters for TopicDiscovery.

If we don't do this, we have a ciclic dependency creating TieredRouter.
Now we can create first all possible content routers, and after that,
create Routers.

* Set dht default routing type

* Add tests and remove uneeded code

* Add documentation.

* docs: Routing.Routers

* Requested changes.

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>

* Add some documentation on new fx functions.

* Add changelog entry and integration tests

* test: sharness for 'dht' in 'routing' commands

Since 'routing' is currently the same as 'dht' (minus query command)
we need to test both, that way we won't have unnoticed divergence
in the default behavior.

* test(sharness): delegated routing via reframe URL

* Add more tests for delegated routing.

* If any put operation fails, the tiered router will fail.

* refactor: Routing.Routers: Parameters.Endpoint

As agreed  in https://github.com/ipfs/kubo/pull/8997#issuecomment-1175684716

* Try to improve CHANGELOG entry.

* chore: update reframe spec link

* Update go-delegated-routing dependency

* Fix config error test

* use new changelog format

* Remove port conflict

* go mod tidy

* ProviderManyWrapper to ProviderMany

* Update docs/changelogs/v0.14.md

Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2022-07-07 17:10:25 -04:00
Marcin Rataj
74e6436814 go-ipfs-config: docs: updated flatfs/badger profile helptext (#167)
This is copy-paste from https://github.com/ipfs/go-ipfs/pull/8662
to ensure consistency.
2022-01-28 23:39:10 +01:00
@RubenKelevra
f5fb70ee0f go-ipfs-config: remove duplicate entries in defaultServerFilters 2021-03-24 12:44:46 +01:00
gammazero
74dcf427fc go-ipfs-config: Remove badger2 profile
This is needed for the upcoming release since there is not yet an official badger2 release with the items needed for use by IPFS.
2020-11-23 17:09:21 -08:00
gammazero
1ec9262cda go-ipfs-config: Add badger2 profile and config spec 2020-10-09 16:11:07 -07:00
Steven Allen
515d6905e3 go-ipfs-config: fix: correct the default-datastore config profile
And use an actual profile instead of just aliasing.
2020-04-27 14:39:17 -07:00
Steven Allen
cf3fa1bdb6 go-ipfs-config: feat: disable autonat service when in lowpower mode 2020-04-14 20:29:05 -07:00
Steven Allen
cc723f94b8 go-ipfs-config: feat: mark badger as stable
We're still not ready to enable it by default but at least mark it as stable.
2020-03-27 18:40:26 -07:00
Adin Schmahmann
95a14f43ac go-ipfs-config: profile: badger profile now defaults to asynchronous writes 2019-12-16 13:28:05 -05:00
Teran McKinney
c920b46f46 go-ipfs-config: Closes: #6284 Add appropriate IPv6 ranges to defaultServerFilters 2019-05-01 17:33:45 +00:00
Steven Allen
16f3d2269a go-ipfs-config: Merge pull request #17 from tarekbadrshalaan/feat/profile/randomports
randomports: give user ability to init ipfs using random port for swarm.
2018-12-11 12:29:53 -08:00
tarekbadr
b83ea099ff go-ipfs-config: change randomports Description 2018-11-03 15:41:49 +02:00
Lucas Molas
77a3e94a63 go-ipfs-config: profile: add badger truncate option 2018-10-29 11:03:54 -03:00
Steven Allen
6a618df199 go-ipfs-config: allow multiple API/Gateway addresses
Alternative to #6 that doesn't require a migration.
2018-09-21 09:39:47 -07:00
Łukasz Magiera
a55c0fb51d go-ipfs-config: profile: fix test profile tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-08 13:59:12 +02:00
Łukasz Magiera
97590c70cc go-ipfs-config: fix default-net profile not reverting bootstrap config
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-08 13:59:12 +02:00
Łukasz Magiera
0c8a2e192f go-ipfs-config: config/profile: disable UPnP/NAT in server profile, docs
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-26 19:34:52 +02:00
Łukasz Magiera
020c55ad62 go-ipfs-config: Fix missing profile docs
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-26 19:16:57 +02:00
Łukasz Magiera
88d7dfec2f go-ipfs-config: config: apply review to lowpower profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-24 16:11:42 +01:00
Łukasz Magiera
8d8b02b797 go-ipfs-config: init: lowpower profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-24 16:11:42 +01:00
Łukasz Magiera
cdb9c2f316 go-ipfs-config: config-patch: Inverse profiles
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-17 15:29:18 +01:00
Łukasz Magiera
4c300c521e go-ipfs-config: config-patch: docs typo, fix server profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-16 18:16:43 +01:00
Łukasz Magiera
2423a8fb03 go-ipfs-config: config-patch: apply review suggestions
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
c2a74652fa go-ipfs-config: config: rename profile.Unapply to Revert
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
151c8dcf4e go-ipfs-config: conifg-patch: apply review
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
cb7bc06600 go-ipfs-config: config: profile tests, docs
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
3de82a7c54 go-ipfs-config: config: revert profile subcommand
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Jeromy
9e4fa0d44a go-ipfs-config: add option to set syncWrites to badger
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-09-05 22:46:01 -07:00
Jeromy
118baa6543 go-ipfs-config: add measure layer to badgerds profile defaults
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-09-05 21:24:48 -07:00
Jeromy
6110648544 go-ipfs-config: add badger init profile
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-09-04 12:33:15 -07:00
Łukasz Magiera
af57db7725 go-ipfs-config: Add test init profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-06 22:41:47 +02:00
Łukasz Magiera
c475d31c61 go-ipfs-config: Disable MDNS in server profile, move it out from init.go
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 22:36:02 +02:00