[Feature] Check instance pricing for On-Demand

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

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

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

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.

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?

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

  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.

More from redhat-developer/mapt

All issues in redhat-developer/mapt

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.