Faster startup
This commit is contained in:
parent
40cd756f35
commit
7692b21e3d
@ -923,6 +923,7 @@ public class LLLocalKeyValueDatabase extends Backuppable implements LLKeyValueDa
|
|||||||
);
|
);
|
||||||
options.setDbPaths(paths);
|
options.setDbPaths(paths);
|
||||||
options.setMaxOpenFiles(databaseOptions.maxOpenFiles().orElse(-1));
|
options.setMaxOpenFiles(databaseOptions.maxOpenFiles().orElse(-1));
|
||||||
|
options.setMaxFileOpeningThreads(Runtime.getRuntime().availableProcessors());
|
||||||
if (databaseOptions.spinning()) {
|
if (databaseOptions.spinning()) {
|
||||||
// https://nightlies.apache.org/flink/flink-docs-release-1.3/api/java/org/apache/flink/contrib/streaming/state/PredefinedOptions.html
|
// https://nightlies.apache.org/flink/flink-docs-release-1.3/api/java/org/apache/flink/contrib/streaming/state/PredefinedOptions.html
|
||||||
options.setUseFsync(false);
|
options.setUseFsync(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user