summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-03-01 14:08:22 +0000
committerTor Egge <Tor.Egge@oath.com>2018-03-01 14:08:22 +0000
commitbf2d8c4c85433712687c43def4bb4b459a7cdca1 (patch)
tree8f1acbbb8f86036ece9ce3ed416a97b430cb04e9 /searchcore
parent24e40c59ce79b044334e07cf336edfd66d6b760c (diff)
Consider replay more expensive when preparing for restart.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/config/proton.def6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/config/proton.def b/searchcore/src/vespa/searchcore/config/proton.def
index c7a3fc7cb62..5076b923482 100644
--- a/searchcore/src/vespa/searchcore/config/proton.def
+++ b/searchcore/src/vespa/searchcore/config/proton.def
@@ -90,7 +90,7 @@ flush.memory.conservative.lowwatermarkfactor double default=0.9
## The prepare for restart flush strategy will choose a set of components to flush
## such that the cost of flushing these + the cost of replaying the transaction log
## is as low as possible.
-flush.preparerestart.replaycost double default=2.0
+flush.preparerestart.replaycost double default=8.0
## The cost of replaying an operation when replaying the transaction log.
##
@@ -99,12 +99,12 @@ flush.preparerestart.replaycost double default=2.0
##
## The default value is chosen based on the following example:
## Assume we can replay 9 MB/s and this corresponds to 24000 ops/s.
-## replayoperationcost = (bytes to replay) * replaycost / (operations to replay) = 9 MB * 2.0 / 24000 = 750
+## replayoperationcost = (bytes to replay) * replaycost / (operations to replay) = 9 MB * 8.0 / 24000 = 3000
##
## The prepare for restart flush strategy will choose a set of components to flush
## such that the cost of flushing these + the cost of replaying the transaction log
## is as low as possible.
-flush.preparerestart.replayoperationcost double default=750.0
+flush.preparerestart.replayoperationcost double default=3000.0
## The cost of writing a byte when flushing components to disk.
##