Upgrading Search in TFS 2018 Update 3

In TFS 2018 Update 2 and 3, Elasticsearch support was updated to ES 5.4.1. If you are upgrading from any earlier version of TFS, a Search re-indexing will be required. TFS 2018 Update 3 also introduced basic auth support for connecting to Elasticsearch. To sum up the matrix – Pre-TFS 2018 Update 2  -> TFS…

3

Migrating Search cluster in Team Foundation Server

Migrating the Elastic search (ES) cluster to a new machine can come as a requirement for different reasons – AT scale out – The TFS Admin could have initially setup a single AT  with a local ES instance in the same machine and now wants to scale out TFS by adding new load balancer ATs….

1

Mitigating Shard corruption in Elasticsearch

Recently while troubleshooting one of the customer issues for Search in Team Foundation Server, we observed that the Elasticsearch (ES) cluster was consistently going into RED state even on a clean new install and start. The ES version that is packaged with TFS 2017 Update 2 is 2.4.1. (Note that it’s a customized version with some…

0

Resetting Search Index in Team Foundation Server

Search indexing for entities (Code, Work Item, WIKI) works in 2 phases: Bulk Indexing (BI) where the entire code and work item artifacts in all projects/repositories under a Collection are indexed. This is a time consuming operation and depends on the size of the artifacts under the collection. Continuous Indexing (CI) which handles all incremental…

0

Resolving Code Search failure in TFS 2017 Update 2 due to large HTTP url

Please refer to the parent post here for context: https://blogs.msdn.microsoft.com/tapas_sahoos_blog/2017/09/11/analyzing-search-in-microsoft-team-foundation-server/ Code Search in Team Foundation Server (TFS) 2017 Update 2 has a known issue wherein you could encounter Search query failure on collections having large number of repositories (in the order of more than 100). The issue was traced to a HTTP url of the Elasticsearch…

0

Fixing incorrect mapping/aliases for Search Index in Team Foundation Server

Please refer to the parent post here for context: https://blogs.msdn.microsoft.com/tapas_sahoos_blog/2017/09/11/analyzing-search-in-microsoft-team-foundation-server/ In certain scenarios, especially if you have done some manual updates around the Search index data folder, deleted the data, tried to re-index through scripts and/or done any of the above post an upgrade, chances are if the sequence of steps aren’t accurate (I will cover…

0