Web Garden

Web Garden is another concept introduced in IIS 6.0, in IIS 7.0, this concept is still valid. Using this concept, you can use multiple worker processes to deal with the same application pool.

Web Garden can effectively improve system performance, and has the following advantages:

(1) When a worker process as something to focus on treatment and other processing tasks can not be completed, other work processes are still able to process new requests.

(2) reduce the contention of resources. During normal operation, each new page request is assigned to a process group work process, when assigned, we use polling to complete assigned work. So it can make the workload work process as smooth as possible.

Because a separate application always run after the carrier is divided into a plurality of processes, therefore, an application to share content must be kept out of the process. For example, in a Web garden, the in-process session state is unable to work because of the presence of multiple copies of session state in a Web garden, each process can write and read a session state, and stores the session state stored in a different area of ​​the session state.

Some Web applications more suitable for Web Garden. The following are best practice guidelines using a Web Garden of:

(1) Web applications should not be a need to consume large amounts of CPU resources applications, because, so a need to consume a lot of CPU page requests with a first visit to page requests competing for CPU resources, will only lead to a lose-lose.

(2) If an application synchronization delay is relatively high, then this application is more suitable for Web Garden. For example, if an application calls a Web service or access a remote database, which slows down system, then use Web Garden, we can wait for the process to complete the application process for a long time to perform the work, the processing other requests.

(3) Each process in memory burden, the need for additional time overhead when starting, if too many such processes, so it is easy to run out of resources a server.

Although there are some common features Web Garden and Web farm, however, Web Garden and Web farm is a completely different concept. Web Garden is composed of multiple processes running on one server in the composition of these processes for handling the same application pool; and Web farm is composed of multiple servers, these servers can work together to provide high availability and better scalability.

Guess you like

Origin blog.51cto.com/2612012/2406044