Repository navigation
nginx 연결 한도 상향 - #1223
Merged
Merged
nginx 연결 한도 상향#1223
Conversation
- nginx 기본 설정(nginx.conf)을 repo 정본으로 추가하고 배포가 덮어씀
- worker_connections 768 에서 4096 으로 상향
- worker_rlimit_nofile 8192 추가
- 원인: systemd 기본 soft 한도 1024 가 워커당 연결 수를 막음
- 127.0.0.1:9112 에 stub_status 추가
- 대안: 서버에서 sed 로 기본 파일 수정
- 기각: 서버 상태가 리뷰되지 않음. 패키지 기본 문구가 바뀌면 조용히 어긋남
- 대안: modules-enabled 에 include 추가
- 기각: events 블록은 한 번만 올 수 있어 worker_connections 를 못 넣음
- 사이트 설정과 같이 백업하고 nginx -t 실패 시 둘 다 되돌림
- CI 에 기본 설정 문법 검증 추가
- 기본 설정은 infra/nginx/main/ 아래에 둠
- 원인: 기존 검증이 infra/nginx/*.conf 를 사이트 조각으로 감싸 검사함
- provision-runtime.sh 에 nginx-prometheus-exporter 1.5.3 컨테이너 추가
- 서비스 라벨 piki-nginx
- 원인: piki-core 로 붙이면 앱이 죽어도 up{job="piki-core"} 가 1 로 남음
- host 네트워크와 127.0.0.1 listen
- 대안: bridge 네트워크와 docker 게이트웨이 IP 의 stub_status
- 기각: 부팅 때 docker0 보다 nginx 가 먼저 뜨면 bind 실패로 nginx 전체가 못 뜸
- 이미지와 인자가 같으면 다시 띄우지 않음
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 |
Merged
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.
한눈에
core 서버 nginx 의 동시 연결 한도를 올리고 연결 수를 수집함
Situation
착수 후 확인
Task
nginx 연결 한도 상향과 사용량 수집
Action
nginx 기본 설정 파일을 repo 정본으로 관리
infra/nginx/main/아래에 둠infra/nginx/*.conf를 사이트 조각으로 감싸 검사함값 산정
연결 수 exporter 컨테이너 추가
piki-nginxpiki-core로 붙이면 앱이 죽어도 대시보드의 core 생존 표시가 1 로 남음Result
dev 서버 수동 적용
up{job="piki-nginx"}1 과 활성 연결 수 들어옴후속
연관 이슈