Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #24 from azuqua/kevin/develop
Browse files Browse the repository at this point in the history
add disk-based table using AOF+snapshot persistence model (for future…
  • Loading branch information
kevinwilson541 committed Jun 2, 2017
2 parents 52ea16a + e6a03d9 commit 3a7168e
Show file tree
Hide file tree
Showing 7 changed files with 1,373 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = function (grunt) {
"lib/kernel.js",
"lib/node.js",
"lib/vclock.js",
"lib/dtable.js"
];

grunt.initConfig({
Expand Down
14 changes: 13 additions & 1 deletion lib/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ var vclockOpts = {
oldBound: 86400000000
};

var dtableOpts = {
writeThreshold: 100,
autoSave: 180000,
fsyncInterval: 1000
};

var networkHost = os.hostname();
var networkPort = 7022;

Expand Down Expand Up @@ -52,5 +58,11 @@ module.exports = {
}),
// vector clock defaults, in the event we want direct creation/manipulation of vector
// clocks
vclockOpts: Object.freeze(_.cloneDeep(vclockOpts))
vclockOpts: Object.freeze(_.cloneDeep(vclockOpts)),
dtableOpts: Object.freeze(dtableOpts),
dlmOpts: Object.freeze(_.extend({
rquorum: 0.51,
wquorum: 0.51,
disk: false
}, dtableOpts))
};
Loading

0 comments on commit 3a7168e

Please sign in to comment.