Skip to content

/routing/v1 http client metrics and configuration #115

@lidel

Description

@lidel

Problem

Seems that we have hardcoded some settings related to delegated routing over HTTP

15s timeout on cold cache might lead to undesired denial of service if content is only announced to IPNI at cid.contact, and either client or server are under load so receiving response takes more than 15s

Solution

I think we should expose http routing client metrics to see if/when things fail, and make things configurable (at least the routing timeout), and use our infra to adjust the default based on real world performance:

  • expose timeout as a configuration setting, allowing us to fine-tune it on ipfs.io infra
    • config option for adjusting timeout should follow whatever naming convention we end up in feat!: independent dht and routing v1 flags #113
    • ipfs.io gateway infra timeouts (HTTP 504) ~1m, so I think it would not hurt if we wait for routing response bit longer than 15s
  • have success/failure metrics for each defined /routing/v1 endpoint

Metadata

Metadata

Assignees

Labels

P2Medium: Good to have, but can wait until someone steps upneed/triageNeeds initial labeling and prioritization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions