성능 테스트를 시작하고 싶습니다.
자기소개
@ Mochizuki Kotaro
계기
Types of performance testing
Load testing
특정 부하를 처리할 수 있는지 확인

Soak testing
지속적인 부하를 줄 때 시스템이 어떻게 작동하는지 확인

Spike testing
단기간 대량 액세스의 경우를 밝혀

Stress testing
부하를 올려서 한계를 잡는다

보기 지표
지속적인 부하를 줄 때 시스템이 어떻게 작동하는지 확인

Spike testing
단기간 대량 액세스의 경우를 밝혀

Stress testing
부하를 올려서 한계를 잡는다

보기 지표
부하를 올려서 한계를 잡는다

보기 지표
보기 도구
top command

유무를 말하지 않고 우울 키는
z
색이 붙습니다

z x c b

htop command
처음부터 보기 쉽다. 특히 메모리.

부하를 가하는 방법
z
색이 붙습니다

z x c b

htop command
처음부터 보기 쉽다. 특히 메모리.

부하를 가하는 방법

z x c b

htop command
처음부터 보기 쉽다. 특히 메모리.

부하를 가하는 방법
처음부터 보기 쉽다. 특히 메모리.

부하를 가하는 방법
vegeta

k6
Load Impact
ab -c 10 -n 100 url
와 같이 k6 run -v 10 -i 100 url
로 할 수도 있고, 복잡한 시나리오를 (ES6에서) 쓸 수도 있습니다.샘플 시나리오를 작성해 보겠습니다.
最初は 同時接続 3 で、2秒かけて 5に 増やし、その後 4秒間で 8 まで増やし、その後...
tgif-sample.js
import encoding from "k6/encoding";
import http from "k6/http";
export let options = {
vus: 3,
stages: [
{ duration: "2s", target: 5 },
{ duration: "4s", target: 8 },
{ duration: "3s", target: 0 },
]
};
export default function() {
//let response = http.get("https://***.com/", { headers: { "Authorization": "Basic " + encoding.b64encode("user:pw") }});
let response = http.get("http://724c29d2.ngrok.io/");
};
실행은
k6 run script.js
입니다.
k6 cloud
베지터처럼 플롯된 데이터를 볼 수 있습니다. (1 개월 무료 평가판 ... => htps : // 아아아 m파ct. 코m/p리신g/)
명령은 k6 cloud
입니다.
$ k6 cloud tgif-sample.js
/\ |‾‾| /‾‾/ /‾/
/\ / \ | |_/ / / /
/ \/ \ | | / ‾‾\
/ \ | |‾\ \ | (_) |
/ __________ \ |__| \__\ \___/ .io
execution: cloud
script: tgif-sample.js
output: https://app.loadimpact.com/k6/runs/111735
test status: Finished
output
URL에 액세스하면 다음을 얻을 수 있습니다.

끝
대략입니다만, 퍼포먼스 테스트의 종류, 보는 지표, 부하 걸리는 툴등을 나란히 해 보았습니다.
운용에 실릴 수 있도록, 조금씩 사용해 가고 싶습니다.
구체적인 수치의 설계라든지를 제대로 생각할 수 있게 되고 싶습니다.
$ k6 cloud tgif-sample.js
/\ |‾‾| /‾‾/ /‾/
/\ / \ | |_/ / / /
/ \/ \ | | / ‾‾\
/ \ | |‾\ \ | (_) |
/ __________ \ |__| \__\ \___/ .io
execution: cloud
script: tgif-sample.js
output: https://app.loadimpact.com/k6/runs/111735
test status: Finished
대략입니다만, 퍼포먼스 테스트의 종류, 보는 지표, 부하 걸리는 툴등을 나란히 해 보았습니다.
운용에 실릴 수 있도록, 조금씩 사용해 가고 싶습니다.
구체적인 수치의 설계라든지를 제대로 생각할 수 있게 되고 싶습니다.
Reference
이 문제에 관하여(성능 테스트를 시작하고 싶습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/mochizukikotaro/items/a12df217860e50b10352텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)