Web-Garden and Web-Farm
- Web garden
- A Web garden is configured on a single server using multiple processors.
-
Web garden is configured throw the process model element in the machine.config.
- The cpuMask attributes is used to specifies which processors are eligible to run ASP.NET processes.
- The cpuMask value specifies a bit pattern that indicates the CPUs eligible to run ASP.NET threads. For example, the cpuMask hexadecimal value 0x0d represents the bit pattern 1101. On a computer with four CPUs, this indicates that ASP.NET processes can be scheduled on CPUs 0, 2, and 3, but not on CPU 1. ASP.NET launches one worker process for each eligible CPU.
- Web gardens enable the use of multiple processes, each process will have its own copy of application state, in-process session state, caches, and static data.
- Web gardens should not be used for all applications, especially if they need to maintain state.
- Web farm
Web farms use multiple servers for a Web site.