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

Deterministic task<->node assignment #38

Closed
4 tasks done
Tracked by #47 ...
bajtos opened this issue Nov 6, 2023 · 2 comments
Closed
4 tasks done
Tracked by #47 ...

Deterministic task<->node assignment #38

bajtos opened this issue Nov 6, 2023 · 2 comments
Assignees

Comments

@bajtos
Copy link
Member

bajtos commented Nov 6, 2023

ETA: 2024-07-31

At the moment, SPARK nodes pick tasks from the list of per-round tasks at random and the evaluation service rewards all measurements completed.

Let's rework this part to follow what we designed in SPARK Tasking v2.

At a high level:

  • Within each subnet and for each job, assign the reward to the node inside that subnet that is “closest” to the job, using the XOR distance between the node’s public key and the hash of the job definition. (See below for details.)
  • The checker node should ask the tasker for the DRAND randomness, committee index and the list of tasks for the current SPARK round. Then, it should pick TN closes tasks from the list, using XOR against the checker's public key as the distance metric. (See the Notion doc for more details.)
  • The evaluation service should repeat the same process to decide which measurements will be further used for verifications of proofs and eligible for rewards.

Prerequisites:

Tasks

  • Implement the new tasking algorithm in the Spark checker.
  • Wait until the network picks up the change.
  • Observe the new committee sizes and compare the real data against my modelling exercise. Check that all works as expected.
  • Rework the evaluation service to apply the new tasking algorithm when evaluating the measurements
@bajtos
Copy link
Member Author

bajtos commented May 24, 2024

@bajtos
Copy link
Member Author

bajtos commented Jul 11, 2024

Proof of concept:
filecoin-station/spark-evaluate#287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

No branches or pull requests

1 participant