In web clusters, program files are synchronized and mounted.

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.