serverless-plugin-warmup icon indicating copy to clipboard operation
serverless-plugin-warmup copied to clipboard

Add "cost" command to estimate costs based on the current configuration

Open mvayngrib opened this issue 6 years ago • 7 comments

awesome plugin!

it would be cool to be able to get a cost estimate of the sum of the warmups scheduled, e.g. with serverless warmup cost

idk, how much this would save, but log group pre-processing before a function call can save the need for a warmup call - process the latest log group, check the request id time, and then decide whether to issue warmup call

mvayngrib avatar Oct 10 '17 14:10 mvayngrib

Hi @mvayngrib. Thanks for the feedback. I hope your lambdas are burning!

Yes these two feats will be very cool. Something that will make it a ton better.

Would be good to have some free hands on this. Do you want to contribute? 🤔

goncaloneves avatar Oct 12 '17 14:10 goncaloneves

@goncaloneves i'd love to contribute, but not sure i'll have time in the short term. In the meantime, i'll be enjoying the new responsiveness of my lambdas :)

mvayngrib avatar Oct 12 '17 16:10 mvayngrib

Cool, no worries 🙌 I will leave this here and is certainly something that will be done in the future.

goncaloneves avatar Oct 13 '17 12:10 goncaloneves

Just a quick note on this, I'm right now(today) - investigating cloudwatch metrics for this - also for intelligent warmup so it checks the number of concurrent executions on average for the particular time of day - I'll chuck notes in here later on :-)

marcfielding1 avatar Dec 27 '18 13:12 marcfielding1

Rename is since the smart warming up feature will be tracked on #181

This should be achievable either hardcoding prices or using the SDK (https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Pricing.html#describeServices-property)

juanjoDiaz avatar Sep 22 '19 10:09 juanjoDiaz

Somewhat of an unrelated question - Just curious, how much does it cost exactly to keep it warm 24/7 for a month? Just a ballpark figure or rough estimate is ok.

joshuaquek avatar Feb 08 '21 06:02 joshuaquek

You can see the maths in the readme: https://github.com/juanjoDiaz/serverless-plugin-warmup#cost

Let me know if something is unclear :)

juanjoDiaz avatar Feb 08 '21 22:02 juanjoDiaz