Open a command line window, and run the following script to start the controller node:
dolphindb.exe -mode controller -home data -script config/dolphindb.dos -config config/controller.cfg -logFile log/controller.log -nodesFile config/nodes.cfg -clusterConfig config/cluster.cfg
Open another command line window, and run the following script to start the agent nodes:
dolphindb.exe -mode agent -home data -script config/dolphindb.dos -config config/agent.cfg -logFile log/agent.log
We need the following configuration files for the cluster:
Users are free to change the number of agents and data nodes in the cluster, and the port numbers for all the nodes.
To launch the cluster manager, enter <Host IP>:<Host> of the controller on the address bar in the web browser. Based on the controller configuration file controller.cfg, we should enter localhost:8900.
The controller is running but the data nodes are not running. To turn on the data nodes, click on the checkbox to the left of "Mode" on the performance monitoring panel, click on and select "OK". Now click , and we can see all the data nodes have been turned on.
We can also turn on individual data nodes selectively by clicking on the checkbox to the left of "datanode" instead of the checkbox to the left of "Mode" before clicking on .
To stop all or some of the data nodes, make corresponding selections, and then click on .