Skip to content

Commit

Permalink
4.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Dec 3, 2021
1 parent 1cdf8a3 commit f24ac8d
Show file tree
Hide file tree
Showing 16 changed files with 926 additions and 740 deletions.
402 changes: 217 additions & 185 deletions dist/es5node/methods/node.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/es5node/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ function fillOptionsWithDefaults() {
if (!options.node) options.node = {};
if (!options.node.ttl) options.node.ttl = 1000 * 60 * 2; // 2 minutes;

/**
* On linux use 'ulimit -Hn' to get the limit of open files.
* On ubuntu this was 4096 for me, so we use half of that as maxParallelWrites default.
*/

if (!options.node.maxParallelWrites) options.node.maxParallelWrites = 2048;
if (typeof options.node.useFastPath === 'undefined') options.node.useFastPath = true;
return options;
}
Loading

0 comments on commit f24ac8d

Please sign in to comment.