High Friction & Control Resources Dedicated Shared Low 100% of API, Virtualized Roll-your-own HA/DR/scale SQL Server in IaaS Virtualized Machine SQL.

Slides:



Advertisements
Similar presentations
A Ridiculously Easy & Seriously Powerful SQL Cloud Database Itamar Haber AVP Ops & Solutions.
Advertisements

Database Throughput Unit – DTU Monitoring % of current Performance Level Utilization 75% Read 50% Write CPU 60% Memory (coming) Compute Writes.
SQL Server AlwaysOn.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
w/ Service Provider Foundation & Service Management Automation VMs, Networks, Automation Service Bus Database SQL Sever MySQL Web Sites Services Plans.
ScenarioDescription/ExampleTime HorizonData Size AlertingDetecting and Mitigating ProblemsNowSmall to Large DashboardsService InsightNow-RecentModest.
B Transactions per hour Transactions per minute Transactions per second RTO
Low Control | Low Maintenance Shared Lower cost Dedicated Higher cost High Control | High Maintenance Hybrid On premises Off premises SQL Server Physical.
 Built for SaaS and enterprise applications  Elastic database model for unpredictable workloads  99.99% availability with global reach  Geo-replication.
SQL Server AlwaysOn: Active Secondaries Luis Vargas Program Manager Microsoft Corporation DBI312.
Business Continuity Solutions for SQL Database* applications on Windows Azure Alexander (Sasha) Nosov Principal Program Manager Microsoft.
Chapter 2 Administrating DB Engine. Database Engine  The Database Engine is the core service for storing, processing, and securing data.  It provides.
Manage & Configure SQL Database on the Cloud Haishi Bai Technical Evangelist Microsoft.
XVII Encontro – 29/11/2011. Virgílio Esteves ID&T – Research & Founder of NetPonto Coimbra C# / WPF / Silverlight / XNA / Azure.
CONTROL COST-EFFICIENCY SharePoint (On-premises) SharePoint Value Prop Full h/w control – size/scale Roll-your-own HA/DR/scale Value Prop 100% of.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Guy BowermanMadhan Arumugam DBI208.
Windows Azure Conference 2014 Windows Azure SQL Database - Migration and Optimization.
It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in It is a High Availability as well as Disaster recovery.
Sofia, Bulgaria | 9-10 October SQL Server 2005 High Availability for developers Vladimir Tchalkov Crossroad Ltd. Vladimir Tchalkov Crossroad Ltd.
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Steven Wort, Xin Jin Microsoft Corporation.
Databases Lesson 5.
Unified solution Easy to configure, manage, and monitor Reuse existing investments SAN/DAS environments Allow using HA hardware resources Fast seamless.
Introduktion till Azure SQL Database Robert Folkesson Active Solution.
Martin Cairney Hybrid data platform – making the most of Azure plus your on- prem kit DAT341 B.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
+1 (425) Business Continuity Solutions for SQL Database* applications in Windows Azure Alexander (Sasha) Nosov Principal Program Manager Microsoft.
Data Disaster Recovery Planning Greg Fibiger 1/7/2016.
Windows Azure Overview for IT Pros Anton Boyko. Intro to Cloud Computing Intro to Windows Azure Cloud Services Web Sites Virtual Machines Workload Options.
SQL Server 2012 Session: 1 Session: 4 SQL Azure Data Management Using Microsoft SQL Server.
Miss a User Group meeting? Forget something that you learned? Want to see content from a User Group not in your area? Want to share with a buddy? We.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Narasimha Reddy Gopu Jisha J. Agenda Introduction to AlwaysOn * AlwaysOn Availability Groups (AG) & Listener * AlwaysOn Failover * AlwaysOn Active Secondaries.
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
Deploying Highly Available SQL Server in Windows Azure A Presentation and Demonstration by Microsoft Cluster MVP David Bermingham.
Scope - Goals AB Report Server database (DB) is what exactly? In Native mode the DB is actually 2 SQL Server DBs. In SharePoint mode it is a set of 3.
Azure SQL Database Lori Clark SQL Saturday 10/17/2015.
AlwaysOn In SQL Server 2012 Fadi Abdulwahab – SharePoint Administrator - 4/2013
FUN WITH AVAILABILITY GROUPS Christopher Wolff SQL Server Database Engineer, Xero.
Azure SQL Database Nigel Ellis, Distinguished Engineer, Microsoft Data Platform Group February 2015.
Microsoft Dynamics NAV Dynamics NAV 2016 one Azure SQL Dmitry Chadayev Microsoft.
AZURE PRIMED Randy Pagels Sr. Developer Technology Specialist DX US Team –
High Availability & Disaster Recovery with SQL Server AlwaysOn Availability Groups Turgay Sahtiyan Microsoft – Senior SQL Server PFE
Managing a database environment in the cloud
Backups for Azure SQL Databases and SQL Server instances running on Azure Virtual Machines Session on backup to Azure feature (manual and managed) in SQL.
Use relational database as a service
State of Azure SQL Database
Turgay Sahtiyan Istanbul, Turkey
Sponsors.
How to tune your applications before moving your database to Microsoft Azure SQL Database (MASD) OK, you've jumped into your Azure journey by creating.
Lead SQL BankofAmerica Blog: SQLHarry.com
Elastic database patterns for SaaS applications in Azure
Example of a page header
04 – Azure SQL Database Bret Stateham | Senior Technical Evangelist​
Contained DB? Did it do something wrong?
SQL Azure Database – High Availability
Optimizing Microsoft SQL Server 2008 Applications Using Table Valued Parameters, XML, and MERGE
Microsoft Azure Fundamentals: Data Understanding Microsoft Azure SQL
TechEd /2/2018 7:42 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /14/2019 1:34 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Azure SQL Database Service Tiers
5 Azure Services Every .NET Developer Needs to Know
Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions
ZORAN BARAC DATA ARCHITECT at CIN7
Azure SQL Database for Business Critical Cloud Applications
06 | SQL Server and the Cloud
Designing Database Solutions for SQL Server
The Database World of Azure
Presentation transcript:

High Friction & Control Resources Dedicated Shared Low 100% of API, Virtualized Roll-your-own HA/DR/scale SQL Server in IaaS Virtualized Machine SQL Server Raw iron Scale-up Full h/w control Roll-your-own HA/DR/scale Auto HA, Fault-Tolerance Friction-free scale Self-provisioning, scale Virtualized Database SQL Database - PaaS Premium, up to 500GB Web/Business, up to 150GB

Reads are completed at the primary Writes are replicated to secondary replicas DB Single Logical Database Multiple synchronous replicas Transparent automatic failover P S S Write Ack Read Value Write Ack P S S High-Availability

Self-Service Restore Point-in-time Restore Restore points available up to 35 days back Creates a side-by-side database copy, non-disruptive REST API, PowerShell or Azure Portal Available in Premium edition Programmatic “oops recovery” of data deletion or alteration Geo- replicated Restore from backup Azure Storage SQL Database Backups sabcp01bl21

Self-service activation Create up to 4 readable secondary replicas Replicate to any Azure region Automatic data replication, asynchronous REST API, PowerShell or Azure Portal Available in Premium edition Active Geo-Replication Mission-critical business continuity on your terms

DMVValuesVisibility is _interlink connected Yes No sys.dm_database_copies Database state ONLINE COPYING sys.databases Replication state SEEDING CATCH_UP sys.dm_database_copies Replication lag Seconds sys.dm_continuous_copy_status Last_replication Timestamp sys.dm_continuous_copy_status TaskAPIDetails Start Continuous Copy PowerShell REST Optional RPO setting Stop Continuous Copy PowerShell REST Forced or friendly termination Get Status PowerShell REST T-SQL Retrieves DMV Geo- Replication Monitoring and Control

Master MSDB Temp MasterMSDB User DBTempDB Instance Collation Logins Credentials Linked Server Defs. CLR … Agent Replication DB Mail … … TempDB Collation Other Apps Other DBs User DB

DMVDetailsUse sys.dm_exec_query_statsCumulative view of query statisticsTotal and average resource consumption sys.dm_exec_query_sql_textReturns the text of the SQL batch that is identified by the specified sql_handle Provide overall batch text for statement sys.dm_exec_query_planReturns plan in XML for specified plan handleProvide plan for tuning and analysis sys.dm_exec_requestsCurrent requests executing on your DBCheck for blocking, contention related issues, convoys, etc  Execute in isolation with STATISTICS (IO/TIME) ON

X X ? 1.Request has not yet reached the server  Retry for reads and writes is safe 2.The request has reached the server  Retry for reads is safe  Retry for writes is NOT safe 1.Request is executed on the Server  Retry for reads is safe  Retry for writes is NOT safe

A general system wide back- off strategy is typically a good idea Query dependent back-off strategy to avoid overloading the system Low cost operationHigh cost operation Just re-executeRequires tracking of transaction ID Requires outer transaction ReadWrite

SELECT… SELECT… SELECT… SELECT… N  N One client server roundtrip per execution N  <N XML Delimited list Table Valued Parameter All executions in one batch

Performance is good No SQL Injection Requires SQLCLR Data is not strongly typed Cumbersome implementation Can be simplified by created one TVF per “list type” Can be strongly typed No SQL Injection Nice option if your data is already XML! Great flexibility Not strongly typed by default Performance is ok but not the best Less cumbersome than the delimited list but still somewhat cumbersome Strongly typed No SQL Injection Performance is great! Easy to use Allows for some level of streaming Less flexible than XML Allows for streaming, but only to the server Fully streaming Easy to use Poor performance Potential for SQL Injection attacks Roundtrip per execution

App DB Customer App DB Customer App DB Customer App DB Customer App DB Customer

SaaS Customer DB1 Customer DB2 Customer DB3 Customer DB N …

Data Model Sharding

Sharded Model

Directory Shard 1Shard

Usage Pattern Distribution of CSV Tenants Long Tail of Colder Databases CSV Goal: COGS Reduction Small but growing set of highly active users

Shard 1 Report Program Report Program Shard 2 Shard 3 Temp Storage Temp Storage 1 2 3,6,