I want to create simple CDN for my site
so let me explain what I want to do
I have a list of available server list ( my servers )
In Main servers that user upload image , I have file paths
I will get server list and copy to one (or all) of them randomly .
But the problem is here :
how can I copy file from main server to child servers ?
Replicate your files and folders using DRBD. So that any file operations in any servers will be replicated to all other servers.
Use asynchronous replication , It is suitable for replications over a long distance.