How does MediaCMS encoding works when using multiple servers? #851
Replies: 1 comment 5 replies
-
Hi, I'd like to see more details about this setup, as I have not used it myself (I have mostly been hosting everything in a single server). Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Hello everyone.
I am using mediacms on AWS. My infrastructure uses a RDS database and 2 EC2 Ubuntu instances as servers, lets call they as server A and server B. The media_files folder are shared between these 2 server using s3fs.
The idea of server B is to receive the specific traffic to upload and media enconding, while server A does the rest of the job.
So my LoadBalancer is configured to send all POST traffic coming from the routes /fu/upload/*, /fu/upload, /fu/upload/, /upload to server B, and all other to server A.
When I access by browser it seems to be ok. The upload was going as expected, but when I see the realtime CPU usage afeter the upload both of them are in 100%. It is seems both are encoding the video and this is the focus of my doubt.
In this case is really both processing as a shared task and speeding up the encoding process or they are doing the same job and wasting resources?
And it there a way to make only server B to encode the video and let server A alone to do other jobs?
Thanks to all.
Beta Was this translation helpful? Give feedback.
All reactions