diff options
Diffstat (limited to 'container-search/src/main/resources/configdefinitions/qr-binary-cache-region.def')
-rw-r--r-- | container-search/src/main/resources/configdefinitions/qr-binary-cache-region.def | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/container-search/src/main/resources/configdefinitions/qr-binary-cache-region.def b/container-search/src/main/resources/configdefinitions/qr-binary-cache-region.def new file mode 100644 index 00000000000..64bd3105c24 --- /dev/null +++ b/container-search/src/main/resources/configdefinitions/qr-binary-cache-region.def @@ -0,0 +1,46 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +# TODO: Not in use - remove on Vespa 7 + +version=4 +namespace=search.cache + +# size of the region (in MB). Cache size (in qr-binary-cache.cfg) +# and region size should be same +region_size int default=1024 + +# Number of threads that would concurrently access cache +concurrency_level int default=50 + +# Initial bucket count that would be created in a region +# (rehashing would grow it if necessary but is expensive) +bucket_count int default=12000 + +# Load factor of the region. +load_factor double default=0.75 + +#TTL in milli-seconds +time_to_live int default=-1 + +entry_size_range int default=500 + + +#Whether lazy invalidation is enabled or no +lazy_invalidation_enabled bool default=false + +# Time interval (in seconds) over which lazy invalidation parameters would be observed +tick_interval int default=1 +tick_count_to_average int default=10 + +# Maximum QPS that can be supported by the back-end. +# Refresh due to lazy invalidation and TTL would be disabled in the +# tick_interval in which total requests to backend have exceeded MAX_QPS +max_backend_qps int default=300 + +# Log file in which lazy invalidation stats would be +# recorded (keep it empty if no stats are required) +lazy_invalidation_stats_file string default="lstats.log" + +# Maximum stale time in seconds after a call to lazy invalidation is made. +# Once this time interval is expired, any request for an expired +# entry (due to TTL or lazy invalidation) would result in a cache miss. +lazy_invalidation_max_stale_time_in_sec int default=1000 |