Create a node-config.json file and store this parameters.
{
"capabilities": [
{
"browserName": "chrome",
"maxInstances": "2",#settings per browser
}
],
"maxSession": "3", #settings per node
}
To start a node:
java -jar /path_to_driver/serve.jar -role node -hub HUB_ADDRESS -nodeConfig /path_to_node_config/node-config.json
So if you run new test, the grid will register it and will wait for a free node.
Want to learn Selenium, checkout our Selenium training.