Skip to content

feat: Cost forecast #474

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

Closed
Chabane opened this issue Jan 27, 2019 · 11 comments
Closed

feat: Cost forecast #474

Chabane opened this issue Jan 27, 2019 · 11 comments
Labels
help wanted Extra attention is needed kind/feature New feature or request priority/backlog Not staffed at the moment. Help wanted. stale

Comments

@Chabane
Copy link
Contributor

Chabane commented Jan 27, 2019

Hello !

Thank you for your wonderful work !

Why do you want this feature?
If I run eksctl create cluster, I have no idea how much it will cost me. What I suggest is to have the possibility to estimate the cost before running any command. We all know that it's not possible to have an exact value, but we can have the minimum

What feature/behavior/change do you want?
for example

eksctl estimate --usage=hour --nodes-min=2 --nodes-max=3 --node-type=t3.small --node-volume-size=5 --auto-kubeconfig --region=eu-west-1 --version=1.11

Result:

Region EU (Ireland):
EKS Cluster:  $0.20 per hour
EC2 t3.small: $0.0228 per instance per hour
EBS volume: $0,00 per hour
Total: $0,2228 minimum per hour
[..]

Thank you for dedicating your time and energy into reading the issue.

@Chabane Chabane changed the title Cost forecast eksctl estimate feat: Cost forecast eksctl estimate Jan 27, 2019
@Chabane Chabane changed the title feat: Cost forecast eksctl estimate feat: Cost forecast Jan 27, 2019
@errordeveloper
Copy link
Contributor

This sounds like an interesting feature, would you be willing to help?

@errordeveloper errordeveloper added kind/feature New feature or request help wanted Extra attention is needed labels Jan 29, 2019
@Chabane
Copy link
Contributor Author

Chabane commented Jan 29, 2019

Glad you liked it!
I am a beginner in Golang. But If you challenge me, I can create a PR next week ʕ•ᴥ•ʔ (based on CONTRIBUTING.md)

@errordeveloper
Copy link
Contributor

errordeveloper commented Jan 29, 2019 via email

@Chabane
Copy link
Contributor Author

Chabane commented Jan 30, 2019

You are right

The same idea as https://calculator.s3.amazonaws.com/index.html (+AWS TCO) but in automated manner. The estimation is limited to the pricing induced by a eksctl create/scale command + addons.

Services involved:

  • EC2 Instances
  • EBS Volumes
  • ELB
  • NAT Gateway
  • EKS
  • Region
  • +?

API Used:

New command:
eksctl estimate (or whatever you want) --usage-type --usage-value --free-tier --support

Parameters:

Usage:

  • Demo --usage-type=demo --usage-value=3
  • % Utilized/Month --usage-type=utilization --usage-value=100 (default)
  • Hours/Day --usage-type=day --usage-value=24
  • Hours/Week --usage-type=week --usage-value=
  • Hours/Month --usage-type=month --usage-value=

Free Tier:

  • Yes/No (Yes by default) --free-tier=no

Support

  • Basic (default)/Developer/Business/Enterprise --support=basic

+all existing eksctl create eksctl scale parameters.

We can also add a parameter --usecase. For example: eksctl estimate --usecase=free-website. And we detail the recommanded configuration. I'm having fun calling that Cost driven development 👍

Please feel free to correct or complete the design.

@errordeveloper
Copy link
Contributor

@Chabane this sounds excellent! Would you mind opening a PR (akin to #303), and we can collaborate there?

@Chabane
Copy link
Contributor Author

Chabane commented Jan 31, 2019

Good idea 👍 I'll do that

@Chabane
Copy link
Contributor Author

Chabane commented Feb 14, 2019

@errordeveloper
Copy link
Contributor

Please do! You will need to bump the number by one, as 003 was taken by #545.

@Chabane
Copy link
Contributor Author

Chabane commented Feb 20, 2019

PR #548

@martina-if martina-if added the priority/backlog Not staffed at the moment. Help wanted. label Sep 15, 2020
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jan 27, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2021

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed kind/feature New feature or request priority/backlog Not staffed at the moment. Help wanted. stale
Projects
None yet
Development

No branches or pull requests

3 participants