10.2. Controlling Command Logging

Documentation

Home » Documentation » Using VoltDB

10.2. Controlling Command Logging

Command logging is enabled by default in the VoltDB Enterprise Edition. Using command logging is recommended to ensure durability of your data. However, you can choose whether to have command logging enabled or not using the <commandlog> element in the deployment file. For example:

<deployment>
   <cluster hostcount="4" sitesperhost="2" kfactor="1" />
   <commandlog enabled="true"/>
</deployment>

In its simplest form, the <commandlog/> tag enables or disables command logging by setting the enabled attribute to "true" or "false". You can also use other attributes and child elements to control specific characteristics of command logging. The following section describes those options in detail.