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

[2주차] 2단계 & 3단계 제출 #272

Merged
merged 3 commits into from
May 3, 2022

Conversation

loop-study
Copy link

안녕하세요! 박현철입니다.
삽질을 하다보니 이제야 2단계 & 3단계 동시 제출합니다.
부하테스트 스크립트와 결과는 스크립트 폴더 확인 부탁드립니다.
진행하면서 궁금사항이 있습니다.

2단계

  1. 부하테스트를 진행하면서 에러가 연속적으로 발생한다면 거기서 중단하는게 맞는지 궁금합니다.(CPU 점유율이 170퍼 초과)

인프라공방_2주차_부하테스트_cpu170퍼

  1. 경로찾기로 테스트를 진행할 경우 출발지와 도착지에 따라 리소스 편차가 많이 났습니다. 이럴 경우 리소스를 많은거와 적은 것 중에서 어느 걸로 테스트를 진행해야할지 궁금합니다.
    image

3단계

  1. CloutWatch 위젯 설정에서 Custom Namespace에 종류가 많이 존재하는데 무엇으로 지표를 구성하면 좋을지 궁금합니다.

인프라공방_2주차_3단계_질문_01

  1. disk_uesd 관련 지표를 보면 retype, path 종류가 다양한데 retype:ext4, path:/ 로 선택했습니다.3.
    각 옵션마다 어떤 의미를 가지는지 궁금합니다.

인프라공방_2주차_클라우드와치_세팅_09_disk지표_선택하기

확인 부탁드립니다.
감사합니다.

2022. 05. 03.
1. README.md
- 2단계 요구사항 정리

2. application-prod.properties
- 운영디비 설정 추가

3. 부하테스트 스크립트
- 접속 빈도 스크립트 추가
- 데이터 갱신 스크립트 추가
- 데이터 조회 스크립트 추가

Resolves : loop-study
See also : brainbackdoor
2022. 05. 03.
1. README.md
- 3단계 요구사항 정리

2. 로깅 세팅
- build.gradle 로깅 의존성 추가
- logback.xml 생성
  - file-appender.xml 생성
  - json-appender.xml 생성

3. 로깅 설정
- file 로깅
  - 로그인 AuthController.java
  - 회원가입 MemberController.java
- json 로깅
  - 경로찾기 MapService.java

Resolves : loop-study
See also : brainbackdoor
2022. 05. 03.
1. README.md
- 3단계 요구사항 체크리스트 수정

2. cloudwatch 세팅
- build.gradle : 의존성 추가
- application.properties : 수집 세팅 추가

Resolves : loop-study
See also : brainbackdoor
@brainbackdoor
Copy link
Contributor

  1. 네, 중단하는 것이 맞습니다. 이미 평소 부하도 대응이 안되는 상황이므로, 서버를 증설하고 테스트하는 것이 맞습니다.
  2. 이럴경우, 가장 많은 조회가 이뤄지는 경우, 리소스가 가장 많이 드는 경우 두 가지에 대해 테스트해봅니다. 전자의 경우는 반드시 목표한 성능을 보장하여야 하며, 후자의 경우 (빈도가 적다면), 최대 응답시간이 어느정도인지를 파악하기 위함이며 어느정도까지 허용가능한지 정책을 세우고 개선할지 말지를 판단합니다.
  3. 힌트 자료를 보고 진행해보셔도 좋고, 서버진단하기 하단에 제공해드린 지표들을 보고 참고해보셔도 좋습니다.
  4. 옵션은 아니고 EBS 볼륨이 마운트하고 있는 디바이스라고 보시면 됩니다. 각 디바이스별 특징은 링크를 확인해보셔요

Copy link
Contributor

@brainbackdoor brainbackdoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2주 차 미션 진행하느라 고생하셨어요! 👍🏻
질문 주신 부분들은 Comment 로 남겨두었어요~
3주 차 미션도 여러가지 시도 해보시기 바래요~ 🙏🏻

1. 부하테스트 전제조건은 어느정도로 설정하셨나요
- 예상 일일 사용자 수 7,516,800 DAU 설정함.
- 목표 레이턴시는 75ms
- T = 목표 레이턴시 * 2 + 내부망 1초 = 1150ms
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻


nginx 로그
/var/log/nginx/access.log
/var/log/nginx/error.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

로그들을 cloudwatch 로 수집하지는 않으셨군요

@brainbackdoor brainbackdoor merged commit 9b1feb4 into next-step:loop-study May 3, 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.

None yet

2 participants