Repository navigation
feat: 릴레이 호출 절감과 디스크 안전 장애 추적 - #202
Merged
Merged
Conversation
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.
변경
올리브영에서 같은 검색도 매번 브라우저와 quota를 사용해 야간 429가 발생할 수 있었습니다. 인증된 릴레이에 256항목/직렬화16MiB TTL 캐시와 동일 진행 요청 합치기를 추가해 REST·MCP가 결과를 공유합니다. 일일/분당 한도는 유지하며 차단 사유와 재시도 시각을 제공합니다. REST 캐시에서 불필요한 query도 제거합니다.
REST/MCP·HTTP·맥 릴레이를 요청 ID로 연결하고 브라우저 시작·회수·실패, quota 소비와 주기적 잔여량을 기록합니다. 로컬 JSONL은 서비스별64MiB, 파일4MiB, 생성 후7일로 제한하고 기록 후 디스크2GiB 여유가 없으면 기록을 중단합니다. 큐256개, 이벤트2KiB 이하이며 원문·검색어·좌표·토큰·IP는 기록하지 않습니다. Worker 실패 및 성공1% 표본은 관리형 로그로 보존합니다.
검증
npm run check: 191 files / 2,139 tests passednpm run test:coverage: statements/branches/functions/lines 100%npm run build,wrangler deploy --dry-run통과운영 방법과 기록 유실 조건은
docs/relay-observability.md에 정리했습니다. 릴레이 캐시는 재고1분, 상품/매장5분, 상품ID10분이며 REST 캐시 TTL은 별도로 적용됩니다. 제품버전1.2.6. 병합 후 Mac 두 런타임도 별도 갱신·실조회 확인합니다.