Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSR per allocator #216

Open
Tracked by #213
bajtos opened this issue Jan 6, 2025 · 0 comments
Open
Tracked by #213

RSR per allocator #216

bajtos opened this issue Jan 6, 2025 · 0 comments

Comments

@bajtos
Copy link
Contributor

bajtos commented Jan 6, 2025

Provide retrieval-based RSR calculated on a per-allocator basis.

  • REST API
  • Visualisation on the Spark Public Dashboard

Pre-requisites:

Related discussions:

Notes:

  • In spark-evaluate, we are (or will be) mapping retrievals to clients, see RSR per client #193.

  • The missing piece is aggregating per-client data to per-allocator data. The important insight is that each client is linked to a single allocator only.

  • fil-deal-ingester maintains a mapping between clients and allocators in the table allocator_clients.

  • We need to access this mapping from spark-evaluate or spark-stats, depending on where we aggregate per-client to per-allocator stats.

    Possible options to consider:

    1. Enhance each retrieval task in the round details with the list of allocators in addition to the list of clients.
      • This may be the easiest path if we map clients to allocators in spark-evaluate.
    2. Implement a new REST API endpoint in spark-stats to allow spark-evaluate or spark-stats to map clients to allocators.
      • We must be careful about performance - we don't want to make one request for each client.
      • This endpoint can be useful for per-client dashboard as it will allow us to show the allocator from which the client has received DataCap.
      • spark-stats can provide a public facade for this endpoint using the same mechanism we have already in place for getting deals eligible for retrieval testing (source code).
@bajtos bajtos mentioned this issue Jan 6, 2025
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant