I currently have 5 servers. 1 server is used as the main server which holds all the video files, the other 4 are replicated and fetches videos from the main server using rsync. Videos are delivered through HTTP via nginx pseudo streaming.
What I would want to ask is if there are better approach on this? Would it be better if 1 specific server only holds that file? eg: file1.mp4 will not be replicated across all the servers and would remain only on one server? Would this approach lessen the IO load?
Because right now, viewers are randomly forwarded to any of those servers when viewing a video. Since all those servers holds the same files, I assume it takes time to seek because there are nearly 13,000 videos for each of them.
Also, are there tweaks to TCPIP/sysconf to optimize this video service?
Server config:
- All servers are configured with raid 10 4x2TB 12GB memory.
- 1GBPS unmetered (100tb.com)
- CentOS
- Nginx Pseudo Streaming