진취적 삶
섹션 9 AWS 기초:RDS + Aurora+ ElasticCache 본문
RDS - Storage auto scaling
데이터베이스 용량이 부족한 경우 자동적으로 scale
RDS Read Replicas for read scalability
읽기 전용 복제본 최대 15까지 생성 가능
동일한 AZ 또는 Cross AZ or Cross Region
읽기 전용 복제본을 설정하면 분석 애플리케이션이 쿼리를 수행할수는 있으나 .
이 쿼리들이 주요 프로덕션 RDS 데이터베이스에는 영향을 미치지 않게 되므로 도움이 된다.
network cost
- in AWS 데이터가 이동할때에 비용이 발생
RDS Multi Az (Disaster Recovery)
- SYNC replication
- One DNS name -automatic app failover to standby
- increase availability
- failover in case of loss of AZ ,loss of network , instance or storage failiure
- 다중 AZ 는 활성화 상태의 데이터베이스 종류와 상관없이 동일한 연결 문자열을 유지한다.
RDS Custom
오라클과 microsoft SQL server 를 다룬다.
de-activate automation mode to perform your customization ,
RDS vs RDS Custom
- RDS 는 데이터 베이스 전체를 관리한다.
- RDS Custom 은 오라클 및 Microsoft SQL Server 에서만 사용할수 있다.
Amazon Aurora
aws 고유 기술
스토리지 자동으로 확장
15개 복제본까지 가능
자가 복구 과정이 있다 p2p 복제를 통해서 복구
마스터는 하나고 복제본은 여럿이며 스토리지가 복제된다.
작은 블록 단위로 자가 복제또는 확장이 일어난다,
writer endpoint = pointing to the master
reader endpoint = connection load balancing
복제본 자동 스케일링
custom endpoints
global aurora
→ 재해복구가 아주 빠름
- promoting another region has an RTO of < 1 minute
- typical cross-region replication takes less than 1 second
RDS Backups
- 자동적으로 백업
- 기간이 지나면 사라짐
- 수동 데이터베이스 스냅샷
- 원하는 만큼 오랫동안 보유 가능
- 스냇샵의 비용은 적다 .
aurora backups
- 자동백업
- 1 to35
- point - in -time recovery in that time frame
- manual DB snapshots
- manually triggered by the use
- retenction of backup for as long as you want
aurora database cloning
- create a new aurora DB cluster from an existing one
- 데이터 베이스 복제는 빠르고 가격이 저렴하다 .
RDS & Aurora Security
- ar-rest encryption :
- database master & replicas enecryption using AWS KMS
- If the master is not encrypted, the read replicas cannot be encrypted
- in-flight encryption :TLS - ready by default ,use the AWS TLS root
- IAM Authentication : IAM roles to connect to your database
- Security Groups :Control Netwrok access to your RDS/ Aurora DB
- No SSH avaiable
- Audit logs can be enabled and sent to cloudwatch logs
Amazaon RDS Proxy
- Fully managed database proxy for RDS
- allows apps to pool and share DB connections established with the database
- CPU , RAM 의 부담을 줄여 데이터베이스 효율성을 향상시킨다.
- Reduced RDS & Aurora failover time by up 66%
- RDS Proxy is never publicly accessibe (must be accessed from VPC)
RDS 프록시를 사용하면 RDS데이터베이스 인스턴스의 연결을 최소화 가능 장애 조치 시간을 최대 66% 까지 감소
ElastiCache
- get from RDS and store in ElastiCache .
- helps relieve load in RDS
- do not support IAM authentication
- 세션 데이터를 ElastiCache 에 저장하는 방법은 서로 다른 EC2 인스턴스들이 필요시 사용자의 상태를 회수할수 있게끔 흔히 사용한다.
patterns for elastiCache
- lazy loading : all the data is cached , data can become stale in cache
- write through : adds or update data in the cache when written to a DB
- session store : store temporary session data in a cache
Redis vs Memcahed
REDIS : 자동 장애 조치로 다중 AZ를 수행하는 기술 읽기 전용 복제본은 읽기 스케일링에 사용되며 가용성이 높다.
백업과 기능 복원 기능도 있다.
MEMCACHED : 데이터 분할에 다중 노드 사용 가용성이 높지 않고 , 지속성 없고, 백업 없음
'AWS SAA' 카테고리의 다른 글
섹션7 EC2 인스턴스 스토리지 (0) | 2023.07.15 |
---|---|
섹션8 고가용성 및 스케일링성:ELB 및 ASG (0) | 2023.07.15 |
섹션10 Route 53 (0) | 2023.07.15 |
섹션 11 클래식 솔루션 아키텍처 토론 (0) | 2023.07.15 |
섹션 1 AWS 공인 SAA (0) | 2023.07.15 |