Repository navigation
Redis 끊긴 연결 감지 추가 - #1235
Merged
Merged
Redis 끊긴 연결 감지 추가#1235
Conversation
- Lettuce 소켓 옵션에 TCP keepalive·TCP_USER_TIMEOUT 추가 (#1234) - 원인: 10-15 prod 앱 서버 자동 업데이트 뒤 Redis 서버 쪽만 연결을 닫음 - 원인: Lettuce 는 명령 시간 초과에도 연결을 버리지 않음 - 결과: OS 재전송 한도 약 15분 동안 Redis 호출 전부 실패 - keepalive 시작 30초 - 원인: Redis 서버 기본 tcp-keepalive 300초보다 먼저 앱 서버의 NAT 기록을 되살려야 함 - TCP_USER_TIMEOUT 10초 - netty-transport-native-epoll 런타임 의존성 추가 (linux-aarch_64·linux-x86_64) - 원인: Lettuce 는 TCP_USER_TIMEOUT 을 epoll 에서만 적용 - 배포 서버는 arm64 - CI 는 x86_64 - socketOptions 교체 뒤 connect-timeout 다시 설정 - 원인: Boot 가 먼저 넣은 값이 교체로 사라짐 - arm64 리눅스 컨테이너에서 사고 재현 - 결과: 설정 적용 시 9초 뒤 재연결 - 결과: 설정 없으면 90초 내내 실패 - 대안: 컨테이너 tcp_retries2 낮춤 - 기각: MySQL·extractor 호출·SSE 등 모든 TCP 연결에 적용
Closed
|
Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
한눈에
앱이 끊긴 Redis 연결을 늦게 알아채는 문제 수정
Situation
반쪽 연결
tcp_retries215 (OS 기본 재전송 한도)Task
Redis 끊긴 연결 감지
Action
Redis 연결 확인 30초 주기
응답 없는 연결 10초 뒤 닫기
TCP_USER_TIMEOUT사용connect-timeout 다시 설정
테스트
구현 방식 비교
validateConnection)Result
arm64 리눅스 컨테이너 재현
후속
연관 이슈