[enhancement] Spot heuristics module
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
No files, tests, or entry points are named. Start by reviewing the existing AWS SpotPlacementScore and Azure eviction/price handling, along with issue #593, then determine where a provider-neutral heuristic belongs. Done should mean the proposed discount formula can cover cases where spot metrics are unavailable; temporal signals remain an optional design point.
Written by the indexing model from the issue text.
Description
There are some situations where we can not use data for calculate odds:
-
Recently we found out due to #593 some (all?) opt-in regions from AWS do not offer SpotPlacementScore data, can not find if that will be supported at any time. As so those regions are directly discarded from spot calculations.
-
On top of this, from time to time we also miss Eviction metric from Azure due to some unknown issues on their graphql service. In that case we use directly price info.
-
Also on some previous research other providers do not support such metric.
This issue proposes to create a generic heuristic module to emulate the score so it can be used on those cases were we will not be able to retrieve that data:
Actual Data
The proposed solution will calculate the score based on the formula
discount = 1 - (spot_price / on_demand_price)
Temporal data
When possible data formula could be improved with temporal data:
Compute deltas or ratios:
delta1d = (current - yesterday) / yesterday
delta7d = (current - lastWeek) / lastWeek
Use those deltas as extra signals:
If the current price is much lower than historical → maybe surplus capacity (good).
If much higher or spiking vs history → maybe risk of interruption (bad).
@anjannath WDYT?
- Dominant language
- Go
- Stars
- 26
- Forks
- 41
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 27
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redhat-developer/mapt
-
kind: v0.14.7 control-plane readiness block reads the wrong kubeconfig path (provision always fails)Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
redhat-developer/mapt#997 ·
Maintainers usually reply within 3 days
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH keyMay be free again @abdulazeem-tk4vr claimed this 167 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
redhat-developer/mapt#817 · 12 comments ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
redhat-developer/mapt#991 ·
Maintainers usually reply within 3 days
-
enhancement provider/AWS provider/IBMCLOUD target/openshift-snc
Difficulty 4/5 3-5 days Newbie friendliness 57/100
redhat-developer/mapt#990 ·
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
redhat-developer/mapt#974 ·
Maintainers usually reply within 3 days
All issues in redhat-developer/mapt
Similar issues
-
effort:s impact:low raised-by:reviewer risk:low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
medici-finance/assay#8050 · 1 comment ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
factory:subtask
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
enhancement needs-triage service/licensemanager
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hashicorp/terraform-provider-aws#51503 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100