AWS
DevOps
  • knowledge
    • glossary
    • network knowledge
      • CIDR Block
      • OSI
      • List of Ports
      • Network model
    • AWS best practices
      • Least privilege principle
      • Support Plan
      • Well-architected framework
        • Well-architected framework
        • Cost optimization
        • Operational Excellence
        • Performance efficiency
        • Reliability
        • Security
    • Exams
      • DOP-C02
        • DOP-C02 topics
        • DOP-C02 Labs
      • DVA-C02
      • SOA-C02
  • services
    • access management
      • Directory Service
      • IAM
        • PassRole
      • IAM Identity Center (SSO)
      • Organizations
        • Organizational Unit
        • Control Tower
      • AD Domain Service
    • analytics
      • data analytic
        • Athena
        • QuickSight
        • Redshift
      • data collection
        • Data Lake
        • Lake Formation
      • data processing
        • EMR
        • Kinesis
        • Glue
          • Glue Data Catalog
      • OpenSearch
    • compute
      • Batch
      • EC2
        • Auto Scaling
        • AMI
        • ELB
          • Global accelerator
        • Security Group
        • EBS
        • EC2 Instance Store
        • Spot Fleet
      • Elastic Beanstalk
      • Lambda
        • Layer
        • Lambda API
      • Outposts
      • Wavelength
      • SAM
      • VMWare Cloud
    • container
      • Copilot
      • ECR
      • ECS
        • ECS Anywhere
      • EKS
        • EKS Anywhere
        • EKS Distro
      • Fargate
    • cost management
      • Budgets
      • Cost Explorer
      • Saving Plans
      • Compute Optimizer
    • database
      • Data Engineer
      • Document DB
      • DynamoDB
        • DynamoDB API
        • Scan
      • ElastiCache
      • Keyspaces
      • MemoryDB for Redis
      • Neptune
      • Quantum Ledger Database
      • RDS
        • Aurora
          • Aurora Global Database
          • Aurora Serverless
      • Timestream
    • devTools
      • CICD
        • CodeArtifact
        • CodeCommit
        • CodeBuild
        • CodeDeploy
        • CodePipeline
      • CloudFormation
      • CodeGuru
      • CodeStar
      • CodeWhisperer
      • X-Ray
      • Deployment strategies
    • finance
      • Cost explorer
    • integration
      • AppFlow
      • AppSync
      • EventBridge
      • MQ
      • SNS
      • SQS
      • Step Functions
      • SWF
    • management
      • AppConfig
      • AWS Backup
      • AWS CDK
      • Config
      • Grafana
      • Health Dashboard
      • Proton
      • Service Catalog
      • System Manager
      • SSM
      • Resource Group
      • OpsWorks (discontinued)
    • media
      • Elemental MediaConvert
      • Transcoder
    • messaging
      • SES
    • migration
      • Application Migration Service
      • DataSync
      • DMS
      • Migration Evaluator
      • Migration Hub
      • Server Migration Service
      • Snow Family
      • Transfer Family
    • ML
      • Comprehend
      • Forecast
      • Kendra
      • Lex
      • Rekognition
      • SageMaker
        • SageMaker Data Wrangler
        • SageMaker ML Lineage Tracking
    • monitoring
      • CloudTrail
      • CloudWatch
      • TrustedAdvisor
    • networking
      • CloudFront
      • Customer gateway
      • Edge Location
      • hybrid networking
        • Direct Connect
          • Direct Connect Gateway
        • Site-to-site VPN
      • PrivateLink
      • Region
        • AZ
      • Route 53
      • Transit Gateway
      • VPC
        • VPC Lattice
        • Subnet
          • NACL
        • Internet Gateway
        • Network Firewall
        • VPN
        • NAT Gateway
      • Virtual Private Gateway
    • security
      • Artifact
      • ACM
      • CloudHSM
      • Cognito
      • Detective
      • Firewall Manager
      • GuardDuty
      • Inspector
      • KMS
      • Macie
      • Network Firewall
      • Resource Access Manager
      • Security Hub
      • Secret Manager
      • Secret Hub
      • Shield
      • STS
      • Trusted Advisor
      • WAF
    • storage
      • Backup
      • EBS
      • EFS
      • FSx
      • S3
        • S3 Glacier
        • S3 Snippet
        • S3 Mountpoint
      • Snow family
      • Storage gateway
      • WorkDocs
    • web & mobile
      • Amplify
      • API Gateway
      • Device Farm
      • Pinpoint
Powered by GitBook
On this page
  • Overview
  • Features
  • Enhanced Monitoring
  • Custom endpoint
  • Scalability
  • Pricing
  • Security
  • RDS Features
  • RDS Custom
  • RDS Backups
  • RDS & Aurora Security
  • Aurora multi-master cluster
  • RDS Proxy
  • Multi-AZ vs Read Replica
  • Trivia
  1. services
  2. database

RDS

Relational Database Service

PreviousQuantum Ledger DatabaseNextAurora

Last updated 1 year ago

|

Overview

Amazon RDS
  • a managed DBaaS service (auto OS patching, DB update, backups...) from AWS.


Features

  • Supports 6 RDS database engines (MariaDB, MySQl, PostgresSQL, SQL Server, Oracle, Aurora (PostgreSQl, MySQL))

  • 3 types of instance classes

    • Standard (m1~m6)

    • Memory optimized (r5, x1, z1d, r6g...)

    • Burstable performance (t2, t3)

  • 3 types of storage

    • General purpose (SSD) storage. Eg: gp2

    • Provisioned IOPS (SSD) storage. For I/O intensive workload

    • Magnetic storage. For backward compatibility.

  • optimized for memory, performance or I/O.

  • Point-in-time restore

    • Automatically back up

    • Daily snpashots and transaction logs.

Enhanced Monitoring

  • A feature available specifically for RDS.

  • Provides detailed metrics about the health of your RDS instances, giving more insight into database load and performance.

-> Particularly useful for detailed analysis, like how different processes use the CPU.

vs. Cloud Watch metrics

  • CloudWatch collects CPU utilization metrics from the hypervisor.

  • Enhanced Monitoring collects metrics directly from an agent on the DB instance.

Custom endpoint

For different works you need different endpoint. Some works are important, some are not (data analysis, report). -> Make sure important tasks are done quickly, without being slowed down by the less important ones.

Scalability

auto scaling when

  • running of storage

    • free storage less than 10%

    • low-storage lass at least 5 minutes

    • 6 hours have passed since last modification

  • you have to set Maximum storage threshold (maximum limit for the storage).


Pricing

Depend on many factors

  • Instance type

    • On-demand

    • Reserved instance (1 or 3 years term)

  • Stop/Start instance (the underlying is EC2 instance)

  • Storage capacity

  • Data transfer

  • Additional features


Security

  • Using 3 layer of security

    • Isolated VPC

    • Network ACLs (subnet level)

    • Security group (instance level)

  • Resource-level security: using IAM

  • Encryption at rest and in transit

    • Encryption at rest (256-bit AES algorithms) using AWS KMS.

    • Encrypt data before store on disk using Transparent data encryption (TDE).

    • Encryption in transit. Eg: connection to DB are secured using HTTPS, using IPsec VPN.


RDS Features

RDS Custom

  • Managed Oracle and SQL Server Database with OS and database customization.

  • De-activate Automation Mode.

  • Benefits

    • all the benefits of a managed service

    • access to te underlying database and OS as you can.

      • config setting

      • install patches

      • enable native features

      • access underlying EC2 instances using SSH or SSM Session Manager

RDS Backups

  • Automated backups (Automated backup turn ON by default)

    • Daily full backup.

    • Transaction log backed-up every 5 minutes (to S3)

  • Manual DB snapshot

    • Manually triggered by user

    • Retention of backup for as long as you want

RDS & Aurora Security

  • At-rest encryption

    • using AWS KMS - must be defined as lauch time

  • If the master is not encrypted, the read replicas can not be encrypted either.

  • To encrypt an un-encrypted database

    • 1st, create a snapshot

    • 2nd, restore that DB from a snapshot as encrypted.

Aurora multi-master cluster

  • Support both read/write heavy workload. (Not like Read-replica, which only support read-heavy workload)

  • Unlike Read-Replica, which has Master and Secondary instance, multi-master cluster can take any instance to read/write as a Master.

RDS Proxy

  • Fully managed database proxy for RDS

  • It helps lower the connection number go through the DB instance.

  • Never publicly accessiable (must be accessed from VPC)

  • Benefit

    • improving DB efficiency

    • serverless, autoscaling, HA (multi-AZ)

    • supports all RDS & Aurora

    • reduced RDS & Aurora failover time by up 66%

Multi-AZ vs Read Replica

  • Multi-AZ standby instance

    • For disaster recovery / failover (auto fail over to Standy instance). Increase availability.

    • SYNC replication

  • Read- Replica (for Read-heavy workload)

    • For READ-scalability

    • ASYNC replication

    • The Read replica DB can be aligned in the same AZ, cross AZ or cross Region

    • Free within the same region


Trivia

  • Maximum of CPU is 32 vCPUs, and maximum of memory is 244 GiB RAM.

  • Storage scaling depend on type of engine

    • Aurora (auto scaling): max is 64TB, or your defined number.

    • SQL Server: 16TB

    • Other (Oracle, and 3 open-sources): 64TB

  • Encrypted at rest include: Automated backups, Read replicas, and Snapshots.

  • When you turn ON Multi-AZ, AWS automatically creates a standby instance in a different AZ.

  • By stopping the DB although you are not paying for DB hours you are still paying for Provisioned IOPs

High availability: and Fail-over.

Do not confuse feature with of EC2.

Multi-AZ
FAQs
Enhanced Monitoring
Detailed Monitoring
3 layers of network security
Aurora multi-master cluster
turn on Multi-AZ in RDS
Read-replica