[enhancement] Spot heuristics module

オープン
#596 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, azure, go
領域
cloud

調査の方向性

ファイル、テスト、エントリポイントは指定されていません。まず既存の AWS SpotPlacementScore と Azure の eviction/価格処理、および issue #593 を確認し、そのうえでプロバイダー中立のヒューリスティックをどこに配置すべきかを判断してください。完了とは、spot メトリクスを利用できないケースを提案された割引計算式でカバーできることを意味します。時間的シグナルは引き続き任意の設計事項です。

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Go
スター
25
フォーク
41
平均マージ
5日 3時間
マージ済み PR(30日)
16

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

redhat-developer/mapt のほかの issue

redhat-developer/mapt の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。