문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
database:aurora [2018/02/22 14:00] kwon37xi |
database:aurora [2023/11/17 10:14] (현재) kwon37xi [Read/Write Cluster] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Aurora - AWS Database ====== | ====== Aurora - AWS Database ====== | ||
+ | * [[https:// | ||
+ | ===== JDBC ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[database: | ||
+ | ==== aws-advanced-jdbc-wrapper - Read/Write Cluster ==== | ||
+ | * https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | ===== 서버 설정 ===== | ||
+ | * [[http:// | ||
+ | * 파라미터 그룹을 통해서 설정한다. | ||
+ | |||
+ | ==== log ==== | ||
+ | * '' | ||
+ | * RDS Instance Modify 에서 **Log Exports > Slow Query Log**를 로그로 Cloud Watch로 전송한다. | ||
+ | * Clow Watch 에서 RDS 이름으로 검색하면 볼 수 있고 알림도 걸 수 있다. | ||
+ | |||
+ | ==== TimeZone ==== | ||
+ | * (접속을 클러스터로 하면) Cluster Parameter Group 에서, (접속을 인스턴스 단위로 하면) DB Parameter Group 에서 '' | ||
+ | * 적용 후에 접속해서 아래 값들 올바른 지 확인< | ||
+ | SELECT @@time_zone; | ||
+ | SELECT NOW(); -- 현재 한국 시간 | ||
+ | </ | ||
===== End Point ===== | ===== End Point ===== | ||
* [[https:// | * [[https:// | ||
* Aurora 는 cluster endpoint, readonly endpoint, instance endpoint 를 지원한다. readonly endpoint는 replicas 들 사이에서 load balancing도 해준다. | * Aurora 는 cluster endpoint, readonly endpoint, instance endpoint 를 지원한다. readonly endpoint는 replicas 들 사이에서 load balancing도 해준다. | ||
+ | * Cluster Endpoint는 자체적으로 Read/Write 모두에 대한 정보를 포함하고 있다. [[database: | ||
+ | |||
+ | ===== Blocked Transaction ===== | ||
+ | * [[https:// | ||
+ | * 커밋되지 않은 트랜잭션으로 인해 다른 트랜잭션들이 block 된 상태. | ||
+ | ===== Performance ===== | ||
+ | ==== max_connections ==== | ||
+ | * [[https:// | ||
+ | * 강제 적용하려면 cluster parameter 에서 값을 명시적으로 조정할 수 있음. | ||
+ | ==== Replica(reader instance) history list length 줄이기 ==== | ||
+ | * **READ Only** / Reader Instance 로 접속한 경우 아래와 같이 커넥션 접속시 설정해주면 history length 가 줄어든다. | ||
+ | * Aurora 는 writer/ | ||
+ | * Aurora Replica 가 기본적으로 '' | ||
+ | * [[https:// | ||
+ | <code sql> | ||
+ | set session aurora_read_replica_read_committed = ON; | ||
+ | set session transaction isolation level read committed; | ||
+ | </ | ||
+ | * '' | ||
+ | * '' | ||
+ | ===== Aurora for MySQL 8 ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ===== 비용 절감 ===== | ||
+ | * [[https:// | ||
===== 참고 ===== | ===== 참고 ===== | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |