The search-component of SharePoint 2010 is one of the central ones and needs individual adaption after installation. When not individualizing the search, all components of the “search topology” will be installed on one server. Microsoft recommends distributing these components across servers to guarantee a load sharing and reliability.
With small to medium SharePoint farms the following servers are frequently existent.
Index
SharePoint Search – Server Infrastructure Overview
The graphic shows a typical server infrastructure for SharePoint 2010.
The Sharepoint search elements
Generally the search can be divided into three parts: Crawl, index and query.
Crawl prepares the results by reading data contents and writes them (e.g. root word detection) into the index database. When a user uses the search function, the result is produced by the query-component with help of the index and the search databases. For that the query server is the interface of a search request to the index. Here, the requests are prepared and it is checked for example if the user at least has read-authorization on the document.
Distribution of the Sharepoint search components
The components of the search should “ideally” be distributed on the servers as follows:
The most important SharePoint search component crawl is to be installed on the “App”-server. This is a mandatory requirement to be able to create the index. Because crawl generates a high CPU load, the “App” server should be equipped with respective CPUs. Should crawl take too much time or generate a load to high on the “App” server, an additional server should be integrated into the farm. The load will then automatically be divided by the crawl components and prevent one file from being processed simultaneously by more than one component.
The administration-component is provided on the “App” server as well. It can only be provided on one server per “Search Service Application”.
The index is set up by the crawl component. It is recommended to distribute the index including the query component on at least two servers to reduce the index’ size and guarantee its reliability.
WFE1 = Index Partition 0 – Query Component | Index Partition 1 – Query Component (“Mirror”)
WFE2 = Index Partition 1 – Query Component | Index Partition 0 – Query Component (“Mirror”)
How to: Add an Index Partition
How to: Add a Query component
For the query topology I created the following PowerShell script in a current project.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
Add-PSSnapin Microsoft.SharePoint.PowerShell -ea SilentlyContinue $<strong>searchSA </strong> = "SearchService" $<strong>searchPropertyDBName</strong> = "SearchService_PropertyStoreDB" $<strong>searchPropertyDBServer</strong> = "SQLSERVER.DOMAIN.COM" $<strong>indexLocation</strong> = "C:\Program Files\Microsoft Office Servers\14.0\Data\Office Server\Applications" $<strong>queryServer1</strong> = Get-SPEnterpriseSearchServiceInstance "WFE1" $<strong>queryServer2</strong> = Get-SPEnterpriseSearchServiceInstance "WFE2" $<strong>queryTopology</strong> = New-SPEnterpriseSearchQueryTopology -SearchApplication $searchSA -Partitions 2 $<strong>propertyDatabase</strong> = New-SPEnterpriseSearchPropertyDatabase -SearchApplication $searchSA -DatabaseName $searchPropertyDBName -DatabaseServer $searchPropertyDBServer $<strong>indexPartitions</strong> = Get-SPEnterpriseSearchIndexPartition -QueryTopology $queryTopology $<strong>indexPartition1</strong> = $indexPartitions[0] $indexPartition1 | Set-SPEnterpriseSearchIndexPartition -PropertyDatabase $propertyDatabase $<strong>indexPartition2</strong> = $indexPartitions[1] $indexPartition2 | Set-SPEnterpriseSearchIndexPartition -PropertyDatabase $propertyDatabase Get-SPEnterpriseSearchQueryComponent -QueryTopology $queryTopology $<strong>queryComponent1</strong> = New-SPEnterpriseSearchQuerycomponent -QueryTopology $queryTopology -IndexPartition $indexPartition1 -SearchServiceInstance $queryServer1 $<strong>queryComponent2</strong> = New-SPEnterpriseSearchQuerycomponent -QueryTopology $queryTopology -IndexPartition $indexPartition2 -SearchServiceInstance $queryServer2 $<strong>mirrorQueryComponent1</strong> = New-SPEnterpriseSearchQuerycomponent -QueryTopology $queryTopology -IndexPartition $indexPartition2 -SearchServiceInstance $queryServer1 $<strong>mirrorqueryComponent2</strong> = New-SPEnterpriseSearchQuerycomponent -QueryTopology $queryTopology -IndexPartition $indexPartition1 -SearchServiceInstance $queryServer2 $queryTopology | Set-SPEnterpriseSearchQueryTopology -Active |
Leave a Reply
<p>Your email is safe with us.<br/>Information about our <a href="https://activedirectoryfaq.com/contact-us/">data protection policies</a></p>