Repository navigation
extractor 사이트별 동시 요청 상한 추가 - #120
Merged
Merged
Conversation
- SiteConcurrencyLimiter 추가. 정적 fetch 를 사이트별 세마포어로 감쌈 - 사이트는 공개 접미사 목록 기준 등록 도메인(guava InternetDomainName). www·m 이 한 사이트 - 기본값: 사이트당 2개, 최대 대기 15초(fetch.site-limit.*) - 원인: 몰 요청이 고정 IP 하나에서 나가 몰의 IP 단위 제한에 걸리면 그 몰 전체가 막힘 - 자리를 못 얻으면 SiteBusyException(UPSTREAM_ERROR 일시 실패) - PageFetchException 이 아니라서 헤드리스로 넘어가지 않음 - 원인: 넘기면 같은 사이트를 렌더 서버 IP 로 다시 요청해 상한이 무력해짐 - 제한 위치는 DefaultProductLinkExtractor 의 fetch 호출 - 대안: PageFetcher 를 감싸는 @primary 빈 - 기각: 통합 테스트의 @primary StubPageFetcher 와 충돌 - 대안: HttpPageFetcher 의 redirect 홉마다 제한 - 기각: 열려 있는 SSRF 정리 PR(#112)과 같은 파일. 홉 사이 사이트가 바뀌는 체인은 짧음 - 줄무늬 1024 개의 약한 참조 세마포어 - 원인: 사이트 키가 늘어도 메모리가 자라지 않음
|
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 |
|
Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다. |
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.
한눈에
같은 쇼핑몰로 동시에 보내는 요청 수를 제한함
Situation
착수 후 확인
Task
사이트별 동시 fetch 상한 추가
Action
사이트 단위 세마포어
smartstore.naver.com은naver.comfetch.site-limit.max-concurrent·fetch.site-limit.max-wait자리를 못 얻으면 헤드리스로 넘기지 않음
제한 위치
Result
테스트
후속
연관 이슈