Azure and SQL Server: Getting the best out of the cloud

Slides:



Advertisements
Similar presentations
MUNIS Platform Migration Project WELCOME. Agenda Introductions Tyler Cloud Overview Munis New Features Questions.
Advertisements

SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
Virtual techdays INDIA │ September 2011 High Availability - A Story from Past to Future Balmukund Lakhani │ Technical Lead – SQL Support, Microsoft.
Low Control | Low Maintenance Shared Lower cost Dedicated Higher cost High Control | High Maintenance Hybrid On premises Off premises SQL Server Physical.
Protecting your online and on premises assets "Cloud Style" Mike Martin Architect / Microsoft Azure MVP.
Manage & Configure SQL Database on the Cloud Haishi Bai Technical Evangelist Microsoft.
Why consider the cloud? Cloud innovation presents challenges for IT.
Windows Azure SQL Database and Storage Name Title Organization.
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Guy BowermanMadhan Arumugam DBI208.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Steven Wort, Xin Jin Microsoft Corporation.
Cloud Computing & Amazon Web Services – EC2 Arpita Patel Software Engineer.
Azure Backup New Business Model March 16 th 2015.
Emil VelinovNicholas Dritsas Senior Program ManagerPrincipal Program Manager Windows Azure Customer Advisory Team (AzureCAT) Microsoft Corporation.
Backup as a Service: Protecting your datacentre & cloud workloads Ben Di Qual, Regan Murphy M375.
Martin Cairney Hybrid data platform – making the most of Azure plus your on- prem kit DAT341 B.
Copyright © New Signature Who we are: Focused on consistently delivering great customer experiences. What we do: We help you transform your business.
SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016.
SQL Server High Availability Introduction to SQL Server high availability solutions.
Making a Difference with Azure Storage Solutions Dudu Sinai.
Sql Server Architecture for World Domination Tristan Wilson.
Architecting Availability Groups An analysis of Microsoft SQL Server Always-On Availability Group architectures 1.
Microsoft Connect /23/ :39 PM
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
Unit 3 Virtualization.
Stretch Database & Managed Backups
IT06 – HAVE YOUR OWN DYNAMICS NAV TEST ENVIRONMENT IN 90 MINUTES
Stretch Database & Managed Backups
Avenues International Inc.
SQLIntersection May 24rd, 2017
Business Continuity & Disaster Recovery
On-premise database. Files in the cloud.
Data Platform and Analytics Foundational Training
Volume Licensing Readiness: Level 200
Volume Licensing Readiness: Level 200
Providing reliable SMB shares in Microsoft Azure
Disaster Recovery Where to Begin
Example of a page header
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Exam in just 24 hours!!! Pass your exam in first attempt by the help of our latest braindumps
Windows Azure Migrating SQL Server Workloads
Design and Implement Cloud Data Platform Solutions
Design and Implement Cloud Data Platform Solutions
Volume Licensing Readiness: Level 200
02 | Design and implement database
SQL Azure Database – High Availability
Business Continuity & Disaster Recovery
IaaS Part II Stefan Geiger Gerry
Solving ETL Bottlenecks with SSIS Scale Out
What is the Azure SQL Datawarehouse?
Stretch Database & Managed Backups
Microsoft Azure for SQL Server Professionals
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Introduction to partitioning
Data Security for Microsoft Azure
Outline Virtualization Cloud Computing Microsoft Azure Platform
Microsoft Azure for SQL Server Professionals
AlwaysOn Availability Groups
High Availability/Disaster Recovery Solution
MS AZURE By Sauras Pandey.
Microsoft Azure for SQL Server Professionals
Using the Cloud for Backup, Archiving & Disaster Recovery
Windows Azure Hybrid Architectures and Patterns
Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions
IBM Tivoli Storage Manager
ZORAN BARAC DATA ARCHITECT at CIN7
06 | SQL Server and the Cloud
Designing Database Solutions for SQL Server
The Database World of Azure
Presentation transcript:

Azure and SQL Server: Getting the best out of the cloud

Hello! I am Murilo Miranda Lead Database Consultant @ Pythian You can find me at @murilocmiranda

Today’s agenda The session is covering the following areas: Introduction Hybrid Backup Solutions Saving Storage Costs with Azure High Availability & Disaster Recovery

Cloud, private, public, hybrid… 1 Introduction Cloud, private, public, hybrid…

Introduction What are “clouds”? Private… Public…? What makes them better than regular computers?

Introduction Cloud is… a DATA CENTER!!

Introduction … or even multiple ones.

Introduction … with compute + storage connected by a network.

Introduction What does make a data center “a cloud”? All those resources are virtualized into one giant shared pool of resources.

Introduction Clouds are…. SMART AUTOMATED ADAPTIVE

Introduction EFICIENCY EFICIENCY COST COST

Public Introduction Private HYBRID Private Public

Cloud Service Provider Public Introduction Hosted by Cloud Service Provider Rent space to many customers tenants

Public Introduction Tenants only pay for Services that they use

Services are charged as Public Introduction Services are charged as Electricity Bill

Introduction Private Private cloud have Only one tenant

All the goodness of the cloud Introduction Private All the goodness of the cloud Under your control

You get all the benefits of HYBRID Private Public Introduction LOW HIGH CONTROL SCALABILITY HYBRID Private Public You get all the benefits of Public and Private Help improving Scalability

Introduction Which fits you best?

Clouds are always moving…

2 SQL Server & Azure A love story

Improving the service with SQL Server & Azure Scalability Backup High Availability & Disaster Recovery Storage

Backup to URL, Managed Backups and Backup Vault

Hybrid Backups SQL Server takes advantage of Azure Storage to keep its backup files. Azure Storage is a managed cloud service that provides highly available, secure, durable, scalable, and redundant storage

Hybrid Backups

Hybrid Backups Total cost of Block Blob storage depends on: Volume of data stored per month Quantity and types of operations performed Data redundancy option selected More information about pricing: https://azure.microsoft.com/en-us/pricing/details/storage/blobs/

Hybrid Backups Azure Storage Explorer http://storageexplorer.com/

Hybrid Backups Azure Web Storage Explorer http://azurestorage.azurewebsites.net/

Two options Backup to URL Managed Backups first last Send your backup files to Azure Storage A smarter way to do backups

Backup to URL Starting from SQL Server 2012 - SP1 CU2 Backup to Azure Storage URL: http[s]://<ACCOUNTNAME>.blob.core.windows.net/<CONTAINER>/<FILENAME. bak> Authenticates using a credential https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/sql-server-backup-to-url

Backup to URL Limitations: Premium storage is not supported RETAINDAYS and EXPIREDATE options are not supported Maximum backup size for a page blob is 8 TB Block blob maximum size of an individual backup can be up to 12 TB, by utilizing striping Block blobs are for your discrete storage objects like jpg's, log files, etc. that you'd typically view as a file in your local OS. Max. size 200GB 4.77TB. Regular (non-Premium) storage only. Page blobs are for random read/write storage, such as VHD's (in fact, page blobs are what's used for Azure Virtual Machine disks). Max. size 8TB. Supported by both regular and Premium Storage.

Backup to URL Basic Steps to backup to URL: Create a container under your Azure Storage account. Create the Credential in SQL Server (on-premises) Account Key or Shared Access Signature You are ready to backup! Block blobs are for your discrete storage objects like jpg's, log files, etc. that you'd typically view as a file in your local OS. Max. size 200GB 4.77TB. Regular (non-Premium) storage only. Page blobs are for random read/write storage, such as VHD's (in fact, page blobs are what's used for Azure Virtual Machine disks). Max. size 8TB. Supported by both regular and Premium Storage.

Backup to URL Backup Syntax: BACKUP DATABASE <database_name> TO URL = 'https://<mystorageaccountname>.blob.core.windows.net/<mycont ainername>/<bckup_file.bak>’; WITH CREDENTIAL = '<mycredentialname>' GO Block blobs are for your discrete storage objects like jpg's, log files, etc. that you'd typically view as a file in your local OS. Max. size 200GB 4.77TB. Regular (non-Premium) storage only. Page blobs are for random read/write storage, such as VHD's (in fact, page blobs are what's used for Azure Virtual Machine disks). Max. size 8TB. Supported by both regular and Premium Storage.

Backup to URL For instances < 2012 Backup to disk Move backups to Azure Storage using AzCopy tool Control the backup retention Use Azure Automation Block blobs are for your discrete storage objects like jpg's, log files, etc. that you'd typically view as a file in your local OS. Max. size 200GB 4.77TB. Regular (non-Premium) storage only. Page blobs are for random read/write storage, such as VHD's (in fact, page blobs are what's used for Azure Virtual Machine disks). Max. size 8TB. Supported by both regular and Premium Storage.

Two options Backup to URL Managed Backups first last Send your backup files to Azure Storage A smarter way to do backups

Managed Backups A smarter way to automate backups Uses the Backup to Block Blob feature Supported from SQL Server 2014, changed on 2016 It automates and manages SQL Server backups, based on a retention period. Minimum: 1 day Maximum: 30 day https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/sql-server-managed-backup-to-microsoft-azure

Managed Backups SQL Server determines the backup schedule Based on the transaction workload You can still define a schedule. 

Managed Backups Full Database Backup When Managed Backup is enabled for the first time, or when a new database is added Log growth since last full backup is =>1 GB Last full backup is > 1 week old The log chain is broken

Managed Backups T-Log Backup When there is no log backup T-Log used space >= 5 MB Last T-Log backup > 2 hours old

DEMO

Files in Azure, Stretch DB and Hybrid Partitioning Storage Files in Azure, Stretch DB and Hybrid Partitioning

Storage Azure Storage is useful again :) Azure SQL Database can also help us!

Three options Stretch Database DB files in Azure Hybrid Partitioning first second last Stretch Database DB files in Azure Hybrid Partitioning A way to extend your database to Azure Store data & log in Azure Storage A cheaper option to Stretch Database

Stretch Database Dynamically stretch data to Azure SQL Server 2016 feature No application changes are required There are table limitations https://docs.microsoft.com/en-us/sql/sql-server/stretch-database/limitations-for-stretch-database Your data is always available SQL Server moves the data on background for you The table remains online and ready to query — it’s completely transparent

Stretch Database Compatible with the latest technologies Protect your data in motion with Always Encrypted. Row-Level Security is also compatible Reduced maintenance times on-premises Backups on-premises data run faster Backup is automatic for stretched data https://azure.microsoft.com/en-us/pricing/details/sql-server-stretch-database/

Stretch Database Hot Data On-Premisses Cold Data Microsoft Azure

Stretch Database PERFORMANCE LEVEL (DSU) PRICE 100 ~€1,539.03/month 200 ~€3,078.05/month 300 ~€4,617.07/month 400 ~€6,156.09/month 500 ~€7,695.12/month 600 ~€9,234.14/month 1000 ~€15,390.23/month 1200 ~€18,468.27/month 1500 ~€23,085.34/month 2000 ~€30,780.45/month

Three options Stretch Database DB files in Azure Hybrid Partitioning first second last Stretch Database DB files in Azure Hybrid Partitioning A way to extend your database to Azure Store data & log in Azure Storage A cheaper option to Stretch Database

DB Files in Azure It is possible to store DB files in Azure Storage From SQL Server 2012 SP1 – CU2+ Supports data and log files. Good for non-critical databases Performance is improving, but can be a barrier On-Premises Azure

Three options Stretch Database DB files in Azure Hybrid Partitioning first seco nd last Stretch Database DB files in Azure Hybrid Partitioning A way to extend your database to Azure Store data & log in Azure Storage A cheaper option to Stretch Database

Hybrid Partitioning Do you remembre the “store files in Azure” capability? We can use it to build a simple data archival model! By partitioning a table and sending older data to Azure. PRIMARY FG1 FGAzure FG2 FGn Filegroups Files Local MDF file Local NDF file NDF file in Azure On-Prem Cloud

Hybrid Partitioning Partitoned Table Partition with old data uses the “Azure” Filegroup

DEMO

AG, Cloud Witness and Low cost DR HA/DR AG, Cloud Witness and Low cost DR

Three options Availability Groups Replica Cloud Witness first second last Availability Groups Replica Cloud Witness Low-Cost Disaster Recovery Extend your environment to another region To improve the availability A creative way to have a DR solution

AG Replica Availability Group supports replicas in Azure Works as a Disaster Recovery or even Load Balancing strategy. Offload workload (reports, backups, ...). Low-cost Disaster Recovery strategy.

AG Replica Site-to-Site VPN

Three options Availability Groups Replica Cloud Witness first second last Availability Groups Replica Cloud Witness Low-Cost Disaster Recovery Extend your environment to another region To improve the availability A creative way to have a DR solution

Cloud Witness New kind of failover cluster witness Windows Server 2016 is required. Vote Vote Vote Vote Lisbon Porto Vote Node 1 Node 2 Node 3 Node 4 Fileshare Cluster

Cloud Witness New kind of failover cluster witness Windows Server 2016 is required. Vote Vote Vote Vote Lisbon Porto Faro Vote Node 1 Node 2 Node 3 Node 4 Fileshare Cluster

Cloud Witness Leverages Microsoft Azure It uses Microsoft Azure Storage Advantages: No need for 3rd separate location. Same Storage Account can be used for multiple clusters. One blob file per cluster. Low-cost (few read/write operations)

Cloud Witness New kind of failover cluster witness Windows Server 2016 is required. Vote Vote Vote Lisbon Porto Vote Node 1 Node 2 Node 3 Node 4 Vote Cluster Cloud Witness

Three options Availability Groups Replica Cloud Witness first second last Availability Groups Replica Cloud Witness Low-Cost Disaster Recovery Extend your environment to another region To improve the availability A creative way to have a DR solution

Do not forget to save a copy of db level objects. Low-Cost DR Server Leverages Azure Storage to keep database files in Azure Performance is not the focus Do not forget to save a copy of db level objects.  DB Server (On-Prem) DR Server (IaaS) sp_attach_db Azure Storage

DEMO

Just like Jimi Hendrix … We love to get feedback Please complete the session feedback forms

SQLBits - It's all about the community... Please visit Community Corner, we are trying this year to get more people to learn about the SQL Community, equally if you would be happy to visit the community corner we’d really appreciate it.

Thanks! Any questions? You can find me at @murilocmiranda & murilo.miranda@gmail.com