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

Spike Test 목표 산정 (Data Transfer 요금 측정) #62

Closed
6 tasks done
junha-ahn opened this issue Sep 25, 2023 · 2 comments
Closed
6 tasks done

Spike Test 목표 산정 (Data Transfer 요금 측정) #62

junha-ahn opened this issue Sep 25, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@junha-ahn
Copy link
Member

junha-ahn commented Sep 25, 2023

Description

기존 #37 이슈에서 말했듯, 트래픽에 의한 사용당 요금을 뒤늦게 인지했고 #42 작업을 완료했다.

하지만 실제로는 성능 테스트 (특히 Spike Test)에 대한 목표값을 정하고, 그에 따른 트래픽 계산이 이루어졌어야 한다.

뒤늦게나마, 해당 작업 진행

To do

Test Checklist

@junha-ahn junha-ahn self-assigned this Sep 25, 2023
@junha-ahn junha-ahn added the documentation Improvements or additions to documentation label Sep 25, 2023
@junha-ahn junha-ahn moved this to In Progress in Kanban Infra Sep 26, 2023
@junha-ahn junha-ahn changed the title Data Transfer 계산 Data Transfer 요금 계산 Sep 27, 2023
@junha-ahn
Copy link
Member Author

junha-ahn commented Sep 27, 2023

테스트 목표

가장 간단한 목표 : 인터파크의 0.001% => 0.01% ...

image

Spike Test

인터파크 티켓 홈페이지에는 단 1분 만에 약 370만 트래픽이 몰렸다. 이는 인터파크 티켓 역대 최대 트래픽이다. 동시간 예매자가 몰리면서 사이트 대기열은 20만을 넘기기도 했다. - 출처

요약

  • 동시 접속자: 20만명
  • Daily Personal Average Request, 1인당 하루 평균 요청: 15번 (정확히는 17번)
  0.0001% 0.001% 0.01% 인터파크 기준
MAU 20 2,00 2,000 20만
RPM 300 3,000 30,000 300만 (370만)
RPS 50 500 5,000 50만

Average Load Test

인터파크, 6월 이용자수 1700만 돌파

  0.0001% 0.001% 0.01% 인터파크 기준
MAU       1700만
DAU 50 500 5,000 약 50만
Daily Personal Average Request       15
최대 피크 비율 3      
안전 계수 3      
RPS 0.1rps 1rps 10rps  
(Spike) RPS 62 620 6,200 62만

요금 계산

image

https://aws.amazon.com/ko/elasticloadbalancing/pricing/

LCU는 위 4가지 중 가장 높은 사용량에 대해 요금을 부과한다.

Spike 0.01% 테스트 1번을 진행

  • 초당 6200 커넥션이 생성 (= 248 LCU)
  • 분당 37,000개의 연결 존재 (= 12 LCU)

따라서 0.01% 테스트 한번에 2$ (=3천원) 부과

테스트 횟수 (한달) 1회 10회 100회
ALB 기본금액 2만 2천원
ALB 사용료 3천원 3만원 30만원

기타 요금

데이터 전송 비용

  • 인터넷에서 AWS로 데이터 전송은 무료 (ELB 데이터 처리 비용 발생)
  • AWS에서 인터넷으로 데이터 전송은 서울은 GB당 0.08$
    • Request에 대한 Response, Argocd/그라파나 대시보드 정도 해당
    • 파일, Image 등 존재하지 않는다.
  • AWS 리전 내 가용 영역 간 데이터 전송 인바운드/아웃바운드 모두 GB당 0.02$ (0.01$의 2배)
    • 가용 영역 내의 데이터 전송은 무료

현재 구조

인터넷 => ALB => EC2 (EKS) => RDS

인터넷 => ALB ALB => EC2 (EKS) EC2(EKS) => RDS
LCU 비용 발생 ALB는 가용영역 없음으로무료 (?) 다른 가용 영역이라면GB당 0.02$
image

@junha-ahn
Copy link
Member Author

junha-ahn commented Sep 27, 2023

9월 요금

총예상금액: KRW 230,046

  • 인당 57,500

10월 예상 금액

추가 비용

  • ALB 기본금액 2만 2천원
  • 사용료(30회) 10만원

총예상금액: KRW 40만원

  • 인당 10만원

@junha-ahn junha-ahn changed the title Data Transfer 요금 계산 Spike Test 목표 산정 (Data Transfer 요금 측정) Sep 27, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Kanban Infra Sep 28, 2023
@junha-ahn junha-ahn mentioned this issue Sep 30, 2023
5 tasks
@junha-ahn junha-ahn mentioned this issue Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done
Development

No branches or pull requests

1 participant