|
|
Login/Register | Contact Us | 1+ 978-528-4660 |
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.
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
| Element | Child of | Parent of | Attributes |
|---|---|---|---|
| deployment* | (root element) | admin-mode, commandlog, cluster, export, heartbeat, httpd, partition-detection, paths, snapshot, systemsettings, users | |
| cluster* | deployment | hostcount={int} | |
| admin-mode | deployment | port={int} | |
| heartbeat | deployment | timeout={int}* | |
| partition-detection | deployment | snapshot | enabled={true|false} |
| snapshot* | partition-detection | prefix={text}* | |
| commandlog | deployment | frequency | enabled={true|false} |
| frequency | commandlog | time={int} | |
| export | deployment | enabled={true|false} | |
| httpd | deployment | jsonapi | port={int} |
| jsonapi | httpd | enabled={true|false} | |
| paths | deployment | exportoverflow, snapshots, voltdbroot | |
| commandlog | paths | path={directory-path}* | |
| commandlogsnapshot | paths | path={directory-path}* | |
| exportoverflow | paths | path={directory-path}* | |
| snapshots | paths | path={directory-path}* | |
| voltdbroot | paths | path={directory-path}* | |
| snapshot | deployment | frequency={int}{s|m|h}* | |
| systemsettings | deployment | snapshot, temptables | |
| snapshot | systemsettings | priority={int}* | |
| temptables | systemsettings | maxsize={int}* | |
| users | deployment | user | |
| user | users | name={text}* | |
*Required | |||
copyright 2012 VoltDB, Inc.
- Printer-friendly version
- Login or register to post comments

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