GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltactivedata.com — 3.2. Initializing and Starting a VoltDB Database on a Cluster Using VoltDB3.2. Initializing and Starting a VoltDB Database on a ClusterYou initialize and start a cluster the same way you start a single node: with the voltdb init and start commands. The only difference is that when starting the cluster, you must tell the cluster nodes how big the cluster is and which nodes to use as potential hosts for the startup. You initialize a root directory on each server using the voltdb init command. You can accept the default configuration as shown in the previous section. However, when setting up a cluster you often want to make some configuration adjustments (for example, enabling K-safety). So it is a good idea to get into the habit of specifying a configuration file. You specify the configuration file with the $ voltdb init -D ~/mydb --config=myconfig.xmlOnce the nodes are initialized, you start the cluster by issuing the voltdb start command on all nodes specifying the following information:
For each node of the cluster, log in and start the server process using the same voltdb start
command. For example, the following example starts a five-node database cluster specifying voltsvr1 as the host node. Be
sure the number of nodes on which you run the command match the number of nodes specified in the $ voltdb start --count=5 -–host=voltsvr1 Or you can also use shortened forms for the argument flags: $ voltdb start -c 5 -H voltsvr1 Although you only need to specify one potential host, it is a good idea to specify multiple hosts. This way, you can use the exact same command for both starting and rejoining nodes in a highly-available cluster. Even if the rejoining node is in the host list another, running node can be chosen to facilitate the rejoin. To simplify even further, you can specify all of the servers in the $ voltdb start --host=svrA,svrB,svrC When starting a VoltDB database on a cluster, the VoltDB server process performs the following actions:
Manually logging on to each node of the cluster every time you want to start the database can be tedious. Instead, you can use secure shell (ssh) to execute shell commands remotely. By creating an ssh script (with the appropriate permissions) you can copy files and/or start the database on each node in the cluster from a single script. Or you can use distributed system management tools such as Chef and Puppet to automate the startup procedures. |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |