GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltdb.com — 9.2. Updating the Cluster Configuration Documentation9.2. Updating the Cluster ConfigurationBefore you start the cluster, you choose what database features to use by specifying a configuration file when you initialize the database root directory on each node using the voltdb init command. You must specify the same configuration file on every node of the cluster. For example: $ voltdb init --config=deployment.xml If you choose to change database options, many of the features can be adjusted while the database is running by either:
For example, you can change security settings, import and export configurations, and resource limits dynamically. With either approach, the changes you make are saved by VoltDB in the database root directory. However, there are some changes that cannot be made while the database is running. For example, changing the K-safety value or the number of partitions per server require shutting down, re-initializing, and restarting the database. To change these static aspects of your cluster, you must save the database contents, reconfigure the root directory, then restart and restore the database. The steps for changing static configuration options are:
See Chapter 13, Saving & Restoring a VoltDB Database for information on using save and restore. When doing benchmarking, where you need to change the number of partitions, reducing the number of servers, or adjusting other static configuration options, this is the recommended approach. However, if you are simply adding nodes to the cluster to add capacity or increase performance, you can add the nodes while the database is running. Adding nodes "on the fly" is also known as elastic scaling, as described in the next section. 9.2.1. Adding Nodes with Elastic ScalingWhen you are ready to extend the cluster by adding one or more nodes, you simply initialize and start the VoltDB
database process on the new nodes using the voltdb init command to initialize and the voltdb
start command to start with the $ voltdb init --config=deployment.xml $ voltdb start --add --host=ServerA Once the elastic add action is initiated, the cluster performs the following tasks:
There are some important notes to consider when expanding the cluster using elastic scaling:
9.2.2. Configuring How VoltDB Rebalances New NodesOnce you add the necessary number of nodes (based on the K-safety value), VoltDB rebalances the cluster, moving data from existing partitions to the new nodes. During the rebalance operation, the database remains available and actively processing client requests. How long the rebalance operation takes is dependent on two factors: how often rebalance tasks are processed and how much data each transaction moves. Rebalance tasks are fully transactional, meaning they operate within the database's ACID-compliant transactional model. Because they involve moving data between two or more partitions, they are also multi-partition transactions. This means that each rebalance work unit can incrementally add to the latency of pending client transactions. You can control how quickly the rebalance operation completes versus how much rebalance work impacts ongoing client
transactions using two attributes of the
When you change the target duration, VoltDB adjusts the amount of data that is moved in each transaction to reach the target execution time. If you increase the duration, the volume of data moved per transaction increases. Similarly, if you reduce the duration, the volume per transaction decreases. When you change the target throughput, VoltDB adjusts the frequency of rebalance transactions to achieve the desired volume of data moved per second. If you increase the target throughout, the number of rebalance transactions per second increases. Similarly, if you decrease the target throughout, the number of transactions decreases. The <elastic> element is a child of the <systemsettings> element. For example, the following configuration file sets the target duration to 15 milliseconds and the target throughput to 1 megabyte per second before starting the database: <deployment>
. . .
<systemsettings>
<elastic duration="15" throughput="1"/>
</systemsettings>
</deployment> |
| You are visitor 01402775 — 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. |