Enhance availability with Multi-AZ on Amazon RDS Custom for SQL Server- AWS Database in 15

AWS Developers · Intermediate ·📊 Data Analytics & Business Intelligence ·2y ago

Key Takeaways

The video demonstrates how to enhance availability with Multi-AZ on Amazon RDS Custom for SQL Server, providing a managed database service for applications that require customization of the underlying operating system and database environment. It covers the setup and configuration of Multi-AZ, including the creation of primary and secondary database instances, synchronous replication, and automatic failover.

Full Transcript

foreign [Music] my name is Anuja Malik I'm the product manager for RDS custom for SQL server today I'm excited to dive deep on multi-az feature for RDS custom for SQL Server few reminders for you before we get started feel free to ask any questions during the session because we have a panel of RDS experts to answer those questions for you online and secondly at the end of the session you will receive a survey and we would love to know your feedback about today's presentation the agenda for today's session is to take a quick overview of RDS custom for SQL Server look at the use cases and the features of the service next we will talk about bring your own media functionality with RDS custom SQL Server that allows you to leverage your existing SQL Server licenses as per Microsoft's licensing terms and finally we will talk about the high availability with RDS custom SQL Server so res custom for SQL Server is a managed database service that automates database Administration tasks and operations while making it possible for you as a database administrator to access and customize your database environment and operating system RDS custom is a great fit for those SQL Server workloads that need a managed database service and need to use their existing SQL Server licenses as per Microsoft's licensing terms RDS custom allows you to migrate to AWS with least amount of re-architecture for your current stack since RDS custom allows you to access the underlying OS and database you should be able to migrate your database workloads with a lift and shift approach and lastly you should use radius custom when you have a workload that needs granular control such as direct access to the file system or need Master database access or sys admin access to SQL Server it can be used for workloads that rely on SQL Server features such as CLR XP credential or file stream the table here highlights the configurations and features supported by RDS custom for SQL Server it offers many inbuilt features such as managed High availability automated backups point in time Restore for up to 100 databases and managed AWS managed monitoring it supports both SQL and windows Authentication you can join your RDS custom instance directly with your active directory without having to integrate it with AWS managed Ed so recently we released support for bring your own media for RDS custom SQL Server that will enable customers to deploy custom database instances using existing SQL Server licenses subject to Microsoft's license in terms customers can install SQL server on an ec2 instance with their own media they can then create an Ami Amazon machine image of this ec2 instance using this Ami customers can create a custom engine version cev which is a pointer to the Ami and finally using cev RDS custom database instance can be deployed you can choose to deploy it in a single easy or a multi-eazy mode so let's talk about multi-az with RDS custom SQL Server RDS custom for SQL server has an inbuilt multi-az feature that allows you to deploy your custom instance across two availability zones providing High availability and protection against AZ failures these availability zones are located in a physically distinct and independent infrastructure res custom uses Block Level storage replication to synchronously replicate your data between primary and secondary nodes since it is synchronous it provides zero data loss at the time of failover and because we use Block Level replication we are able to replicate up to 5000 databases across the availability Zone it also replicates system database objects such as your SQL logins SQL agent jobs and Link server configurations thereby reducing the overhead so let's see the multi-az in action once you provision a multi-az custom database instance the service creates the primary and the secondary database instance with the provision storage capacity whatever you define at the time of creation now at any given time only the primary database instance will access the storage to read and write to the databases all the rides on the primary database instance will replicate to the standby instance synchronously at the Block Level now let's say that RDS detects a failover so in the case of a failure on your primary database instance whether at the storage or at the host level the standby database instance will automatically become the new primary and will now read and write to storage and SQL services will quickly go through the instance recovery and resume on the standby database instance you don't need to change the application connection string in case of a failover because the failover mechanism will automatically change the DNS record of your database instance to point to the standby database before we get into the demo I want to call out that you must set up the prerequisites for multi-az in RDS custom at your end these prerequisites are listed on our documentation you can choose to create these prereqs using a cloud formation template provided in the docs or you can even set it up manually now multi easy in RDS custom uses Amazon sqs simple Q service to communicate between the two nodes with that let's take a look at the demo for multi-az in RDS custom for SQL Server here is my audience custom SQL Server instance I created it using my own SQL Server standard edition license currently the multi-az flag for this instance is set to know in order to set up multi easy for this instance I need to first set up the prerequisites which are listed on our documentation so the the prerequisites talk about setting up sqs endpoint and granting the necessary permissions to the instance profile role so let me go ahead and find out the instance role for this instance so this is my IM instance profile now I'll go to my VPC endpoints create endpoint I'll give a name i Custom C ql sqs endpoint under the AWS Services I choose sqs I'll choose the VPC where my RDS custom instance is deployed I'll choose the subnets which are being used by my custom SQL instance IP address is ipv4 and then in the security groups I'm going to use the security group that is attached to my VPC and then I'll attach the policy over here the policy is again one listed on our documentation we need to give the input for AWS partition the region where our instance is running our account ready and the IM instance role which was attached to our instance and then I say click create endpoint all right so once our sqs endpoints are created I'm going to update the instance profile to with permissions to access Amazon sqs so I'll go to iam under IM I find for rules and then within rules I look for that but to uh for my particular uh I am instance role that is attached to my custom SQL profile I'll edit the policy add additional permissions choose a service sqs on our documentation we have called out four actions that are needed so those are get queue URL receive message and send message and delete message then under the Arn I'm going to specify the region where my custom instance is located my account number and in the queue name I'm going to say that any resource that is prefixed with do not delete RDS custom then under the conditions I'm going to choose the resource tab again this is called out on our documentation where the key is RDS custom string like and the value is custom SQL Server so this is the policy and save changes after I have added the permissions to the sqs I'll make sure that in my security groups the port number 1120 is allowed for both inbound and outbound as well as I update my network ACL that allows the TCP ports from 0 to 65535 between the source subnet of the database instance once I have met these four prerequisites I'll go back to my RDS instance and now I am ready to convert it from single AC to multi-az I'll choose my database instance go to modify under the availability and durability I'll choose create a standby instance continue and I'll choose to apply these changes immediately modify this change should take about 30 to 40 minutes for converting to multi easy meanwhile I have another instance which is a multi-az instance so let's see how the failover looks like first of all we see that this instance is currently running in US is to be so if I go to my ec2 console in my ac2 console I will see that there are two easy to instances for my RDS custom instance one of them is running in US is 2A and another is running in Us East to B now please note that in case of RDS custom you have full access to both of these ec2 instances even though one of the SQL instance is active and another one is passive but you will be able to log in an RDP to both of these so how would you know that which one is active currently we saw on the audience console that RDS custom instances currently running into B so this is the one which is our primary I also want to create a new user and a new login so let me try connecting to my application using a very basic back file which is making a connection to my SQL Server while this application is running I will go ahead and initiate a failover to initiate a failover I go to my audience console choose my RDS instance and I say from actions reboot and this is the error that our application is now receiving when trying to connect so there was a failover and now it is trying to connect fall over to the standby instance and our application is back again so if we take a look at the timestamp it took about 50 seconds 52 seconds to uh for the failover to happen when our application started the connectivity started failing to the time when the application was able to connect back again if you notice that one of the RDP connections were lost because of the reboot and if we just refresh these Services we will see that the SQL Server is online on this instance again so let's connect to our SQL Server management Studio on our new primary and we will see that there is a new database that has been created and not only that we also created a new user and we see that that user is also created so that was our demo for multi-az if you need more resources to dive deep on RDS custom for SQL server or if you need to learn more about how to set up multi-az on your RDS custom for SQL Server instance I have provided some quick links in the resources section I would like to thank you for your time uh to learn about multi-easy on RDS custom for SQL server today we are looking forward to hear from you in the survey feedback thank you [Music] thank you [Music]

Original Description

Amazon RDS Custom is a managed database service for applications that require customization of the underlying operating system and database environment. In this session, you will learn about Multi-AZ feature of Amazon RDS Custom for SQL Server that provides enhanced availability and durability. The Multi-AZ deployment model for Amazon RDS Custom for SQL Server keeps your database in sync between two AWS Availability Zones, with automatic failover to a secondary instance if your primary instance becomes unavailable. We will walk through benefits, use cases, and demonstrate how Multi-AZ works. Learning Objectives: * Objective 1: Benefits and use cases of Amazon RDS Custom for SQL Server * Objective 2: Advantages of Multi-AZ in Amazon RDS Custom for SQL Server * Objective 3: How Multi-AZ works in Amazon RDS Custom for SQL Server with demo ***To learn more about the services featured in this talk, please visit: https://aws.amazon.com/rds/custom/ ****To download a copy of the slide deck from this webinar visit: https://pages.awscloud.com/Enhance-availability-with-Multi-AZ-on-Amazon-RDS-Custom-for-SQL-Server_2023_SN-0712-DAT_OD Subscribe to AWS Online Tech Talks On AWS: https://www.youtube.com/@AWSOnlineTechTalks?sub_confirmation=1 Follow Amazon Web Services: Official Website: https://aws.amazon.com/what-is-aws Twitch: https://twitch.tv/aws Twitter: https://twitter.com/awsdevelopers Facebook: https://facebook.com/amazonwebservices Instagram: https://instagram.com/amazonwebservices ☁️ AWS Online Tech Talks cover a wide range of topics and expertise levels through technical deep dives, demos, customer examples, and live Q&A with AWS experts. Builders can choose from bite-sized 15-minute sessions, insightful fireside chats, immersive virtual workshops, interactive office hours, or watch on-demand tech talks at your own pace. Join us to fuel your learning journey with AWS. #AWS
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from AWS Developers · AWS Developers · 0 of 60

← Previous Next →
1 Using Microsoft Active Directory across On-premises and Cloud Workloads
Using Microsoft Active Directory across On-premises and Cloud Workloads
AWS Developers
2 What is Cloud Computing with AWS? | Hebrew Webinar
What is Cloud Computing with AWS? | Hebrew Webinar
AWS Developers
3 Best Practices for Getting Started with AWS | Hebrew Webinar
Best Practices for Getting Started with AWS | Hebrew Webinar
AWS Developers
4 Best Practices for Using AWS Identity and Access Management (IAM) Roles
Best Practices for Using AWS Identity and Access Management (IAM) Roles
AWS Developers
5 Building Scalable Web Apps | Hebrew Webinar
Building Scalable Web Apps | Hebrew Webinar
AWS Developers
6 Dev & Test on the AWS Cloud | Hebrew Webinar
Dev & Test on the AWS Cloud | Hebrew Webinar
AWS Developers
7 Storage & Backup on AWS | Hebrew webinar
Storage & Backup on AWS | Hebrew webinar
AWS Developers
8 Disaster Recovery on AWS | Hebrew Webinar
Disaster Recovery on AWS | Hebrew Webinar
AWS Developers
9 AWS Israel News  | Episode 1
AWS Israel News | Episode 1
AWS Developers
10 Security Best Practices on AWS | Hebrew Webinar
Security Best Practices on AWS | Hebrew Webinar
AWS Developers
11 Ready: Introduction to AI on AWS | Hebrew Webinar
Ready: Introduction to AI on AWS | Hebrew Webinar
AWS Developers
12 Set: What is ML for developers? | Hebrew Webinar
Set: What is ML for developers? | Hebrew Webinar
AWS Developers
13 Go!: Building your own ChatBot with Amazon Lex | Hebrew Webinar
Go!: Building your own ChatBot with Amazon Lex | Hebrew Webinar
AWS Developers
14 And Beyond: Amazon Sagemaker | Hebrew Webinar
And Beyond: Amazon Sagemaker | Hebrew Webinar
AWS Developers
15 Building API-Driven Microservices with Amazon API Gateway - AWS Online Tech Talks
Building API-Driven Microservices with Amazon API Gateway - AWS Online Tech Talks
AWS Developers
16 Understanding AWS Secrets Manager - AWS Online Tech Talks
Understanding AWS Secrets Manager - AWS Online Tech Talks
AWS Developers
17 Best Practices for Building Enterprise Grade APIs with Amazon API Gateway - AWS Online Tech Talks
Best Practices for Building Enterprise Grade APIs with Amazon API Gateway - AWS Online Tech Talks
AWS Developers
18 Build, Train and Deploy Machine Learning Models on AWS with Amazon SageMaker - AWS Online Tech Talks
Build, Train and Deploy Machine Learning Models on AWS with Amazon SageMaker - AWS Online Tech Talks
AWS Developers
19 AWS Israel News | Episode 2 | re:Invent
AWS Israel News | Episode 2 | re:Invent
AWS Developers
20 AWS Floor28 News - January
AWS Floor28 News - January
AWS Developers
21 AWS Floor28 News - February - Hebrew
AWS Floor28 News - February - Hebrew
AWS Developers
22 AWS Floor28 News - March - Hebrew
AWS Floor28 News - March - Hebrew
AWS Developers
23 AWS Floor28 News - April - Hebrew
AWS Floor28 News - April - Hebrew
AWS Developers
24 AWS Floor28 News - May - Hebrew
AWS Floor28 News - May - Hebrew
AWS Developers
25 Authentication for Your Applications: Getting Started with Amazon Cognito - AWS Online Tech Talks
Authentication for Your Applications: Getting Started with Amazon Cognito - AWS Online Tech Talks
AWS Developers
26 AWS Floor28 News - June - Hebrew
AWS Floor28 News - June - Hebrew
AWS Developers
27 AWS Floor28 News - July - Hebrew
AWS Floor28 News - July - Hebrew
AWS Developers
28 Enriching your app with Image Recognition and AWS AI Services - AWS Webinar - Hebrew
Enriching your app with Image Recognition and AWS AI Services - AWS Webinar - Hebrew
AWS Developers
29 Personalize, Forcast, and Textract - AWS Webinar - Hebrew
Personalize, Forcast, and Textract - AWS Webinar - Hebrew
AWS Developers
30 Managing Your ML Development Lifecycle with Amazon SageMaker - AWS Webinar - Hebrew
Managing Your ML Development Lifecycle with Amazon SageMaker - AWS Webinar - Hebrew
AWS Developers
31 Running your ML code in Amazon Sagemaker - AWS Webinar - Hebrew
Running your ML code in Amazon Sagemaker - AWS Webinar - Hebrew
AWS Developers
32 Get Started in Minutes with Amazon Connect in Your Contact Center - AWS Online Tech Talks
Get Started in Minutes with Amazon Connect in Your Contact Center - AWS Online Tech Talks
AWS Developers
33 AWS Floor28 News - August - Hebrew
AWS Floor28 News - August - Hebrew
AWS Developers
34 AWS Floor28 News - September - Hebrew
AWS Floor28 News - September - Hebrew
AWS Developers
35 Deep Dive on Amazon EventBridge - AWS Online Tech Talks
Deep Dive on Amazon EventBridge - AWS Online Tech Talks
AWS Developers
36 Advanced Serverless Orchestration with AWS Step Functions - AWS Online Tech Talks
Advanced Serverless Orchestration with AWS Step Functions - AWS Online Tech Talks
AWS Developers
37 Living on the Edge - an Introduction to  Amazon CloudFront and Lambda@Edge  - Hebrew Webinar
Living on the Edge - an Introduction to Amazon CloudFront and Lambda@Edge - Hebrew Webinar
AWS Developers
38 AWS Floor28 News - October - Hebrew - YouTube
AWS Floor28 News - October - Hebrew - YouTube
AWS Developers
39 What's New with AWS Storage - AWS Online Tech Talks
What's New with AWS Storage - AWS Online Tech Talks
AWS Developers
40 How to Build a Compelling Migration Business Case Using TSO Logic - AWS Online Tech Talks
How to Build a Compelling Migration Business Case Using TSO Logic - AWS Online Tech Talks
AWS Developers
41 Configuring and Managing Amazon S3 Replication - AWS Online Tech Talks
Configuring and Managing Amazon S3 Replication - AWS Online Tech Talks
AWS Developers
42 AWS Floor28 News - November - Hebrew
AWS Floor28 News - November - Hebrew
AWS Developers
43 Using Relational Databases with AWS Lambda - Easy Connection Pooling - AWS Online Tech Talks
Using Relational Databases with AWS Lambda - Easy Connection Pooling - AWS Online Tech Talks
AWS Developers
44 AWS Floor28 News - December 2019 - Hebrew
AWS Floor28 News - December 2019 - Hebrew
AWS Developers
45 AWS Floor28 News - January 2020 - Hebrew
AWS Floor28 News - January 2020 - Hebrew
AWS Developers
46 Top 10 Data Migration Best Practices - AWS Online Tech Talks
Top 10 Data Migration Best Practices - AWS Online Tech Talks
AWS Developers
47 How to Use Azure Active Directory with AWS SSO - AWS Online Tech Talks
How to Use Azure Active Directory with AWS SSO - AWS Online Tech Talks
AWS Developers
48 AWS Tips & Tricks - Amazon Redshift Advisor - Hebrew
AWS Tips & Tricks - Amazon Redshift Advisor - Hebrew
AWS Developers
49 AWS Tips & Tricks - Amazon Redshift Elastic Resize - Hebrew
AWS Tips & Tricks - Amazon Redshift Elastic Resize - Hebrew
AWS Developers
50 AWS Tips & Tricks - Amazon Redshift Spectrum - Hebrew
AWS Tips & Tricks - Amazon Redshift Spectrum - Hebrew
AWS Developers
51 AWS Tips & Tricks - Savings Plans & Cost Explorer - Hebrew
AWS Tips & Tricks - Savings Plans & Cost Explorer - Hebrew
AWS Developers
52 AWS Tips & Tricks - Amazon Redshift Concurrency Scaling - Hebrew
AWS Tips & Tricks - Amazon Redshift Concurrency Scaling - Hebrew
AWS Developers
53 AWS Tips & Tricks - Training Models with Amazon SageMaker - Hebrew
AWS Tips & Tricks - Training Models with Amazon SageMaker - Hebrew
AWS Developers
54 AWS Tips & Tricks - Auto Model Tuning with Amazon SageMaker - Hebrew
AWS Tips & Tricks - Auto Model Tuning with Amazon SageMaker - Hebrew
AWS Developers
55 AWS Tips & Tricks - Amazon Comprehend - Hebrew
AWS Tips & Tricks - Amazon Comprehend - Hebrew
AWS Developers
56 Understanding High Availability and Disaster Recovery Features for Amazon RDS for Oracle
Understanding High Availability and Disaster Recovery Features for Amazon RDS for Oracle
AWS Developers
57 Amazon Forecast  – Forecasting  - From Months to Days (Hebrew)
Amazon Forecast – Forecasting - From Months to Days (Hebrew)
AWS Developers
58 Visualize your data with Amazon QuickSight (Hebrew)
Visualize your data with Amazon QuickSight (Hebrew)
AWS Developers
59 Amazon Kendra (Hebrew)
Amazon Kendra (Hebrew)
AWS Developers
60 AWS Floor28 News - AI/ML Special Edition
AWS Floor28 News - AI/ML Special Edition
AWS Developers

This video teaches how to enhance availability with Multi-AZ on Amazon RDS Custom for SQL Server, providing a managed database service for applications that require customization of the underlying operating system and database environment. It covers the setup and configuration of Multi-AZ, including the creation of primary and secondary database instances, synchronous replication, and automatic failover. By following this lesson, viewers can design and implement high availability database system

Key Takeaways
  1. Provision a multi-AZ custom database instance
  2. Create an SQS endpoint
  3. Grant necessary permissions to the instance profile role
  4. Update security groups to allow necessary ports for SQS communication
  5. Update network ACLs to allow necessary ports for SQS communication
  6. Choose the resource tab
  7. Update the security group and network ACL
  8. Convert the RDS instance from single AZ to multi-AZ
  9. Create a standby instance
  10. Apply the changes immediately
💡 The video highlights the importance of configuring Multi-AZ on Amazon RDS Custom for SQL Server to enhance availability and durability, and provides a step-by-step guide on how to set it up.

Related Reads

📰
Classroom vs Online Data Science Training in Hyderabad | Coding MastersClassroom vs Online Data…
Learn why data science is in high demand and how to get trained in Hyderabad, whether through classroom or online modes, to boost your career
Medium · Data Science
📰
SciDraw Alternative: Paper Banana for Scientific Figures
Discover Paper Banana as a SciDraw alternative for creating scientific figures, and learn how to use it for your data visualization needs
Medium · Data Science
📰
“Missão: Risco da Carteira”.
Learn to assess portfolio risk using data science techniques and tools
Medium · Data Science
📰
When Ten Analysts Agree and Two Are Right — What Numbers 13 Knew About Groupthink
Learn how to identify and avoid groupthink in analysis and decision-making, and why it's crucial for accurate threat assessments
Medium · AI
Up next
This could be the most perfect data frontend
Matt Williams
Watch →