diff options
author | Tor Brede Vekterli <vekterli@vespa.ai> | 2023-11-29 16:43:26 +0100 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@vespa.ai> | 2023-11-29 17:01:30 +0100 |
commit | b2af907ddb72a54f27127081dcb71c4da7246464 (patch) | |
tree | 98979bf186c6f62545ecde833968b82f497b3abf /clustercontroller-core | |
parent | 3b5afd56981156cb608718925fcd55f9d7e38845 (diff) |
Reduce unit test ZooKeeper WAL file preallocations by three orders of magnitude
ZK will by default preallocate 65536 * 1024 bytes for its
write-ahead log file. This will happen for every test instantiation
of the ZooKeeper database. Now, I like wearing out SSD flash cells
as much as the next guy, but this just feels silly.
Input number is always multiplied by 1024, so reduce down to
64 to get a 64k preallocation instead.
Diffstat (limited to 'clustercontroller-core')
-rw-r--r-- | clustercontroller-core/pom.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clustercontroller-core/pom.xml b/clustercontroller-core/pom.xml index 8bdfb25e221..7f845a26c73 100644 --- a/clustercontroller-core/pom.xml +++ b/clustercontroller-core/pom.xml @@ -137,6 +137,10 @@ <configuration> <forkCount>4</forkCount> <rerunFailingTestsCount>5</rerunFailingTestsCount> + <systemPropertyVariables> + <!-- Avoid 64 MiB default in favor of just 64 KiB --> + <zookeeper.preAllocSize>64</zookeeper.preAllocSize> + </systemPropertyVariables> </configuration> </plugin> </plugins> |