In a web Cluster, make sure that the program code files on each machine are the same. in general, the two solutions are to synchronize the uploaded code to each server through the synchronization software, that is, each machine has its own code. the second is to mount a public file storage server on each server... in a web Cluster, make sure that the program code files on each machine are the same.
There are two general solutions,
First, the synchronization software synchronizes the uploaded code to each server, that is, each server actually has its own code.
The second is to mount a public file storage server on each server.
The two solutions are obviously easy to manage.
The first possible cause is better performance because local files are directly read During website running. however, management is inconvenient. for example, if logs are recorded in a program, multiple servers have their own logs. to manage these logs, they must be merged, and they are not simply merged, the time of each log in the log files of the same name on multiple servers on the same day is different. you have to sort the logs for log analysis and management.
One method is to store logs to the server that is mounted together. this is true for the file upload service of the website.
However, there are many website Projects. programmers use different language frameworks and different log directory configurations. in this way, each program needs to manually change the log storage directory.
I prefer to use the second method, that is, to mount each web together, but is there a problem in the large clusters with dozens or even hundreds of servers,
Code files running on hundreds of web servers are mounted to one file server together?