SQL Server in AWS on Linux

Slides:



Advertisements
Similar presentations
1 NETE4631 Cloud deployment models and migration Lecture Notes #4.
Advertisements

INTRODUCTION TO CLOUD COMPUTING CS 595 LECTURE 6 2/13/2015.
High Availability Group 08: Võ Đức Vĩnh Nguyễn Quang Vũ
© 2015 Dbvisit Software Limited | dbvisit.com An Introduction to Dbvisit Standby.
Keith Burns Microsoft UK Mission Critical Database.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
A Brief Overview by Aditya Dutt March 18 th ’ Aditya Inc.
OM. Brad Gall Senior Consultant
Cloud Computing for the Enterprise November 18th, This work is licensed under a Creative Commons.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
Your First Azure Application Michael Stiefel Reliable Software, Inc.
Cloud Computing & Amazon Web Services – EC2 Arpita Patel Software Engineer.
Intro to Datazen.
Enhancing Scalability and Availability of the Microsoft Application Platform Damir Bersinic Ruth Morton IT Pro Advisor Microsoft Canada
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.
Deploying Highly Available SAP in the Cloud
WINDOWS AZURE AND THE HYBRID CLOUD. Hybrid Concepts and Cloud Services.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
INTRODUCTION TO AMAZON WEB SERVICES (EC2). AMAZON WEB SERVICES  Services  Storage (Glacier, S3)  Compute (Elastic Compute Cloud, EC2)  Databases (Redshift,
SQL Server as a Cloud Service April 15th 2016 Warner Chaves Data Platform MVP/SQL Server MCM.
Microsoft Dynamics NAV Dynamics NAV 2016 one Azure SQL Dmitry Chadayev Microsoft.
Architecting Enterprise Workloads on AWS Mike Pfeiffer.
Calgary Oracle User Group
SQL Database Management
Microsoft Connect /23/ :39 PM
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.
Azure Site Recovery For Hyper-V, VMware, and Physical Environments
SQL Server on Linux CTP 1.1 Florian
AWS Simple Icons v AWS Simple Icons: Usage Guidelines
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.
100% Exam Passing Guarantee & Money Back Assurance
Data Platform and Analytics Foundational Training
InGenius Connector Enterprise Microsoft Dynamics CRM
Secrets to Fast, Easy High Availability for SQL Server in AWS
Disaster Recovery Where to Begin
Lead SQL BankofAmerica Blog: SQLHarry.com
Microsoft SQL Server 2017 Maximum Availability & Read Scale-Out
Introduction to SQL Server 2017 on Linux
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Bare Metal Server Backup Solution
SharePoint disaster recovery as a service
Installation and database instance essentials
Cloud based Open Source Backup/Restore Tool
Introduction of Week 3 Assignment Discussion
OpenNebula Offers an Enterprise-Ready, Fully Open Management Solution for Private and Public Clouds – Try It Easily with an Azure Marketplace Sandbox MICROSOFT.
2018 Amazon AWS DevOps Engineer Professional Dumps - DumpsProfessor
Capitalize on modern technology
Some considerations for running SQL Server in Amazon Web Services
Scalable SoftNAS Cloud Protects Customers’ Mission-Critical Data in the Cloud with a Highly Available, Flexible Solution for Microsoft Azure MICROSOFT.
What’s new in SQL Server 2016 Availability Groups
Migrating your SQL Server Instance
Data Security for Microsoft Azure
Microsoft Virtual Academy
Saranya Sriram Developer Evangelist | Microsoft
High Availability/Disaster Recovery Solution
MS AZURE By Sauras Pandey.
Jerald Overstreet, GISP Server Portal SQL Manager Admin
Using the Cloud for Backup, Archiving & Disaster Recovery
SQL Server using Amazon Web Services EC2 Instances
Managing and monitoring SQL Server on Linux from the command line
SQL Server on Amazon Web Services
Setting up PostgreSQL for Production in AWS
SQL Server on Amazon Web Services
The DBA Quit and now you’re it:
SQL Server on Containers
Presentation transcript:

SQL Server in AWS on Linux The gotchas, the pain, and the resolution. It’s easier than you’d think.

Who am I? Stacy Hein 20 years IT experience 17 years of SQL Server experience Version 6.5 through now Worked in most industries and sizes of companies Consulting experience with several companies Worked as an Senior Escalation Engineer for the SharePoint 365 Team at Microsoft Masters of Science Cybersecurity from Excelsior College http://www.excelsior.edu DCS – Cybersecurity and Information Assurance (Student) http://www.ctuonline.com 2 | 9/19/2018 | Footer Goes Here

Background Skills Know something about Linux PowerShell or bust Pluralsight – Linux Server Skills for Windows Administrators https://www.pluralsight.com/courses/linux-server-skills-windows-administratorsClouds skills becoming a must PowerShell or bust PowerShell is open source now, can install on Linux https://4sysops.com/archives/install-powershell-on-ubuntu-16-04/ SQL Server Command-Line

Background Skills Information from Amazon on EC2 instances https://aws.amazon.com/documentation/ec2/ General AWS Information https://aws.amazon.com/documentation/ Security basics DON’T do everything from root. Create separate accounts for the systems admins and SQL admins When setting up server and security, consider that AWS uses deny all setting by default Setup VPCs for the servers In larger organizations, this is done by the network admins

Security Basics – Shared Responsibility Model Amazon Web Services. (2017). Amazon Shared Responsibility Model. Retrieved from https://aws.amazon.com/compliance/shared-responsibility-model/

Security Basics – Shared Responsibility Model AWS Shared Responsibility Model AWS provides secure infrastructure and services Customer is responsible for secure operating systems, platforms, and data

Security Basics – Shared Responsibility Model Bottom line is that they provide secure infrastructure, container services, and abstracted services. You’re responsible for everything else.

Security Basics – Shared Responsibility Model Infrastructure Services EC2 – Elastic Compute Cloud EBS – Elastic Block Store Auto-Scaling VPC –Virtual Private Clouds

Security Basics – Shared Responsibility Model Container Services Elastic Beanstalk (Application deployment) https://aws.amazon.com/elasticbeanstalk/ Elastic Map Reduce (big data or is it BIG DATA?) https://aws.amazon.com/emr/ Uses Hadoop Amazon RDS (Relational Database Services) https://aws.amazon.com/rds/ Six flavors (Amazon Aurora, PostgreSQL, MySQL, MariaDB, Oracle, and Microsoft SQL Server)

Security Basics – Shared Responsibility Model Abstracted Services Database (static or static-ish), high-level storage, and messaging Glacier (Archival) https://aws.amazon.com/glacier/ S3 (Simple Storage Service) object storage with a simple web service interface DynamoDB (NoSQL option in AWS) https://aws.amazon.com/dynamodb/ NoSQL solution (fast retrieval)

Security Basics – Shared Responsibility Model Simple Queueing Service (SQS) https://aws.amazon.com/sqs/ Manage queueing between individual components of code or services Simple Email Service (SES) https://aws.amazon.com/ses/

Security Basics – Shared Responsibility Model IAM – Identity and Access Management – feature used by you to enhance security provided by AWS IAM planning, maintenance, and overall governance is important to your organization Some helpful features There are pre-defined roles but you can create your own (Ex. DatabaseAdministrator)

Security Basics – Shared Responsibility Model You can make permissions as granular as needed for your organization Ex. DBAs aren’t creating VPCs or limit access to your instances as you would with SQL Allows you to separate duties as needed in your organization for compliance Can be used for compliance when combined with other services (e.g. Cloud Trail Services) https://aws.amazon.com/cloudtrail/ Logging, monitoring, and auditing

Initial Info Used to set EBS drives up ahead of time Don’t need to do that anymore. You can set them up during the server setup process. Need at least 3.25GB of memory to run Only been tested up to 256GB This is above the AWS and Azure free tiers. But you can still set them up, you just pay for the running time and data movement.

Initial Info Configuration Items Are you going to setup HADR? Disk Setup Memory Processor Affinity Are you going to setup HADR? MS is trying to get all the HADR options for SQL on Windows ported to Linux, most are not there yet Options Simple HADR VM Failover

Initial Info - HADR Options Simple HADR VM failover Resilience against guest and OS level failures Unplanned and planned events Minimum downtime for patching and upgrades RTO in minutes Backup/Restore Protection against accidental or malicious data corruption Disaster recovery protection RTO in minutes to hours Standard HADR Failover cluster Linux (HeartBeat, LinuxHA, etc) Instance level protection Automatic failure detection and failover Resilience against OS and SQL Server failures RTO in seconds to minutes

Initial Info - HADR Options Standard HADR continued Log shipping Simple disaster-recovery solution for a single primary database and one or more secondary databases, each on a separate instance of SQL Server. Supports limited read-only access to secondary databases (during the interval between restore jobs). Allows a user-specified delay between when the primary server backs up the log of the primary database and when the secondary servers must restore (apply) the log backup. A longer delay can be useful, for example, if data is accidentally changed on the primary database. If the accidental change is noticed quickly, a delay can let you retrieve still unchanged data from a secondary database before the change is reflected there. Basic availability groups – 2 nodes (in progress) Synchronous or asynchronous mode RTO in seconds Disaster recovery protection Resilience against guest and OS level failures Unplanned and planned events Minimum downtime for patching and upgrades

Initial Info - HADR Options Mission-critical HADR (in progress) Availability groups with several nodes

Initial Info - Security Options Always Encrypted Always Encrypted is a feature designed to protect sensitive data Allows clients to encrypt sensitive data inside client applications and never reveal the encryption keys to the Database Engine Row-Level Security Row-Level Security enables customers to control access to rows in a database table based on the characteristics of the user executing a query Dynamic Data Masking Dynamic data masking limits (DDM) sensitive data exposure by masking it to non-privileged users. It can be used to greatly simplify the design and coding of security in your application.

Configuring the Instance After Install mssql-conf is a configuration script that installs with SQL Server vNext CTP 2.1 for both Red Hat Enterprise Linux and Ubuntu. Can use utility to set the following parameters: TCP port Default data directory Default log directory Default dump directory Default backup directory Set traceflags Set collation

Installing the SQL Tools Done separately from instance install Installs command-line tools Microsoft ODBC drivers their dependencies Mssql-tools package contains: sqlcmd: Command-line query utility bcp: Bulk import-export utility

Setting up Ubuntu in AWS DEMO

Setting up Ubuntu in AWS These procedures and tools are changing almost daily!!! Visit these sites: Install SQL on Linux- https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-ubuntu Install SQL Tools - https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools#ubuntu SQL Management Studio for Windows - https://docs.microsoft.com/en-us/sql/ssms/sql-server-management-studio-ssms-release-candidate Connecting to SQL Server with Putty - http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html

Questions?

Thank You No, THANK YOU!

References and Additional Information Install SQL on Ubuntu https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-ubuntu Install SQL on Redhat https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-red-hat Install SQL Tools https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools Install SQL Server Management Studio With Linux Support https://msdn.microsoft.com/en-us/library/mt238290.aspx SQL Server on Linux: High availability and security https://blogs.technet.microsoft.com/dataplatforminsider/2016/11/30/sql-server-on-linux-high-availability-and-security/

References and Additional Information SQL Security on Linux https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-security-get-started Configuring SQL Server on Linux https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-mssql-conf Microsoft Information on Linux https://docs.microsoft.com/en-us/sql/linux/ AWS Documentation https://aws.amazon.com/documentation/ec2/ Linux for Windows Admins (Pluralsight) https://www.pluralsight.com/courses/linux-server-skills-windows-administrators