There is no master-slave server for load balancing. If you are on a 'one' server, the user uploads the file
When nginx switches to Server ‘two’ next time, server 'two' will not have any uploaded files, which will make users feel that the uploaded files are lost. How to solve this problem of file synchronization?
For the time being, the idea is to use a file detection tool in a third-party directory, such as rsync, to synchronize files. However, this is more complicated. Is there an easier way?
With two servers deployed, the volumes on each server are configured as follows:
There is no master-slave server for load balancing. If you are on a 'one' server, the user uploads the file
When nginx switches to Server ‘two’ next time, server 'two' will not have any uploaded files, which will make users feel that the uploaded files are lost. How to solve this problem of file synchronization?
For the time being, the idea is to use a file detection tool in a third-party directory, such as rsync, to synchronize files. However, this is more complicated. Is there an easier way?