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

On Demand Spot Instance support #39

Open
camjac251 opened this issue Aug 31, 2020 · 2 comments
Open

On Demand Spot Instance support #39

camjac251 opened this issue Aug 31, 2020 · 2 comments

Comments

@camjac251
Copy link

Is it possible to add on demand VM creation support for this project using various cloud providers? Hourly billing can be a lot cheaper than monthly rented servers and having the ability to spin up a VM and destroying it on completion of a transcode would make it much more affordable to use. A few cloud provider's offer this through their API if I'm not mistaken like AWS, DigitalOcean, Linode, Hetzner, and Scaleway. In my search to see if anyone else had made it before I could only find this but it sadly archived and might be discontinued https://github.com/BackInBash/Plex-Remote-Transcoder

@davidjameshowell
Copy link

What I think you will find some of the pitfalls derive around the actual required time to bootstrap and configure and instance to have it be quick enough to be considered "dynamic". This is why a scaling system would work better (and is totally possible, from a Plex session needs) as you'd have a set minimum fleet that would serve requests allow you time to up your fleet at that time.

@zaldre
Copy link

zaldre commented Nov 24, 2020

I've written scripts that do this, leverage something like Terraform to init the cloud providers with a blank machine, ansible to configure it and then i check http://loadbalancer:/api/sessions and http://transcoder:/api/stats to check session/cpu usage. Fairly straight forward in terms of approach but is a bit time consuming.

Other option is to use something like Kubernetes to do your scaling, this looks of interest but haven't played with it yet. (https://github.com/Unicorn-K8s/UnicornTrancoder-chart)

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

No branches or pull requests

3 participants