Skip to content

provider: display stats for new provide system #10900

@gammazero

Description

@gammazero

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

Use the ipfs provide stat command with the new provide system.

  • Once we have the new provide system as optional, ipfs provide stat should display the stats relative to the provide system in use.
  • The new provide system will show different data, certainly in a different format.
    • So far, we have the total count of provides (incl. reprovides)
    • We can add more metrics:
      • Provide queue size
      • Number of keys currently reprovided
      • Reprovide queue (late regions) size
      • Avg number of provides per second
      • etc.
  • We also want to have a command to give the status of a supplied cid (e.g ipfs provide status <cid>, or ipfs provide stat <cid>.
    • It should be fine to use ipfs provide status <cid> and leave ipfs provide stat for generic stats about the provide system.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions