-
Notifications
You must be signed in to change notification settings - Fork 476
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.
You can configure subregions by editing {USER_HOME}/.ngrinder_ex/system-ex.conf
file.
- Open
system-ex.conf
and set the configuration below.
ngrinder.cluster.region=kor
# setting subregions, ',' concatenated manner
ngrinder.cluster.subregion=sub1,sub2
- Run ngrinder controller and check configured subregions
If you using easy clustering you can use
-sr
command line option such asjava -jar ngrinder-controller-X.X.war -p 8080 -cm easy -clp 10010 -r kor -sr sub1,sub2 -cp 9001
.
Before running the agent, you need to set the subregion to connect to.
- Open
{USER_HOME}/.ngrinder_agent/agent.conf
and set the configuration below.
# agent.conf
...
agent.subregion=sub1
- 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 asrun_agent.sh -sb sub1
.