From 51aa4f033a18ef3154c9245b8180f6615d77ef4f Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 15 Sep 2025 14:33:54 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20Rate=20Limiting=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?=EC=84=B8=EB=B6=80=EC=82=AC=ED=95=AD=20=ED=99=95=EC=9D=B8=20?= =?UTF-8?q?=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - redis==5.0.1, slowapi==0.1.9 버전 확정 - auth-redis 네트워크 연결 정보 확인 (appnet, 172.21.0.2) - 미확인 사항 모두 해결 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- troubleshooting/250915_rate_limiting_미구현.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/troubleshooting/250915_rate_limiting_미구현.md b/troubleshooting/250915_rate_limiting_미구현.md index dc296dd..bebec1f 100644 --- a/troubleshooting/250915_rate_limiting_미구현.md +++ b/troubleshooting/250915_rate_limiting_미구현.md @@ -54,8 +54,8 @@ Frontend → Gateway(51123:8100) → rb8001(51124:8001) → OpenAI API 1. **requirements.txt** - 위치: `/home/admin/robeing-gateway/requirements.txt` - 추가 필요 패키지: - - redis (버전 확인 필요) - - slowapi (버전 확인 필요) + - redis==5.0.1 + - slowapi==0.1.9 2. **main.py** - 위치: `/home/admin/robeing-gateway/app/main.py` @@ -88,9 +88,13 @@ app.add_exception_handler(RateLimitExceeded, rate_limit_handler) # 1줄 @limiter.limit("20 per minute") # 1줄 추가 ``` -### 미확인 사항 -- redis, slowapi 정확한 버전 결정 필요 -- auth-redis 네트워크 연결 방법 확인 필요 +### 확인 완료 사항 +- **패키지 버전**: redis==5.0.1, slowapi==0.1.9 +- **Redis 연결**: + - 호스트명: auth-redis + - 포트: 6379 + - 네트워크: appnet (robeing-gateway와 같은 네트워크) + - IP: 172.21.0.2 ### 배포 - Docker 재빌드: `docker compose down && docker compose up -d --build`