Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trials for inspectResourcesOverview to prevent rateLimitExceeded from CSP #1096

Merged
merged 2 commits into from
May 7, 2022

Conversation

seokho-son
Copy link
Member

CSP 리소스 조회시 rateLimitExceeded 가 발생하는 경우가 빈번하여, (rateLimiting: #1081)

재시도 로직을 추가함.

  • rateLimitMessage := "limit" //limit이 포함된 에러가 있는 경우
  • maxTrials := 5 // 최대 5회 재수행
  • common.RandomSleep(40, 80) // 수행당 40~80초 사이의 값으로 지연 수행

관련 애러: [CLOUD-BARISTA].[ERROR]: 2022-05-07 16:01:43 utility.go:628, github.com/cloud-barista/cb-tumblebug/src/core/mcis.InspectResourcesOverview.func1() - {"message":"googleapi: Error 403: Quota exceeded for quota metric 'Read requests' and limit 'Read requests per minute' of service 'compute.googleapis.com' for consumer 'project_number:'., rateLimitExceeded"}

@seokho-son seokho-son requested a review from jihoon-seo as a code owner May 7, 2022 07:19
@seokho-son
Copy link
Member Author

/approve

@seokho-son seokho-son merged commit 3e56a9b into cloud-barista:main May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant