문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
database:aurora [2022/02/11 13:28] kwon37xi |
database:aurora [2024/04/03 10:54] (현재) kwon37xi [aws-advanced-jdbc-wrapper - Read/Write Cluster] |
||
---|---|---|---|
줄 4: | 줄 4: | ||
===== JDBC ===== | ===== JDBC ===== | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | + | * [[https:// |
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
* [[database: | * [[database: | ||
+ | ==== aws-advanced-jdbc-wrapper - Read/Write Cluster ==== | ||
+ | * https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | <note warning> | ||
+ | The use of read/write splitting with the annotation @Transactional(readOnly = True) is only recommended for configurations using an internal connection pool. Using the annotation with any other configurations will cause a significant performance degradation. | ||
+ | </ | ||
===== 서버 설정 ===== | ===== 서버 설정 ===== | ||
줄 36: | 줄 45: | ||
* [[https:// | * [[https:// | ||
* 강제 적용하려면 cluster parameter 에서 값을 명시적으로 조정할 수 있음. | * 강제 적용하려면 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 ===== | ===== Aurora for MySQL 8 ===== | ||
* [[https:// | * [[https:// | ||
줄 42: | 줄 61: | ||
* [[https:// | * [[https:// | ||
+ | ===== 비용 절감 ===== | ||
+ | * [[https:// | ||
===== 참고 ===== | ===== 참고 ===== |