Skip to content
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

Record the ASG min-size and amount of time it is shutdown in logs/audit so we can calculate cost-savings. #276

Open
lyricnz opened this issue Mar 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lyricnz
Copy link
Contributor

lyricnz commented Mar 26, 2024

When attempting to calculate the cost-savings of revolver (using external processes) over a given period:

  • For vanilla EC2/RDS, we can calculate the average hourly cost from the billing data (for the hours it is up), then multiply that by the number of hours not-up to figure out the savings. (assuming it would have been 24/7)

  • But for ASG/Clusters we need to know how many unit-hours were saved (which is min-size * number of hours), which can't be determined from the billing data alone.

@lyricnz lyricnz added the enhancement New feature or request label Mar 28, 2024
@lyricnz
Copy link
Contributor Author

lyricnz commented Apr 8, 2024

We can mostly just ignore ASGs and count the EC2s that were stopped along with the ASG, and assume that's the number/type of resources that are solved over the shutdown period. At least until we terminate instances instead per #277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant