Multiple Arr Server usage
Overview
This article introducesArrUsed in server and host name affinity scenariosMicrosoft external cache.
External cacheThe module is required only in the following situations:
1.Enabled host name affinity
2.There are multipleArrServer
External cacheIs a disk-based Cache module.
Target
InArrConfiguration and useMicrosoft external cache:
Prerequisites
The following conditions are required for this demonstration:
LAt least2InstallationIis7OfWindows2008,Or later
LMicrosoft arrAnd associated modules
LAt least2Workstations and ApplicationsProgramApplication Server
LAArrFile Sharing
Procedure1-EnableExternal cache
1.OpenIISManager
2.SelectServer farm(^-^)
3.Shown as follows:
A)
4.Double-clickServer affinity (Server affinity)
5.As described above,External cacheOnly when the host name affinity is used and multiple hosts are involvedArrServer. Make sure thatUse Host NameCheck box is selected:
A)
6.InServer affinityAt the bottom of the page, selectUse external cacheCheck box to enableExternal cache.File Share pathThe text box is mandatory and you must specify allArrShared path that can be accessed by the server:
A)
7.Repeat the preceding stepsArrMake the same settings on the server
8.To determine whether this feature works, you need to send a request toArrServer (by entering a host name ). Write down which application server the request is compatible. Send the same request to anotherArrServer. No matter which serverArrThe server will route requests that process the host name to the same application server.
9.You can also confirm whether the data has been written in the sharing.
Use command line to enableExternal cache:
1.ToAdministratorIdentity to open the command line
2.Navigate% Windir % \ system32 \ inetsrv
3.To enable host name affinity, enter:
A)Appcmd.exe set config-Section: webfarms/[name = 'myserverarm']. applicationrequestrouting. affinity. UseHostName: "true"/commit: apphost
4.Enable and configureExternal cache, Enter:
) appcmd.exe set config-Section: system. webserver/externalcache/diskcache/[name = 'arcache']. path: "\ wonyoo-w2k8-3 \ iisshared"/[name = 'arcache']. username: "Redmond \ wonyoo"/[name = 'arcache']. password: "*********"/commit: apphost