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

Uptime Scoring System #1185

Open
sameh-farouk opened this issue Sep 4, 2024 · 1 comment
Open

Uptime Scoring System #1185

sameh-farouk opened this issue Sep 4, 2024 · 1 comment
Labels
grid-proxy belongs to grid proxy type_feature New feature or request
Milestone

Comments

@sameh-farouk
Copy link
Member

sameh-farouk commented Sep 4, 2024

Motivation

Encourages nodes to stay up and penalizes those that are consistently down.

Description:

The idea is to utilize the health indexer to Implement an uptime score system where nodes are penalized or delisted after prolonged downtimes.

  • Nodes with consistent uptime gain higher scores, which would increase their chances of being selected for deployment.
  • Nodes with poor uptime scores could be delisted for a period of time until their scores improve.

Implementation:

  • Use a sliding window technique (e.g., the last 30 days) to continuously update the node's score based on its recent performance. This allows you to account for occasional downtimes while still penalizing nodes that consistently underperform.

  • Calculate the uptime score of each node by tracking how often it is online within that time window. Nodes should then be listed or chosen based on their uptime score. Encourage consistent availability by giving nodes that meet expectations more opportunities to be utilized over time. Conversely, nodes with low uptime scores would have fewer chances to be utilized or might be temporarily delisted.

Update:

  • An effective scoring implementation may involve utilizing the node's uptime reports from the GraphQL, as we already have accurate uptime data there (from node’s reports).
    We could periodically query the past 30 days' reports and calculate the score, allowing us to accurately score the stand-by nodes, especially if the health indexer treats them as unhealthy.
@sameh-farouk sameh-farouk added type_feature New feature or request grid-proxy belongs to grid proxy labels Sep 4, 2024
@xmonader
Copy link
Contributor

xmonader commented Sep 5, 2024

For 3.16

@sameh-farouk sameh-farouk changed the title Uptime Scoring and Penalty System Uptime Scoring System Sep 6, 2024
@rawdaGastan rawdaGastan added this to the later milestone Sep 9, 2024
@rawdaGastan rawdaGastan modified the milestones: later, v0.17.x Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid-proxy belongs to grid proxy type_feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants