Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Successfully migrating existing databases to Azure

33 views

Published on

In this session, you will learn the difference between Azure SQL Database, SQL Managed Instances, Elastic Pools, and SQL Virtual Machines. You will learn how to use tools to test migrations for issues before you start the migration process. You will learn how to successfully migrate your database schema and data to the cloud. Finally, you will learn how to determine which performance tier is a good starting point for your existing workload(s) and how to monitor your workload overtime to make sure your users have a great experience while you save as much money as possible.

Published in: Software
  • Be the first to comment

  • Be the first to like this

Successfully migrating existing databases to Azure

  1. 1. Topics  Click to edit Master text styles • Second level • Third level − Fourth level • Fifth level Successfully migrate existing databases to Azure SQL Database John Sterrett Principal Consultant
  2. 2. Common Migration failures Plan Test Execute Manage
  3. 3. Free Reference Material Videos, ReferenceLinks,Tips, and slide deck can be found at procuresql.com/azure-migration-resources/
  4. 4. Agenda • Where Should My DataGo? • How do I plan asuccessfulmigration? • How to migrate myData? • How to leverage PaaSBenefits? • What am I responsible for PostMigration (DoesDBAJobgo away)?
  5. 5. About John Sterrett 5 john@procuresql.com @johnsterrett johnsterrett.com procuresql.com linkedin.com/in/johnsterrett
  6. 6. Three reasons people are migrating? 6
  7. 7. Cost Comparison 7 Qty Item Cost TotalCost FiveYears TenYears 2PowerEdgeR9302xE7-8893v4 (16cores) 54,224.05 $108,448.10 $21,689.62 $10,844.81 8SQL2016 Enterprise Cores(2 CorePack) 14,256.00 $114,048.00 $22,809.60 $11,404.80 Support Power $222,496.10 $44,499.22 $22,249.61 4PowerEdgeR9302xE7-8893v4 (16cores) 54,224.05 $216,896.20 $43,379.24 $21,689.62 16SQL2016 Enterprise Cores(2 CorePack) 14,256.00 $342,144.00 $68,428.80 $34,214.40 Support Power $559,040.20 $111,808.04 $55,904.02 Monthly Yearly Premium Elastic Database -eDTU250 1,398.72 $16,784.64 Support(Standard) 300.00 $3,600.00 Power $0.00 $20,384.64 Premium Elastic Database - eDTU1500 8,370.00 $100,440.00 Support (ProfessionalDirect) 1,000.00 $12,000.00 $112,440.00 P11Single Database 7,001.04 $84,012.48 Support (ProfessionalDirect) 1,000.00 $12,000.00 $96,012.48
  8. 8. Security Enhancements Firewall Secure Connections DataIn Flight DataAt Rest Audit Threat Detection
  9. 9. Azure SQL Features… Security Azure Data Sync Active Geo- Replicas Performanc e Insight Automate d Tuning Intellect Query Processing
  10. 10. • https://docs.microsoft.com/en-us/azure/sql-database/sql-database-features
  11. 11. Where Should My Data Go? Single Databas e (PaaS) Elastic Pool (PaaS) Managed Instance (PaaS) SQLVM(IaaS)
  12. 12. Pricing Models DTU/vCore [single database] eDTU/vCore [elastic pool] Hyperscale (Preview)
  13. 13. What problems does Hyperscale Solve? • What ishyperscale? • It’s anew storage architecture for cloud scaledatabases • Query engine is not changed. • Manage Very LargeDatabases (VLDBs)without the headache of VLDB’s! • Support to 100TB+sizedatabases • Restore VLDB’sin minutes not hours. (snapshots to blobstorage) • Low latency, high throughput disk I/O • Limitations asof 6/1/19? • Doesn’t support Managed Instances or ElasticPools • Migration is one way. Cannot go back without BACPAC • Video: Kevin Farlee at SQLBitson Hyperscale • BOL:Hyperscale with 100TB+ database
  14. 14. What is DTU? Image Source: Microsoft Docs
  15. 15. DTU vs vCore? Image Source: Microsoft Docs
  16. 16. vCore to DTU ratio • Each100DTU in Standard tier requires at least 1vCore inGeneral Purpose tier • Each125DTU in Premium tier requires at least 1vCore inBusiness Criticaltier
  17. 17. Pricing DTU vs vCore
  18. 18. What performance tier should we use? Dtucalculator.azurewebsites.net
  19. 19. DTU Calculator Results
  20. 20. How you should find the right performance tier
  21. 21. How do you successfully Migrate Databases? 22
  22. 22. Migrating Your Data ToAzure SQL Database +Schema Data Migration=
  23. 23. Options to Move Your Data… BACKPAC Transactional Replication DataMigration Service RestoreBackup (Managed Instance) Log Shipping/A G (VM)
  24. 24. Migrating to Azure SQL Database AssessDB (DMA) Prepare Fixes Implement Fixes Export Bacpac Import Bacpac https://azure.microsoft.com/en-us/documentation/articles/sql-database-cloud-migrate/
  25. 25. Migrate Schema with Data Migration Assistant
  26. 26. Select Tables to Move
  27. 27. Deploy with SSMS
  28. 28. Migrate with SQLPackage.exe
  29. 29. Migrate with Dbatools.io (my favorite)
  30. 30. How do I make my migration go faster?
  31. 31. Easy Guide to Quickly Migrating Data Increas e Tier CopyData Reduc e Tier
  32. 32. Migrating 60GB Database with S0 33
  33. 33. Migrating a 60gb Database to P1 34
  34. 34. Overloading during Bulk Insert 35
  35. 35. How do you manage Azure SQL Databases Today? 36
  36. 36. Biggest Database Management Mistake.. Create it and forgetit…
  37. 37. Manage Azure SQL DB Post Migration Business continuity Disaster Recovery Security and Compliance SyncData DataTransfer Monitor and Improve Performance
  38. 38. High Availability with Failover Groups
  39. 39. Azure Database Maintenance • Integrity Checks source • Backups • Restores (you control) • Point in Time • Deleted Database • GeoRestore • Index Maintenance • OlaHallengren Solution Works;-) • Statistics Maintenance • GeoReplication / Failover Groups
  40. 40. Automating Maintenance Tasks •Azure SQLAgent (Managed Instance & VMOnly) • Linked Server • PowerShell • Azure • AzureAutomation • AzureFunctions • Azure Elastic Jobs
  41. 41. Alerts
  42. 42. How do you monitor and improve performance?
  43. 43. DTU Is….. DTU =DTU Percent* DTU Limit
  44. 44. Calculating DTU ISNULL( d t u _ l imi t , 0) * (SELECT Max(v) FROM (VALUES (avg_cpu_percent), (avg_data_io_percent), ( avg_log_write_percent ) ) AS value( v) ) / 100.0 AS DTU
  45. 45. SYS.DM_DB_RESOURCE_STATS User Database Captured EveryFifteen Seconds OneHour Historical Data Idle Database hasData
  46. 46. SYS.RESOURCE_STATS Master Database EveryFive Minutes 14 DaysHistorical Data Idle databases may not haverows
  47. 47. DTU DMV Example
  48. 48. Azure Wait Stats
  49. 49. Azure SQL Database Waits IO_QUEUE_LIMIT Disk Usage LogUsage LOG_RATE_GOVERNOR CPU SOS_SCHEDULER_YIELD bit.ly/azureSQLWaits
  50. 50. Wait Statistics
  51. 51. Indexes in Azure SQL Database Automated CreateIndex Automated Drop Index Index Fragmentation Missing Indexes Index Usage Querie s Missing Indexes
  52. 52. Automated Index Tuning
  53. 53. Azure SQL Database Tuning Tools
  54. 54. Azure SQL Database Performance Tools Query Store DMVs Extended Events AzurePortal Query Performanc e Insight Auto-Tuning Index
  55. 55. Automatic Tuning
  56. 56. • FreeHelpful Content • http://azuresqldbresources.procuresql.com/ Thank you! john@procuresql.com @johnsterrett johnsterrett.com procuresql.com linkedin.com/in/johnsterrett

×