nGrinder - ruthetum/study GitHub Wiki

nGrinder

  • ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ๋ถ€ํ•˜ ํ…Œ์ŠคํŠธ ์šฉ๋„๋กœ ๋งŽ์ด ์‚ฌ์šฉ๋˜๋Š” ์„ฑ๋Šฅ ํ…Œ์ŠคํŠธ ํˆด

๊ตฌ์„ฑ

  • ์ปจํŠธ๋กค๋Ÿฌ์™€ ์—์ด์ „ํŠธ๋กœ ๊ตฌ์„ฑ

์ปจํŠธ๋กค๋Ÿฌ

  • ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•œ Admin, ๋ถ€ํ•˜ ์Šคํฌ๋ฆฝํŠธ ์ž‘์„ฑ, ๋ถ€ํ•˜ ํ…Œ์ŠคํŠธ ์ž‘์„ฑ ๊ธฐ๋Šฅ์„ ์ง€์›
  • ๊ด€๋ฆฌํ•  ์—์ด์ „ํŠธ๋ฅผ ์Šน์ธํ•˜๊ณ  ๊ฐ ์—์ด์ „ํŠธ๋“ค์ด ๋ถ€ํ•˜๋ฅผ ๋ฐœ์ƒ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋„๋ก ์ œ์–ด
  • cf. https://github.com/naver/ngrinder/wiki/Controller-Configuration-Guide

์—์ด์ „ํŠธ

๋‹ค์šด๋กœ๋“œ

์‹คํ–‰

  • java -jar ngrinder/ngrinder-controller-3.5.5-p1.war --port=8300
  • localhost:8300 ์ ‘์†

๋กœ๊ทธ์ธ

  • ์ดˆ๊ธฐ ID : admin / PW : admin

home

๋ถ€ํ•˜ ์Šคํฌ๋ฆฝํŠธ ์ƒ์„ฑ

create-script-1 create-script-1

์—์ด์ „ํŠธ ๋‹ค์šด๋กœ๋“œ ๋ฐ ์‹คํ–‰

download-agent

  • __agent.conf (์„ค์ • ํŒŒ์ผ)
common.start_mode=agent
agent.controller_host=localhost
agent.controller_port=16001
  • ์šด์˜์ฒด์ œ์— ๋”ฐ๋ผ run_agent.sh or run_agent.bat ์‹คํ–‰

run-agent

  • Agent Management ํ™•์ธ

agent-management-1 agent-management-2

๋ถ€ํ•˜ ํ…Œ์ŠคํŠธ ์ž‘์„ฑ & ์‹คํ–‰ & ๋ถ„์„

load-testing-1

  • Create Test ํด๋ฆญ

script-save

- Agent ๊ฐœ์ˆ˜: 1
- Vuser per agent: 2
- Script ์ข…๋ฅ˜: svn
- Script ์ด๋ฆ„: TestScript.groovy
- Duration: 0:00:10 (์‹œ:๋ถ„:์ดˆ๋กœ 10์ดˆ ์˜๋ฏธ)