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

Change metadb with SQLite (RDBMS). #888

Closed
4 tasks done
powerkimhub opened this issue Jul 18, 2023 · 3 comments
Closed
4 tasks done

Change metadb with SQLite (RDBMS). #888

powerkimhub opened this issue Jul 18, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request server

Comments

@powerkimhub
Copy link
Member

powerkimhub commented Jul 18, 2023

  • [AS-IS] 메타 정보 관리에 cb-store를 활용한 Key-Value 스토리지 활용 중

  • [이슈] Key-Value 스토리지 기반 메타 정보 관리 부적합한 부분 발생

    • Join 형태의 List 기능을 코드로 해결해옴
    • Key값에 path expression(/region/) 파싱을 코드로 처리 => 관리 대상 증가 => 성능 저하
      • ex) </resource-info-spaces/iids/ibmvpc-us-south-1-config/vpc/vpc-01> vpc-01-cdkugnfcl16cfi09tbkg:r006-91e029ac-9b2f-42bb-9a1b-0e826ea4759b
  • [대안] embedded RDBMS SQLite (https://www.sqlite.org/)

    • 장점: 별도 설치 필요 없음, MariaDB 거의 호환, 안드로이드 기본 탑재 / 항공기 활용 사례(안정성 측면), 암호화 지원 등
    • 단점: 동시성 제한(Write:DB Locking) => DB 동시 접근 성능 저하: 현재 Locking 운영으로, DB 동시 접근 시간이 최소화 되어 있음
  • [계획]

    • (1) 연결 설정 관리 기능 metadb 변경 및 주요 기능 테스트
    • (2) VPC~VM 관련 관리 기능 metadb 변경 및 주요 기능 테스트
    • (3) K8S 관련 관리 기능 metadb 변경 및 주요 기능 테스트
    • (4) cb-store 관련 코드 삭제 및 주요 기능 테스트
@powerkimhub powerkimhub added enhancement New feature or request server labels Jul 18, 2023
@powerkimhub powerkimhub self-assigned this Jul 18, 2023
@powerkimhub powerkimhub changed the title Change the metadb from cb-store (Key-Value) to SQLite (RDBMS). Change metadb with SQLite (RDBMS). Jul 18, 2023
@powerkimhub
Copy link
Member Author

powerkimhub commented Jul 23, 2023

@powerkimhub
Copy link
Member Author

  • Change metadb with SQLite for credential, Region, Connection Info management

@powerkimhub
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant