beyond-sw-camp / beyond-sw-camp-be01_4nd_mini-project

4 stars 2 forks source link

ngrinder controller - agnet 연결 Error #10

Closed INAUGURATE-Ryong closed 7 months ago

INAUGURATE-Ryong commented 7 months ago

provide more agent java execution option if necessary.

agent.java_opt=

provide more agent jvm classpath if necessary.

agent.jvm.classpath=

set following false if you want to use more than 1G Xmx memory per a agent process.

agent.limit_xmx=true

please uncomment the following option if you want to send all logs to the controller.

agent.all_logs=true

some jvm is not compatible with DNSJava. If so, set this false.

agent.enable_local_dns=false

please uncomment the following option if you want to run controller_to_agent connection mode agent.

agent.connection_mode=controller_to_agent

agent.connection_port=14000

set following with the ip you want to broadcast yourself. Set this option if the agent needs to be discovered as public ip.

agent.broadcast_ip=

-  run 해보니 아래 ERROR 발생.

2024-02-28 15:14:34,299 INFO agent controller: Connected to agent controller server at /192.168.0.29:8080 2024-02-28 15:14:34,299 INFO agent controller: Waiting for agent controller server signal 2024-02-28 15:14:34,308 INFO agent controller: agent controller communication is shutdown 2024-02-28 15:14:34,312 ERROR agent controller: Exception whilst sending message. This error is not critical if it doesn't occur much.

pySatellite commented 7 months ago

우선 질문을 잘 올려주셨습니다. 좋은 시도였어요.

agent - 컨트럴러간 통신은 아래 가이드에 따라 진행 하셔야 합니다. 16001 ...

https://github.com/naver/ngrinder/wiki/Installation-Guide#prerequisite

INAUGURATE-Ryong commented 7 months ago

강사님 말씀대로 16001도 포트포워딩 후 실행했더니 동일한 에러가 발생하여, 혹시몰라 vi ~/.ngrinder_agent/agent.conf IP수정 WSL 내부 IP로 했더니.

agent.controller_host=172.27.121.71
agent.controller_port=16001
INAUGURATE-Ryong commented 7 months ago

vi ~/.ngrinder_agent/agent.conf 재수정

common.start_mode=agent
agent.controller_host=192.168.0.29
agent.controller_port=16001
agent.subregion=
agent.owner=admin
#agent.host_id=
#agent.server_mode=true

# provide more agent java execution option if necessary.
#agent.java_opt=
# provide more agent jvm classpath if necessary.
#agent.jvm.classpath=
# set following false if you want to use more than 1G Xmx memory per a agent process.
#agent.limit_xmx=true
# please uncomment the following option if you want to send all logs to the controller.
#agent.all_logs=true
# some jvm is not compatible with DNSJava. If so, set this false.
#agent.enable_local_dns=false
# please uncomment the following option if you want to run controller_to_agent connection mode agent.
#agent.connection_mode=controller_to_agent
#agent.connection_port=14000
# set following with the ip you want to broadcast yourself. Set this option if the agent needs to be discovered as public ip.
#agent.broadcast_ip=

수정 후 성공했습니다.

pySatellite commented 7 months ago

결과 까지 공유해주셔서 감사합니다. 핵심은

  1. 컴퓨터간 통신에서는 윈도우 네트워크로 서로 접속하고
  2. 그 안에서 터널링 통해서 ( 또는 포트 포워딩 ) 연결되도록 하면 ...

그리고 챙겨야 하는건 위 링크건 공식 가이드의 포트 설명