I plan to create and run my own CDN. Currently, media and other static content is being served by the web-servers which are behind a load balancer which is a waste of resources. The network structure of my web application (with the CDN) will be as follows:
- 1 load balancer node for the web servers (nginx)
- 3 web server nodes (apache, php)
- 2 database nodes (mysql)
- 1 load balancer node for the CDN (nginx)
- 3 CDN storage nodes (apache, php)
How could I transfer files to the CDN from the nodes which generate media? For example image processing after file uploads.