Repository navigation
feat(adminpanel): 리소스 브로커 VM 목록을 계정 노드 상태로 조회하는 API 추가 - #85
Merged
Merged
Conversation
Comment on lines
+36
to
+38
| with urlopen( # nosec B310 | ||
| request, timeout=settings.RESOURCE_BROKER_TIMEOUT_SECONDS | ||
| ) as response: |
jongcoding
reviewed
Sep 30, 2026
| "node_id": target.get("resource_target_id"), | ||
| "node_name": target.get("name"), | ||
| "status": "HEALTHY" if healthy else "DEGRADED", | ||
| "running_instances": (target.get("container_storage_usage") or {}).get( |
Contributor
There was a problem hiding this comment.
total_container_count는 컨테이너 수라 멀티 컨테이너 인스턴스 1개도 2개로 집계됩니다
인스턴스 수를 별도로 받거나 container_count로 표시해주시면 좋겠습니다
samdi70
force-pushed
the
feature/admin-resources
branch
from
October 1, 2026 02:56
4616d01 to
2ca56ed
Compare
jongcoding
reviewed
Oct 1, 2026
jongcoding
left a comment
Contributor
There was a problem hiding this comment.
컨테이너 수를 인스턴스 수로 표시하던 부분은 수정됐습니다
실제 브로커로 501개 노드 조회와 계정별 합산도 확인했고, 추가 수정 의견은 없습니다
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.
배경
GET /admin/resources는 명세와 프론트 화면이 있는데 백엔드 경로가 없었습니다.리소스 브로커의
GET /v1/inventory/resource-targets를 기준으로 구현했습니다.매핑
account_id로 묶습니다.limit상한이 500 이라total을 채울 때까지offset으로 이어 받습니다.설정
RESOURCE_BROKER_BASE_URLRESOURCE_BROKER_TIMEOUT_SECONDSINVENTORY_API_TOKEN(
.env.example에 추가). 기본값만으로도 부팅되며, 실제 주소와 토큰은 배포 환경에서 넣습니다.config/settings.py의 스케줄러 블록은 손대지 않고, 뒤에 같은 규칙의 URL 검증 함수와 브로커설정 3줄만 추가했습니다. #80·#26 도 같은 파일 끝에 붙여서 머지 순서에 따라 파일 끝 충돌이
나지만 양쪽 살리기로 끝납니다.
테스트
하지 않은 것
응답 캐싱. 호출마다 브로커에 바로 묻습니다. 느리면
cache.get_or_set로 추가하겠습니다.