Skip to content

Commit

Permalink
Increase RocksDB max-background-compactions and background-thread-cou…
Browse files Browse the repository at this point in the history
…nt to 4 by default. Improves fast sync times even on a t3.large instance (2 cores). (PegaSysEng#1364)
  • Loading branch information
ajsutton authored and notlesh committed May 4, 2019
1 parent d91a01c commit 3ee61ef
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -94,7 +94,7 @@ public static class Builder {
@CommandLine.Option(
names = {"--Xrocksdb-max-background-compactions"},
hidden = true,
defaultValue = "1",
defaultValue = "4",
paramLabel = "<INTEGER>",
description =
"Maximum number of RocksDB background compactions (default: ${DEFAULT-VALUE})")
Expand All @@ -103,7 +103,7 @@ public static class Builder {
@CommandLine.Option(
names = {"--Xrocksdb-background-thread-count"},
hidden = true,
defaultValue = "1",
defaultValue = "4",
paramLabel = "<INTEGER>",
description = "Number of RocksDB background threads (default: ${DEFAULT-VALUE})")
int backgroundThreadCount;
Expand Down

0 comments on commit 3ee61ef

Please sign in to comment.