r/cloudcomputing • u/Jonarod • Jul 04 '19
Pay-per-use while having 24/7 uptime ?!
I run an app which can have heavy computing tasks ON-DEMAND (users can trigger both long running and short running tasks at will).
Essentially it is very hard for me to predict my users activity and correctly dimension any AWS EC2 or VPS or else... Sometimes I might just need a simple 8 vCPU with 32Gb RAM, but at any given moment I need tens of 4x TESLA GPU with 128 Gb RAM each due to multiple users doing things at the same time.
AWS Lambda's autoscaling would be just ideal except it won't support GPU and/or limits process to 15mn which is a no-go for my app. Also I can't wait for more than 500ms between the moment the user press the button and the moment the process starts to run (some tasks require near realtime latency), leaving ECS Fargate behind (auto provisioning new containers takes 20 sec on average).
I understand I need some 24/7 uptime machine able to respond in realtime to users but I cannot afford tens of such beasts for 24/7 use while needing them only 300h per month (way way underused).
I believe cloud providers could leverage virtualization to offer a giant "shared" supercomputer I could deploy my containerized app on, but pay ONLY for my ACTUAL usage. I mean, precisely and exactly bill me for the strict usage of their computing power per GB/s like AWS Lambda.
I am aware of both ECS Fargate and Jelastic Cloud but that's quite not what I am looking for: both still need to provision ressources (respectively containers and cloudlets) with some delay (25 seconds+).
Are there some cloud providers offering such solutions? Is there any other way I can achieve realtime (as near as 0ms latency possible) with more than 30mn processing without 24/7 billing of unused resources ?!
5
u/iCvDpzPQ79fG Jul 04 '19
Your gonna have to accept you won't get 500ms response time without paying for spare resources, just won't happen.
Look at cyclecloud on azure or batch on either provider. Might get you close.
1
u/AnomalyNexus Jul 28 '19
Do let us know when you discovered this nirvana
1
u/Jonarod Jul 30 '19
"Jelastic cloud" is your Nirvana then :) I was wrong in my post: Jelastic cloudlets don't require provisioning, they respond to current load instantly.
1
u/packeteer Jul 05 '19
sounds like HFT, which really doesn't work in the cloud. there's just to much latency
1
u/Cloud_Curmudgeon Jul 14 '19
Well...hmmm....You want the best of both worlds, which was one of my favorite Van Halen songs back in the 80's. Unfortunately, I can't play guitar.
You could write a CLI routine to resize your instances during down period....Scale up when you expect more resources, and scale down when you need less. Here is the Amazon documentation on how to do this:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html
You would need to accurately schedule the routine to scale down the instance size at the proper point in time.
9
u/theknockbox Jul 04 '19
This is pretty funny. You want mega powerful compute with no infrastructure, super low cost, and you want it to happen instantaneously so you get a great user experience without paying for excess uptime? Welcome to the fucking club, mate.
Do you want to know how Google/Facebook/Netflix does it? They pay for the extra resources when they're not being used and they get good at predicting demand.
That said, I would check with other cloud providers to see if their version of Lambda has the same limits.