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 — 3.7. Defining the Cluster Configuration Documentation3.7. Defining the Cluster ConfigurationTwo important aspects of a VoltDB database are the physical layout of the cluster that runs the database and the
database features you choose to use. You define the physical cluster layout on the voltdb start command
using the The configuration file is an XML file, which you specify when you initialize the root directory. The basic syntax of the configuration file is as follows: <?xml version="1.0"?> <deployment> <cluster kfactor="n" /> <feature option... > </feature> ... </deployment> The attributes of the
In the simplest case — when running on a single node with no special options enabled — you can skip the configuration file on the voltdb init command and the server count and host list on the voltdb start command. If you do not specify a configuration file, VoltDB defaults to eight execution sites per host, and a K-safety value of zero. The configuration file is also used to enable and configure many other runtime options related to the database, which are described later in this book. For example, the configuration file can specify:
For the complete configuration file syntax, see Appendix E, Configuration File (deployment.xml). 3.7.1. Determining How Many Sites per HostThere is very little penalty for allocating more sites than needed for the partitions the database will use (except
for incremental memory usage). Consequently, VoltDB defaults to eight sites per node to provide reasonable performance on
most modern system configurations. This default does not normally need to be changed. However, for systems with a large
number of available processors (16 or more) or older machines with fewer than 8 processors and limited memory, you may
wish to tune the The number of sites needed per node is related to the number of processor cores each system has, the optimal number being approximately 3/4 of the number of CPUs reported by the operating system. For example, if you are using a cluster of dual quad-core processors (in other words, 8 cores per node), the optimal number of partitions is likely to be 6 or 7 sites per node. <?xml version="1.0"?> <deployment> <cluster . . . sitesperhost="6" /> </deployment> For systems that support hyperthreading (where the number of physical cores support twice as many threads), the operating system reports twice the number of physical cores. In other words, a dual quad-core system would report 16 virtual CPUs. However, each partition is not quite as efficient as on non- hyperthreading systems. So the optimal number of sites is more likely to be between 10 and 12 per node in this situation. Because there are no hard and set rules, the optimal number of sites per node is best calculated by actually benchmarking the application to see what combination of cores and sites produces the best results. However, it is important to remember that all nodes in the cluster will use the same number of sites. So the best performance is achieved by using a cluster with all nodes having the same physical architecture (i.e. cores). 3.7.2. Configuring Paths for Runtime FeaturesAn important aspect of some runtime features is that they make use of disk resources for persistent storage across sessions. For example, automatic snapshots need a directory for storing snapshots of the database contents. Similarly, export uses disk storage for writing overflow data if the export connector cannot keep up with the export queue. You can specify individual paths for each feature in the configuration file. If not, VoltDB creates subfolders for each feature in the database root directory as needed, which can be useful for testing. However, in production, it is useful to direct certain high volume features, such as command logging, to separate devices to avoid disk I/O affecting database performance. You can identify specific path locations, within the
If you name a specific feature path and it does not exist, VoltDB attempts to create it for you. For example, the
<paths> <exportoverflow path="/opt/overflow" /> </paths> 3.7.3. Verifying your Hardware ConfigurationThe configuration file and start command options define the desired configuration of your database cluster. However, there are several important aspects of the physical hardware and operating system configuration that you should be aware of before running VoltDB:
|
| 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. |