Skip to content

Controller Subregion In Cluster Mode

leedonggyu edited this page Apr 28, 2021 · 1 revision

Since 3.5.5, ngrinder can manage agents by dividing them into separate spots under one region by using a subregion. If you don't know about clustering, Please check Advanced Clustering Guide.

1. How to configure subregions

You can configure subregions by editing {USER_HOME}/.ngrinder_ex/system-ex.conf file.

  1. Open system-ex.conf and set the configuration below.
ngrinder.cluster.region=kor

# setting subregions, ',' concatenated manner
ngrinder.cluster.subregion=sub1,sub2
  1. Run ngrinder controller and check configured subregions

If you using easy clustering you can use -sr command line option such as java -jar ngrinder-controller-X.X.war -p 8080 -cm easy -clp 10010 -r kor -sr sub1,sub2 -cp 9001.

2. How to use subregion

Before running the agent, you need to set the subregion to connect to.

  1. Open {USER_HOME}/.ngrinder_agent/agent.conf and set the configuration below.
# agent.conf

...

agent.subregion=sub1
  1. Run the agent and check whether it is connected to the configured subregion.

You can use --sb or --subregion command line option when you running the scripts such as run_agent.sh -sb sub1.

Clone this wiki locally