Skip to content

Commit

Permalink
use negative autoCompactFillRate
Browse files Browse the repository at this point in the history
  • Loading branch information
auntyellow committed May 27, 2020
1 parent 01256df commit da8e88a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
42 changes: 40 additions & 2 deletions collector-mvstore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,46 @@
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2-mvstore</artifactId>
<version>1.4.200</version>
<artifactId>h2</artifactId>
<version>1.4.201-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queryparser</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.enterprise</artifactId>
</exclusion>
<exclusion>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public static void main(String[] args) {
String dataDir = Conf.getAbsolutePath("data");
new File(dataDir).mkdirs();
mv = new MVStore.Builder().fileName(dataDir + "/metric.mv").
compress().autoCompactFillRate(80).open();
compress().autoCompactFillRate(-80).open();
mv.setAutoCommitDelay(10_000);
sizeTable = mv.openMap("_meta.size");
aggregatedTable = mv.openMap("_meta.aggregated");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ public static void main(String[] args) {
"/metric;mode=postgresql;database_to_lower=true;" +
"compress=true;cache_size=32768;lazy_query_execution=1;" +
"db_close_on_exit=false;write_delay=10000;" +
"max_compact_time=0;auto_compact_fill_rate=80";
"max_compact_time=0;auto_compact_fill_rate=-80";
} else if (url.endsWith(":derby:metric")) {
String dataDir = Conf.getAbsolutePath("data");
new File(dataDir).mkdir();
Expand Down

0 comments on commit da8e88a

Please sign in to comment.