Results 1 to 5 of 5

Thread: With Durability, no data after restart

  1. #1
    New Member
    Join Date
    Mar 2014
    Posts
    6

    With Durability, no data after restart

    Hello,

    I'm using Enterprise Edition VoltDB 4.0.2.3 and my deployment.xml looks like this:
    <?xml version="1.0" ?>
    <deployment>
    <cluster hostcount="1" sitesperhost="3" kfactor="0"/>
    <commandlog enabled="true" > <frequency transactions="1000" /></commandlog>
    <paths>
    <commandlog path="/Platte/voltdblog/" />
    <commandlogsnapshot path="/Platte/voltdb/cmdsnaps/" />
    </paths>
    <httpd enabled="true">
    <jsonapi enabled="true" />
    </httpd>
    </deployment>

    I insert ~900.000 Data items in the database, but when I restart the server, the tables are zero. What is wrong in my configuration? I thoght that every 1000 transactions the transaction is saved on disk.

    Thanks.

    Sabrina

  2. #2
    Super Moderator scooper's Avatar
    Join Date
    Mar 2012
    Posts
    15
    Hi Sabrina,

    What command are you using to restart the server?

    Since command logging is enabled the "recover" command is the one that handles replaying the previous sessions's command log into the new session.

    http://voltdb.com/docs/UsingVoltDB/RunRestart.php

    Cheers,
    Steve
    --
    VoltDB Engineer

  3. #3
    New Member
    Join Date
    Mar 2014
    Posts
    6
    Hi Steve,

    great - the problem was the start command. Now it works fine!
    How often does VoltDB create a snapshot, when there is nothing configured (like my deployment.xml file).

    Thanks,
    Sabrina

  4. #4
    Super Moderator scooper's Avatar
    Join Date
    Mar 2012
    Posts
    15
    Hi Sabrina,

    Snapshots are only taken upon user request, e.g. using "voltadmin save", unless you configure automatic snapshots in deployment.xml.

    http://voltdb.com/docs/UsingVoltDB/SaveSnapshotAuto.php

    Cheers,
    Steve
    --
    VoltDB Engineer

  5. #5
    Super Moderator
    Join Date
    Sep 2011
    Posts
    39
    In addition to the snapshots that Steve described, there are also command log truncation snapshots that happen automatically. See https://voltdb.com/docs/UsingVoltDB/ChapCmdLog.php for more information about what they do and how to configure them.

    Ruth

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •