Charley Hanania ::QS2AG–QualitySoftware SolutionsB.Sc(Computing),MCP,MCDBA,MCITP,MCTS,MCT,MicrosoftMVP:SQLServerPrincipalC...
About Charley HananiaNow:Microsoft MVP: SQL ServerDatabase Consultant at QS2 AGFormerly:Production Product Owner of MS SQL...
Presentation SummaryDBAs will give you reasons and methods for achieving database availabilityfor your application, but no...
Design Patterns by any Other Name…
Design Patterns are template-like methodologies.Focussed on particular goals.Architect-level focussed, but with follow-oni...
Evolutionary Growth of Features and FunctionsIndustry “norms” in Using Databases
Logically Partitioning your DB for Performance
Logically Partitioning your DB for PerformancePerformance-related issues:Disk I/O is the one most critical element to impr...
Logically Partitioning your DB for PerformanceResolutions:Creating additional files and filegroups helps to isolatewhere t...
Step 2 - Filegroup SeparationSeparating out objects into filegroups forisolation, placing them according to granularperfor...
Logically Partitioning your DB for Availability
Logically Partitioning your DB for AvailabilityMajor Points to availability when focussed on LogicalPartitioningTime taken...
Step 3 – Partial Database AvailabilityWhat happens when a file or disk goes offline? How areother running subsystems affec...
Links and ResourcesAdventureWorks Database Diagramhttp://www.microsoft.com/downloads/details.aspx?FamilyID=0f6e0bcf-a1b5-4...
Upcoming SlideShare
Loading in …5
×

Pass chapter meeting - november - partitioning for database availability - charley hanania

416 views
360 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
416
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Pass chapter meeting - november - partitioning for database availability - charley hanania

  1. 1. Charley Hanania ::QS2AG–QualitySoftware SolutionsB.Sc(Computing),MCP,MCDBA,MCITP,MCTS,MCT,MicrosoftMVP:SQLServerPrincipalConsultant-SeniorDatabaseSpecialistPartitioning for Database Availability
  2. 2. About Charley HananiaNow:Microsoft MVP: SQL ServerDatabase Consultant at QS2 AGFormerly:Production Product Owner of MS SQL Server Platform at UBS Investment BankConsultantDB Team Leader at Other BanksITIL v3 CertifiedSQL Server Certified since 1998On SQL Server since 1995Version 4 on OS/2IT Professional since 1992PASSChapter Leader – SwitzerlandRegional Mentor – Europe24 Hours of PASS Committee MemberEvent Speaker
  3. 3. Presentation SummaryDBAs will give you reasons and methods for achieving database availabilityfor your application, but not many can broach the concept of keeping partsof your application running during an outage from the developmentperspective through partitioning your application database logicallyinto levels of criticality.Adding this logical Layer to your database design and development allowsyou to bring your core application functionality online faster andmore simply during failures and in disaster scenarios decide whichareas of your application should come online first to maintain basicapplication operations. It also allows you to place your data better tocater for space and performance for an overall better performing system.This presentation will drill into this conceptually as well as provide someexamples you can take back to the workplace to incorporate into your nextevolutionary changes.
  4. 4. Design Patterns by any Other Name…
  5. 5. Design Patterns are template-like methodologies.Focussed on particular goals.Architect-level focussed, but with follow-onimplementation considerations.Design Patterns by any Other Name…
  6. 6. Evolutionary Growth of Features and FunctionsIndustry “norms” in Using Databases
  7. 7. Logically Partitioning your DB for Performance
  8. 8. Logically Partitioning your DB for PerformancePerformance-related issues:Disk I/O is the one most critical element to improvingperformance for data intensive workloads.When data objects are created in the default filegroupthey share space and allocate more as needed.Extent fragmentation occurs as data from objects withdiffering “personalities” are persisted.Hotspots can occur on system pages that track theallocation and use of pages in the file.Read-ahead is affected as the data you’re retrieving isnot laid out contiguously.
  9. 9. Logically Partitioning your DB for PerformanceResolutions:Creating additional files and filegroups helps to isolatewhere the objects are written to and lowersfragmentation.System pages are spread out per file, lowering contention.With Trace Flag 1117 and correct sizing of your datafiles, “Round-Robin” writes are possible, giving higherthroughput on insert intensive workloads.*Performance Critical data can be placed on LUNS/DiskArrays that have more spindles (eg RAID 1+0 mirrored)or on mirrored Solid State Drives. Conversely, archivedata can be placed on inexpensive (eg. slower) disks.*Note: Recommendation valid for systems that have >1 CPU/Core and >1 Disk Spindleotherwise zero or detrimental performance may be experienced. Test First!
  10. 10. Step 2 - Filegroup SeparationSeparating out objects into filegroups forisolation, placing them according to granularperformance needs.
  11. 11. Logically Partitioning your DB for Availability
  12. 12. Logically Partitioning your DB for AvailabilityMajor Points to availability when focussed on LogicalPartitioningTime taken to open the database on restart, to starttaking connections.Decreasing the size of the backup to restore throughdifferential backups of read/write filegroups.Partial Database availability: a file/disk can go offlinewithout it affected unrelated objects in the samedatabaseIf architected/implemented correctly, most subsystemscan run unaffected until non peak period for outageManagement & Operations staff can decide whichfilegroups & subsystems to bring online first whenrecovering from disaster.
  13. 13. Step 3 – Partial Database AvailabilityWhat happens when a file or disk goes offline? How areother running subsystems affected?
  14. 14. Links and ResourcesAdventureWorks Database Diagramhttp://www.microsoft.com/downloads/details.aspx?FamilyID=0f6e0bcf-a1b5-4760-8d79-67970f93d5ff&DisplayLang=enWhitepaper: “Partial Database Availability” (Danny Tambs, May 2007)http://technet.microsoft.comWhitepaper: “Partitioned Table and Index Strategies Using SQL Server 2008” (RonTalmage, March 2009)http://technet.microsoft.comKimberly Tripp’s Scripts for Creating and Partitioning SalesDBwww.sqlskills.comAllen White’s Service Broker Session at the PASS Summit 2011www.sqlpass.org

×