{"id":2953,"date":"2007-01-20T11:34:45","date_gmt":"2007-01-20T11:34:45","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2007\/01\/20\/internal-tfs-server-database-maintenance\/"},"modified":"2007-01-20T11:34:45","modified_gmt":"2007-01-20T11:34:45","slug":"internal-tfs-server-database-maintenance","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/internal-tfs-server-database-maintenance\/","title":{"rendered":"Internal TFS server database maintenance"},"content":{"rendered":"<p><p><a href=\"http:\/\/blogs.msdn.com\/bharry\">Brian<\/a> posted these answers in a comment to a question on his <a href=\"http:\/\/blogs.msdn.com\/bharry\/archive\/2007\/01\/11\/january-devdiv-tfs-dogfood-statistics.aspx\">January dogfood statistics post<\/a>.&nbsp; These may be of interest to folks out there, particularly those running larger-sized&nbsp;Team Foundation Server&nbsp;installations. <\/p>\n<p>1) What is the current size of our dogfood database?  <\/p>\n<ul>\n<li>Version control: 928G  <\/li>\n<li>Workitem tracking: 121G  <\/li>\n<li>Warehouse: 17G  <\/li>\n<li>The rest is noise.<\/li>\n<\/ul>\n<p>2) Backups\/Restores &#8211; With large databases, are there any issues with backups and\/or restores?&nbsp; How often do we run backups?&nbsp; How long do they take typically?  <\/p>\n<blockquote>\n<p>Full Databases backups (using LiteSpeed) &ndash; Every night  <\/p>\n<p>Transactional Logs backups (using LiteSpeed) &ndash; Every 15 minutes  <\/p>\n<p>For our biggest instance (DevDiv, total size a little bit over 1TB) &ndash; total full backup time for all databases is around 10-12 hours.<\/p>\n<\/blockquote>\n<p>3) Integrity Checks &#8211; Do we run periodic &#8220;integrity checks&#8221; on the database and if so, how long do they take?  <\/p>\n<blockquote>\n<p>dbcc checkdb for all databases &ndash; every weekend (total time 3-5 hours for all databases)<\/p>\n<\/blockquote>\n<p>4) Index Regeneration &#8211; Do we run periodic &#8220;index regeneration&#8221; on the database and if so, how long does it take?  <\/p>\n<blockquote>\n<p>Index defragmentation &ndash; every weekend (total time 2-3 hours for all databases)<\/p>\n<p>Full index rebuilds have gotten very long and can&#8217;t be done online so we are looking at partitioning some of our largest tables to make that infrequent maintainence operation less disruptive.<\/p>\n<\/blockquote>\n<p>tags: <a href=\"http:\/\/technorati.com\/tag\/tfs\" rel=\"tag\">tfs<\/a>, <a href=\"http:\/\/technorati.com\/tag\/team+foundation+server\" rel=\"tag\">team foundation server<\/a>, <a href=\"http:\/\/technorati.com\/tag\/database\" rel=\"tag\">database<\/a><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brian posted these answers in a comment to a question on his January dogfood statistics post.&nbsp; These may be of interest to folks out there, particularly those running larger-sized&nbsp;Team Foundation Server&nbsp;installations. 1) What is the current size of our dogfood database? Version control: 928G Workitem tracking: 121G Warehouse: 17G The rest is noise. 2) Backups\/Restores [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[8],"class_list":["post-2953","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>Brian posted these answers in a comment to a question on his January dogfood statistics post.&nbsp; These may be of interest to folks out there, particularly those running larger-sized&nbsp;Team Foundation Server&nbsp;installations. 1) What is the current size of our dogfood database? Version control: 928G Workitem tracking: 121G Warehouse: 17G The rest is noise. 2) Backups\/Restores [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=2953"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2953\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=2953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=2953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=2953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}