-
Notifications
You must be signed in to change notification settings - Fork 0
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
시나리오 기반 부하테스트 적용 #4
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그냥 .m3u8
안에 있는 .ts
파일들만 뽑아서 HTTP 요청을 보내는 것으로 HLS 기능을 대체한거구나 고생했어!!
"artillery": "^2.0.22", | ||
"artillery-engine-socketio-v3": "^1.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
서버 폴더의 package.json에도 동일하게 설치가 되었네 두 번 설치한건가?
일단 깃에선 취소해야할 것 같습니다
afterResponse: 'processM3U8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 그냥 이렇게 함수를 불러오네 신기하네
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
artillery에서 일반 js 함수를 불러올 수 있다니... 따봉
target: 'http://localhost:3000' | ||
processor: './processor.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
배포 서버에도 살짝만 해보면 좋을 것 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
구우우우욷
async function processM3U8(requestSpec, response, context, ee) { | ||
debug('Starting M3U8 processing'); | ||
try { | ||
if (!response || !response.body) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional Chaining 을 피드백 하려다 js 파일인 걸 보고 납득!
|
||
lines.forEach((line) => { | ||
if ( | ||
line.includes('/api/music/') && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
정규식을 쓰면 더 간단하게 해결될 것 같음!
물론 이 방식이 더 직관적인 것은 맞습니다~
- think: 30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think가 sleep 같은 기능을 하는 것으로 알고 있는데, 마지막에 think를 사용한 이유가 궁금합니다~
afterResponse: 'processM3U8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
artillery에서 일반 js 함수를 불러올 수 있다니... 따봉
📋개요
m3u8 동적 요청 및 이후 ts 파일 요청 시나리오에 기반한 부하테스트 진행
🕰️예상 리뷰시간
5분
📢상세내용
💥특이사항