Login/Register | Contact Us | 1+ 978-528-4660

Appendix D. Configuration File (deployment.xml)

Appendix D. Configuration File (deployment.xml)

Appendix D. Configuration File (deployment.xml)

The configuration file (frequently referred to as deployment), describes the configuration of a VoltDB database cluster at runtime, including the number of hosts in the cluster, the number of sites per hosts, the lead node when starting the cluster, as well as other configuration information such as the identification of allowed users and passwords. This appendix describes the syntax for each of these components within the configuration file.

The configuration file is a fully-conformant XML file. If you are unfamiliar with XML, see Section C.1, “Understanding XML Syntax” for a brief explanation of XML syntax.

D.1. The Structure of the Configuration File

The configuration file starts with the XML declaration. After the XML declaration, the root element of the configuration file is the deployment element. The remainder of the XML document consists of elements that are children of the deployment element.

Figure D.1, “Configuration XML Structure” shows the structure of the configuration file. The indentation indicates the hierarchical parent-child relationships of the elements and an ellipsis (...) shows where an element may appear multiple times.

Figure D.1. Configuration XML Structure

<deployment>
     <cluster/>
     <paths>
          <commandlog/>
          <commandlogsnapshot/>
          <exportoverflow/>
          <snapshots/>
          <voltdbroot/>
     </path>
     <admin-mode/>
     <heartbeat/>
     <partition-detection>
          <snapshot/>
     </partition-detection>
     <httpd>
          <jsonapi/>
     </httpd>
     <commandlog>
          <frequency/>
     <commandlog/>
     <export/>
     <snapshot/>
     <users>
          <user/>...
     </users>
     <systemsettings>
          <temptables/>
          <snapshot/>
     </systemsettings>
</deployment>


Table D.1, “Configuration File Elements and Attributes” provides further detail on the elements, including their relationships (as child or parent) and the allowable attributes for each.

Table D.1. Configuration File Elements and Attributes

ElementChild ofParent ofAttributes
deployment*(root element)admin-mode, commandlog, cluster, export, heartbeat, httpd, partition-detection, paths, snapshot, systemsettings, users 
cluster*deployment 

hostcount={int}
sitesperhost={int}
kfactor={int}

admin-modedeployment 

port={int}
adminstartup={true|false}

heartbeatdeployment timeout={int}*
partition-detectiondeploymentsnapshotenabled={true|false}
snapshot*partition-detection 

prefix={text}*

commandlogdeploymentfrequency

enabled={true|false}
synchronous={true|false}
logsize={int}

frequencycommandlog 

time={int}
transactions={int}

exportdeployment 

enabled={true|false}

httpddeploymentjsonapi

port={int}
enabled={true|false}

jsonapihttpd enabled={true|false}
pathsdeploymentexportoverflow, snapshots, voltdbroot 
commandlogpaths path={directory-path}*
commandlogsnapshotpaths path={directory-path}*
exportoverflowpaths path={directory-path}*
snapshotspaths path={directory-path}*
voltdbrootpaths path={directory-path}*
snapshotdeployment 

frequency={int}{s|m|h}*
prefix={text}*
retain={int}*
enabled={true|false}

systemsettingsdeploymentsnapshot, temptables 
snapshotsystemsettings 

priority={int}*

temptablessystemsettings 

maxsize={int}*

usersdeploymentuser 
userusers 

name={text}*
password={text}*
groups={group-name[,..]}

*Required



copyright 2012 VoltDB, Inc.

И какой такой факт навеял

И какой такой факт навеял данные уникальные строки?