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

Refactor API Functions, Introduce Price Collector, and Update Documents #14

Merged
merged 10 commits into from
Sep 2, 2024

Conversation

hippo-an
Copy link
Contributor

작업내용

  • 하나의 api 에서 제공하던 조회와 업데이트를 분리
  • 분리된 파일로 서비스 계층의 dto 제공
  • price 관련 price collector 생성
  • 관련된 api swagger 문서에 대한 업데이트
  • tumblebug update 에 따른 docker compose tumblebug 구성 변경
  • ant docker file rsync 기본 설치
  • 사용하지 않는 make target 제거
  • 국제화에 따른 readme 영문화

관련 이슈 및 고려 사항

  • update 시 connection 정보 제공을 위해 provider 와 region 은 반드시 넘겨야함
    • provider-region 의 format 으로 생성
  • provider 에 따른 instance type 과 fetch 방식에 대한 고려를 응답 시간에 따라 적절하게 개선 필요
    • 전체 instance type 없이 region 으로 조회 결과 - 리전에 따라 다르지만 대략적인 시간
      • azure - 10초
      • alibaba - 약 1분
      • aws - 약 2분
      • gcp - 5분 이상 -> instance type 이 지정되는 경우 15초 미만
      • ibm - 1분
      • tencent - 10초
  • price update 의 경우 7일 이내의 데이터가 없으면 다시 업데이트
    • 이 과정에서 provider, region 그리고 instance type(존재하는 경우)를 이용해 필터링
    • instance type 이 aaa 와 같이 존재하지 않는 인스턴스 타입을 넣는 경우 해당 데이터가 db 에 존재하지 않기 때문에 price collector 를 통한 가격 조회
    • 동일한 데이터 (7일 이내의 price) 가 중복되어 database 에 쌓임
    • instance type 검증 등과 같은 전처리 과정의 필요성 대두

@MZC-CSC MZC-CSC merged commit 4a66d0a into cloud-barista:main Sep 2, 2024
2 checks passed
MZC-CSC pushed a commit that referenced this pull request Nov 4, 2024
update load test api for performance evaluation
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.

2 participants