New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Scalable Linux machine
Hello, I want to build a ffmpeg converter machine, it is going to grow so I need to scale the CPU, RAM and internet speed every some months.
The objective is to set up the machine once and when is needed upgrade its cpu,ram and internet speed.
I need a small ssd, 20 GB is more than enough.
My cpu needs will be intensive.
Unmetered bandwidth is a need.
Lets see
Comments
Is your app/site scalable? Does it scale to multiple servers? Sounds like you need Managed Hosting. Or do you think your ready made CMS or scripts can scale like youtube? Are you needing unmanaged?
instead of managed service, I think you need to have a VPS with dedicated cores.
It sounds more like you need a scalable cluster with a server that manages jobs for each member. I wrote one of these many years ago.
Then you don't want a VPS.
I'm designing the same scalable ffmpeg converter for my push-up video site. I think it's not good to rely on a single server and hope the provider can resize your server:
I'm planning the following architecture:
As a PHP developer. I wrote a similar system where I had a PHP script in a cronjob that looked at a master server that contained a list of conversion jobs. Each encoding machine would run the cron every 5 minutes and take a job from the master server, mark as in progress, convert the video then push back to storage and mark the conversion as complete. Infinitely scalable and simple.
This is the easy part.
Now think about:
These are just starters when trying to build a new YouTube on $7 VPS.
@nadal28 Take a look at our dedicated cores. You can upgrade the packages at any time.
Dedicated Core Xeon
https://my2.dataideas.com/index.php?rp=/store/intel-xeon-kvm-vps-dedicated-cpu
Dedicated Core Ryzen
https://my2.dataideas.com/index.php?rp=/store/amd-ryzen-kvm-vps-dedicated-cpu
You need a job scheduler. Use Nomad.
Last year I was hired to migrate 2000+ HLS movies from a storage server in OVH to Google Drive in MP4 format. Without Nomad, I would most probably be crying in pain then.
Setup consisted of a worker (called 'client') fleet of 20 Scaleway VMs, all uniformly managed with Terraform. With only one Nomad master (called 'server'). I simply looped over the list of HLS movies dispatching them to Nomad, and it handled the rest by distributing it to clients (workers). Bash script in the worker is run and processed the movie it grabbed, and uploaded it to Drive.
All config and codes: https://gist.github.com/0xbkt/2d498ea770a43f2910eb2f3d34611464
Thanks for sharing. This is example where I think nomad more suitable than kubernetes because of its simpler architecture 🤔
Absolutely yes. Nomad was ringing in my head since the very moment I took up the job. Never tried Kubernetes before, though. Just skimmed through its docs, and honestly it's obviously way harder to manage and get started with. One should just pick the right tool for whatever they're into.