redhat-developer / redhat-developer/mapt

[Feature] Check instance pricing for On-Demand

Open
#683 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
24
Forks
36
Avg merge
6d 13h
Merged PRs (30d)
8

Description

We were using the cpus and memory arguments to match our computing needs.
However, we noticed that mapt regularly launched expensive, workload-specific instance types (GPU accelerated, network optimised, large local storage, etc).
While these instances indeed had the specified cpu/memory configuration, there are plenty of cheaper, more generic alternatives and we don't require the extra technologies the expensive ones provide.
Example: both d3en.12xlarge and m5a.12xlarge have the same vCPU/Memory amount but the former is about 3 times more expensive.

As a workaround, we're now using the compute-sizes argument, but it would be great not having to hardcode specific instance types.

Would it be possible for mapt to do a cost comparison before selecting an On-Demand instance type, same as it does with Spot instances?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing Spot instance pricing logic and the On-Demand instance selection path. Compare how pricing should be applied when choosing among instances with matching CPU and memory, and verify the result against the d3en.12xlarge and m5a.12xlarge example without requiring hardcoded compute sizes.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.