r/DistributedComputing • u/Odd-Falcon-8234 • Apr 04 '23
Load balancing, monitoring and fault tolerance techniques and architecture
I am working on building a system where there are 10 machines, we want to process some video files and this process can take about an hour, we do know how look it will take to process in advance.
Is there some existing tech stack or methodologies that we can use to load balance these servers, monitor any failures while processing and recover from failure and restart that task ?
2
Upvotes
View all comments
Show parent comment
1
u/flavius-as Apr 05 '23
Small but important detail: SELECT FOR UPDATE
also in terms of load balancing, if you use haproxy, you can script your own strategy to decide how busy each of the 10 machines is. Since you know how long any job will take, and you can benchmark how much each machine can handle in parallel, you have all the data.