Getting started

Parent Previous Next

Cluster Configuration


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:




mode=controller

logFile=ctl.log

localSite=localhost:8900:ctl8900

perfMonitoring=1





mode=agent

localSite=localhost:8988:agent

controllerSite=localhost:8900:ctl8900





localSite,mode,volumes

localhost:8988:agent,agent,

localhost:8811:DFS_NODE1,datanode,

localhost:8812:DFS_NODE2,datanode,

localhost:8813:DFS_NODE3,datanode,

localhost:8814:DFS_NODE4,datanode,



Users are free to change the number of agents and data nodes in the cluster, and the port numbers for all the nodes.



Launch


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 .