[#336] Firebase CPU quota 부족 문제를 해결한다#340
Merged
Conversation
Owner
opficdev
commented
Mar 31, 2026
- closed Firebase CPU quota 부족 문제를 해결한다 #336
Contributor
There was a problem hiding this comment.
Code Review
이번 풀 리퀘스트는 firebase-functions 라이브러리를 7.2.2 버전으로 업데이트하고, 전반적인 클라우드 함수의 maxInstances 설정을 하향 조정하여 리소스 사용을 최적화합니다. 리뷰 결과, onCall 함수의 인스턴스 제한(2)은 트래픽 증가 시 429 Too Many Requests 에러를 유발할 수 있어 상향 조정이 권장되었습니다. 또한, onTaskDispatched 및 onSchedule 함수의 인스턴스를 1로 제한할 경우 처리 속도 저하나 작업 중첩에 따른 실행 실패 가능성이 있어 이에 대한 검토가 필요합니다.
Firebase/functions/src/auth/apple.ts
Outdated
| export const requestAppleCustomToken = onCall({ | ||
| cors: true, | ||
| maxInstances: 10, | ||
| maxInstances: 2, |
Contributor
There was a problem hiding this comment.
|
|
||
| // Cloud Tasks에 의해 트리거되는 함수 | ||
| export const sendPushNotification = onTaskDispatched({ | ||
| maxInstances: 1, |
Contributor
| }; | ||
|
|
||
| export const scheduleTodoReminder = onSchedule({ | ||
| maxInstances: 1, |
Contributor
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.