- NEXUS OSS 버전을 운영중인 플랫폼의 메인 Private Registry 로 구축하였다.
- 사용하다보니 20만 REQUEST PER DAY라는 것을 발견했다. 😱
- 그런데 어느덧 데일리 사용량이 10만에 육박한다는 것을 인지! 😇
- 20만 넘어가면 서비스 안되는건가?
- POD 재기동하면 초기화되지 않을까?
- 혹시, OSS 인데 제한있는거 좀 오버같은데, 좀 더 확인해보자
- https://help.sonatype.com/en/usage-center.html 공식사이트 답변이 진리

Sonatype Nexus Repository의 커뮤니티 에디션(CE)에서 사용 제한(Usage Limits)을 초과할 경우 발생하는 가장 핵심적인 제한 사항은 '새로운 컴포넌트 추가 기능의 차단'이다.!
사용 제한 수치를 초과하면, 해당 인스턴스의 사용량이 다시 제한 범위 내로 들어올 때까지 사용자는 새로운 컴포넌트를 추가(업로드 및 게시)할 수 없게 된다..
이미지 풀은 된다. 그러나 아쉽게도 이미지 업로드는 불가능하다.
테스트 해보니 request수는 초기화 안된다.
별도의 노출 설정없이 promethues rule 권한만 계정에 부여해주면 된다.!
결론: REQUEST PER DAY에 포함되지 않습니다.
Nexus는 메트릭 엔드포인트를 일반적인 API 요청과 분리해서 처리합니다. 이는 모니터링이 실제 사용량 통계를 왜곡하지 않도록 하기 위함입니다.
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. The default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
scrape_configs:
- job_name: "prometheus"
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /service/rest/metrics/prometheus
scheme: http
basic_auth:
username: admin
password: admin
static_configs:
- targets: ["localhost:8081"]```
----
# 결론
- POD 초기화해도 당일 서비스 제한 걸림
- 프로메테우스 수집은 영향없음
- REQUEST 제한 걸리면 업로드만 안됨 PULL 은 됨
- 업로드 자주하는 CUSTOM 이미지는 HARBOR로 가자..