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

GCP, Tencent NLBHandler 기능 구현 #675

Merged

Conversation

choryang
Copy link
Contributor

@choryang choryang commented Jun 9, 2022

GCP

  • 제공 불가 기능

    • ChangeListener : Port, Protocol 변경 불가
      • errors.New("GCP_CANNOT_CHANGE_LISTENER") 처리
    • ChangeVMGroupInfo : Port, Protocol 변경 불가
      • errors.New("GCP_CANNOT_CHANGE_VMGroupInfo") 처리
  • Listener

    • Listener 갯수
      • CB-Spider NLB Listener 1개 제공
      • GCP NLB Listener n개 제공 가능
        → 1개만 사용. nameId= nb 이름, systemId=forwarding rule url set
    • Port
      • CB-Spider NLB Listener Port : 단일 포트
      • GCP NLB Listener(=forwarding rule) : Port Range
        → from-to 를 동일하게 set. ex) 80-80
  • Health Checker

    • Protocol: HTTP만 가능
      • CB-Spider NLB Health Checker Protocol: TCP,HTTP,HTTPS 제공
      • GCP NLB Health Checker Protocol: HTTP 제공
        • Protocol=HTTP로 고정, 변경 불가
        • Port 변경 가능
  • VM Group

    • Protocol: 사용하지 않음.
      • CB-Spider NLB Listener Protocol: TCP, UDP, HTTP, HTTPS 제공
      • GCP 는 VM Group(=TargetPool)에 대해 protocol, port 사용하지 않음
        • GetNB 에서는 사용하는 instance에서 추출하여 VPCIID Set.
  • 특이사항

    • LB 관계의 편의성을 위해 세 구성요소의 이름을 동일하게 함.
      (ForwardingRule Name = TargetPool Name = HealthChecker Name)
    • Banckend(targetPool)은 project별 50개까지 생성 가능

Tencent

  • 제공 불가 기능

    • ChangeListener : Port, Protocol 변경 불가
    • errors.New("TENCENT_CANNOT_CHANGE_LISTENER") 처리
  • Listener

    • Protocol : TCP, UDP 제공
      • Tencent NLB Listener Protocol: HTTP, HTTPS, TCP, UDP, TCPSSL 제공
      • CB-Spider NLB Listener Protocol: TCP, UDP 제공
    • Port, Protocol 변경 불가
  • Health Checker

    • Protocol: TCP, HTTP, CUSTOM 제공 (HTTPS 제공 불가)
      • Tencent NLB Health Checker Protocol: TCP, HTTP, CUSTOM 제공
        • TCP Listener 일 때 → TCP, HTTP Health Checker 가능
        • UDP Listener 일 때 → CUSTOM Health Checker만 가능(Port만 지정)
      • CB-Spider NLB Health Checker Protocol: TCP,HTTP,HTTPS 제공
  • VM Group

    • Protocol: TCP만 제공
      • Listener의 Protocol이 TCP, UDP인 경우 TCP로 설정
      • CB-Spider NLB Listener Protocol: TCP, UDP, HTTP, HTTPS 제공
    • Protocol 변경 불가, Port 변경 가능
      • ChangeVMGroupInfo 의 경우 Port만 변경하도록 구현

choryang and others added 30 commits May 23, 2022 10:55
ListNLB
GetLNB
DeleteLNB
ChangeVMGroupInfo
AddVMs
RemoveVMs
ListNLB
GetLNB
DeleteLNB
ChangeListener
AddVMs
RemoveVMs
GetVMGroupHealthInfo
ChangeHealthCheckerInfo
@powerkimhub powerkimhub self-requested a review June 9, 2022 07:50
@powerkimhub powerkimhub merged commit 11d4981 into cloud-barista:master Jun 9, 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.

4 participants