1k likes | 1.61k Views
DEV209 Successfully Administering and Running Team Foundation Server 2010 . i.e. I know how to install a TFS 2005/2008/2010!. Survival strategies for the part-time TFS Administrator. Neno Loje MVP & MCTS for Visual Studio ALM/TFS TeamSystemPro. Slide 1 / 100 | avg. 36 seconds/slide.
E N D
DEV209Successfully Administering and Running Team Foundation Server 2010 i.e. I know how to install a TFS 2005/2008/2010! Survival strategies for the part-time TFS Administrator Neno Loje MVP & MCTS for Visual Studio ALM/TFS TeamSystemPro Slide 1 / 100 | avg. 36 seconds/slide
Session GoalsWhat this talk is about • What is covered? • Everything you need to set up and manage a Team Foundation Server environment • Upgrading from TFS 2005/2008 to TFS 2010 • What is not covered? • How to use/work with TFS (e.g. version control) • Upgrading from VSS/other systems to TFS 2010 • Prerequisites • You should be familiar with the basic concepts of TFS(like Team Projects, Work Items, Areas, and Iterations)
Who is the TFS Administrator? • IT department ("IT Admin") • Hardware, Backup/Restore, Windows Updates • Development Team ("TFS Admin") • Person of charge • Creation of Team Projects • Granting Permissions • Consulting other team members while using TFS
Abbreviations used in this talk • TFS = Team Foundation Server • TWA = Team Web Access (formerly Team System Web Access) • TFPT = Team Foundation (Server) Power Tools • SQL = SQL Server • SSRS = SQL Server Reporting Services • SSAS = SQL Server Analysis Services • WSS = Windows SharePoint Services (3.0 +)
Setting up a TFS instance Even for those who installed it already…
Simplified Setup • Requires minimal inputs • Reduction of pre-requisites(aka "TFS Basic") • Ability to script setup • Logs at your fingertips • Application tier (AT)supported on 64-bit
Administrative User Interface • Separate admin console • UI for common tasks • Change service accounts • Configure data tier • Configure SSL • Add /change SharePoint • Configure reporting/analysis services • Configure Team System Web Access • Manage project collections • Access log files
Enterprise TFS Management (ETM) • Team Project Collection • Contains team projects • Portable across TFS instances • Can backup/restore in isolation • Scale out application tier • Load balancing • Redundancy
Team Project Collections (TPC) • New concept • 1 TPC = 1 SQL database • After upgrading from TFS 2005/2008 all team projects will be placed in a single collection • Many things are not managed on the collection level (not TFS-level) • TPCs are isolated • No Work Item Queries, no Branching & Merging between them • Unique Work Item and Changeset IDs, separate Build Controllers • But: Single cube, data warehouse, SSRS server for all TPCs • In Team Explorer you now connect to a TPC (not TFS)
Team Project Collections (TPC)Working with Collections • Supported operations • Create • Attach/Detach – move to other server or split a collection • Stop/Resume – if you want to do maintenance work on that file • If the Detach process "hangs" • Try IISRESET
Team Project Collections (TPC)Benefits • Enabled scenarios • Backup/Restore single TPCs, rather than whole TFS • Move a TPC to other server for scalability reasons • Hand-over a TPCs to a customer
Data Tier • SQL Server databases: • TFS_ConfigurationStores the catalog of resources, the configuration information and the operational stores for TFS • TFS_WarehouseStores the data for reports. • TFS_AnalysisStores the aggregated data from team project collections • Databases for team project collectionsEach team project collection has its own database, where data is stored for all team projects in the collection.
Team Project Collections (TPC)How to migrate to the new collections • After upgrade • All team projects get upgraded into a single team project collection • You can split your team projects into TPCs • By using the clone command (detach/attach) you can move team projects to a new TPC • Note: only to a new, not an existing TPC
Enterprise TFS Management (ETM) TFS Cluster Team Project Collection VIP Application Tiers Data Tiers Team Project 1 Team Project 2 Team Project 3 NLB Application DB Team Project 4 Team Project 5 Team Project 6 Team Project 7
Things to do now; things to do later • Things to do now • Hardware/Software • Authentication • Team Project Strategy • Set up a Build process • Things that can be done/changed later • Hardware/Software • Source Control Structure • Iteration and Area Planning • Methodology (partly) For more information:Please refer to slides and video recording of session DPR203
Hardware Recommendations • It really depends! • Every brand-new server hardware will do • Always a good idea • Increasing the amount of RAM • Hard drive performance is crucial(fast hard drives are good, RAID arrays better) • Splitting TFS and SQL on two machines (dual-core configuration) is best for scalability • Network bandwidth >= 1 mbps / < 350ms latency • Virtualization technologies (Hyper-V, VMware, …) • A separate Build Server is heavily recommended
Hardware RequirementsOfficial Recommendation as published by Microsoft Source: Team Foundation Installation Guide for Visual Studio 2010 http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=2d531219-2c39-4c69-88ef-f5ae6ac18c9f
TFS Licensing Basics • 1 x License for Team Foundation Server • 1 x TFS Client Access License (CAL) per named user or device
TFS Licensing Basics • 1 x License for Team Foundation Server • 1 x TFS Client Access License (CAL) per named user or device • Exception #1: If you have a Visual Studio 2010 with MSDN subscription, you already own 1 x TFS license + 1 x TFS CAL.
TFS Licensing Basics • 1 x License for Team Foundation Server • 1 x TFS Client Access License (CAL) per named user or device • Exception #1: If you have a Visual Studio 2010 with MSDN subscription, you already own 1 x TFS license + 1 x TFS CAL. • Exception #2: To create and view work items (only the ones you create!) you don't need a CAL (within your company).
TFS Licensing Basics • 1 x License for Team Foundation Server • Unlimited build servers included • Any TFS Proxy needs additional TFS license • 1 x TFS Client Access License (CAL) per named user or device • Exception #1: If you have a Visual Studio 2010 with MSDN subscription, you already own 1 x TFS license + 1 x TFS CAL. • Exception #2: To create and view work items (only the ones you create!) you don't need a CAL (within your company).
TFS Licensing Basics • 1 x License for Team Foundation Server • Unlimited build servers included • Any TFS Proxy needs additional TFS license • 1 x TFS Client Access License (CAL) per named user or device • Exception #1: If you have a Visual Studio 2010 with MSDN subscription, you already own 1 x TFS license + 1 x TFS CAL. • Exception #2: To create and view work items (only the ones you create!) you don't need a CAL (within your company).
Authentication • Where to store… • … users? • Active Directory or local users on TFS computer • … group membership? • Active Directory or local groups on TFS computer • … the permissions those groups will get? • in Team Foundation Server • Active Directory is recommended!
Set up a build process early! • Several reports and metrics require a build process (with or without tests) as input • The sooner you set up a build, the better! • You want a separate server for this
Virtualization and TFS • Should I run TFS in a virtual environment? • Yes! (recommended) • Why? • Snapshot support* • Faster Disaster recovery • Good to know • SQL Server is supported in virtual configurationshttp://support.microsoft.com/kb/956893/en-us(* be aware: no support for VM snapshots)
Virtualization Options • Option 1 (1 VM) • VM #1: TFS, SQL, SSAS, SSRS, WSS • Option 2 (2 VMs) • VM #1: SQL, SSAS • VM #2: TFS, SSRS, WSS • Option 3 (Host + 1 VM) • Same as Option 2, but #1 installed on the host • This is the configuration we use for hosting(combines advantages of virtualization + performance)
64-bit Support for TFS • Should you use/switch to the 64-bit version of TFS? • Yes.
TFS 2010 Scalability Options • TFS (Single-Server) too slow? Dual-Serverhttp://msdn.microsoft.com/en-us/library/ms404854.aspx • TFS (Dual-Server) too slow? Scale-up! • SQL Logs are huge? Read me other slide. • Perf. issues with OLAP queries? Move SSAS • Perf. issues with SQL Reports? Move SSRS • Perf. issues with Project Portals? Move MOSS • Perf. issues with remote location? TFS Proxy • Perf. issues with Build server? TFS Proxy, Optimize (e.g. incremental GET) • Perf. issues with Web Access Add another TFS App Tier (NLB) Source: http://msmvps.com/blogs/vstsblog/archive/2008/07/09/your-tfs-user-base-is-growing-scale-up-or-out.aspx
Localized Versions of TFS • I recommend using the English version of TFS • Reasons • Vocabulary used in books and the web is English • Some translations make me sad(some original English messages as well) • TFS Power Tools are available in English only • Incompatibility with some process templates/tools/fixes • You cannot change the language afterwards • You can still have a localized Visual Studio & Team Explorer!
TFS 2010 Installation MediaDon't get the wrong one… • The TFS media (.iso file) was re-released in August 2010 • Get it from MSDN Subscriber Downloads • It contains a critical hotfix for TFS upgrade Wrong version (do not use) Correct version Source: http://blogs.msdn.com/b/bharry/archive/2010/08/05/update-on-the-tfs-upgrade-fix.aspx
Installation • Make sure you have the latest version of the TFS media • Follow the latest TFS Installation Guide http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=2d531219-2c39-4c69-88ef-f5ae6ac18c9f • Make sure the server name has no underscore http://msmvps.com/blogs/vstsblog/archive/2009/01/11/be-aware-don-t-use-underscores-in-server-names.aspx • Or: Call your local TFS partner.
Installation Verification • How can I verify TFS is setup up correctly? • Try to create a new Team Project • Run TFS Best Practices Analyzer (BPA) from TFPT • Process the Cube(using the TFS Admin Console)
Congratulations! • TFS is now installed successfully. • Is it ready to be used? • Sadly: No! • Let's begin with:Post-Installation Configuration
Windows Server 2008 and higher • You are likely to hit this issue • Assumption • You have all admin rights possible • But… • Can't create a new team project(you are missing permissions the message says!) • Documents and Reports in TE show a red X • You can access http://<server>/Reports just fine • Solution • http://support.microsoft.com/kb/896861/en-us
IIS Recycling Times • By default, IIS application pools get "recycled" at an interval of all 1740 minutes • Better: Specify a fixed time (for each app pool) • SharePoint does that by default