프로그래밍/ETC

[Elasticache] Serverless Cluster - Redisson Connection 문제

 

기존 샤드 2 레플리카 2 로 구성해놓은게 생각보다 비용이 많이나와 (42USD...) 

클러스터 삭제 후 다시 생성했다..

 

Elasticache 생성 방식 중 Serverless 방식이 새로 나와 해당 방식으로 클러스터를 만들고

Redis Config를 수정해주고 테스트를 진행해보았다..

 

테스트를 진행하니 자꾸 커넥션이 클로즈 되어 트랜잭션이 자꾸 롤백되고있었다

로그를 보니 다음처럼 계속 다른 IP host로 커넥션을 요청을 반복하고있었다

 

2024-01-24T12:47:37.027Z	24 connections initialized for IP1/IP1:6379
2024-01-24T12:47:37.021Z	IP2/IP2:6379 master and related slaves: removed
2024-01-24T12:47:37.021Z	master: rediss://IP1:6379 added for slot ranges: [[0-16383]]
2024-01-24T12:47:36.843Z	24 connections initialized for IP2/IP2:6379
2024-01-24T12:47:36.841Z	IP3/IP3:6379 master and related slaves: removed
2024-01-24T12:47:36.841Z	master: rediss://IP2:6379 added for slot ranges: [[0-16383]]
2024-01-24T12:47:36.742Z	24 connections initialized for IP3/IP3:6379
2024-01-24T12:47:36.739Z	IP1/IP1:6379 master and related slaves: removed
2024-01-24T12:47:36.739Z	master: rediss://IP3:6379 added for slot ranges: [[0-16383]]
2024-01-24T12:47:36.725Z	1 connections initialized for IP1/IP1:6379
2024-01-24T12:47:36.529Z	1 connections initialized for IP2/IP2:6379
2024-01-24T12:47:36.450Z	1 connections initialized for IP3/IP3:6379
2024-01-24T12:47:06.164Z	24 connections initialized for IP2/IP2:6379
2024-01-24T12:47:06.160Z	master: rediss://IP2:6379 added for slot ranges: [[0-16383]]
2024-01-24T12:47:06.159Z	IP3/IP3:6379 master and related slaves: removed
2024-01-24T12:47:05.949Z	24 connections initialized for IP3/IP3:6379
2024-01-24T12:47:05.945Z	master: rediss://IP3:6379 added for slot ranges: [[0-16383]]
2024-01-24T12:47:05.944Z	IP1/IP1:6379 master and related slaves: removed
2024-01-24T12:47:05.854Z	24 connections initialized for IP1/IP1:6379
2024-01-24T12:47:05.850Z	IP2/IP2:6379 master and related slaves: removed
2024-01-24T12:47:05.850Z	master: rediss://IP1:6379 added for slot ranges: [[0-16383]]
2024-01-24T12:47:05.832Z	1 connections initialized for IP2/IP2:6379
2024-01-24T12:47:05.639Z	1 connections initialized for IP3/IP3:6379
2024-01-24T12:47:05.564Z	1 connections initialized for IP1/IP1:6379
2024-01-24T12:46:55.598Z	24 connections initialized for IP3/IP3:6379
2024-01-24T12:46:55.595Z	master: rediss://IP3:6379 added for slot ranges: [[0-16383]]
2024-01-24T12:46:55.593Z	IP2/IP2:6379 master and related slaves: removed

 

 

한참을 찾아보니 redisson git에서 동일 이슈가 올라와 처리중이었다....

아직 해결은 되지않아 다시 클러스터 설계방식으로 생성해서 설정해주었다...

 

 

2월 중으로 마이너 버전이 올라오면 Serverless로도 설정이 가능하다!

 

728x90