A detailed explanation of Web garden features in Win2003 _win server

Source: Internet
Author: User
What is a Web garden?
Q: IIS 6.0 has a new feature called a Web garden that allows you to configure the application pool to use multiple worker processes. When does IIS create an additional worker process? What knowledge should we know before we implement a Web garden?

A. When you create an application pool, IIS 6 is notified to create a worker process to transfer the contents of the Web sites, files, and folders that are assigned to the application pool. You can configure the application pool to start multiple rather than one worker process, which can improve scalability. This feature, called the Web garden, is a small "Web farm." Instead of using multiple computers to transfer the same content (Web farm), you can use multiple processes on one computer to deliver the same content.

When you configure an IIS 6 application as a Web garden, you only need to set the number of worker processes greater than 1 in the maximum number of worker processes box on the Performance tab of the application pool properties. If this value is greater than 1, each request starts a new worker process instance, and the maximum number of processes that can be started are the number of worker processes you specify. Subsequent requests are sent to the worker process in a circular fashion.

Web gardens are useful in situations where your application resources are limited. For example, if your connection to a database is slow, you can increase the number of connections to the database by using multiple worker processes to increase user throughput.

Although it is useful to use a Web garden in some cases, it is important to note that the session information for each worker process is unique. Because requests are routed to the application pool worker process in a circular fashion, the Web garden may have little effect on the application that the session information stores in the process.

In rare cases, having multiple worker processes running the same application can result in resource competition. For example, if all worker processes attempt to record information to a log file or use resources that are not dedicated to multiple concurrent accesses, there may be a resource contention problem.

If these problems do not exist, then the Web garden may be one of the features you need, and it will work very well.

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.