Gld Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 43: Line 43:
</pre>
</pre>


====reuse-values====
====reuse-value====


By default, the load strategy randomly generates the first entry value and then keeps reusing it, as a speed optimization (reuse-value: "true"). To change this behavior and configure the load strategy to generate a new random value every times it generates one (slower), set "reuse-values" to "false".
By default, the load strategy randomly generates the first entry value and then keeps reusing it, as a speed optimization (reuse-value: "true"). To change this behavior and configure the load strategy to generate a new random value every times it generates one (slower), set "reuse-value" to "false".

Revision as of 20:52, 7 December 2016

Internal

Configuration

-c <cofiguration-file.yml>

If the configuration file is not specified on the command line (where it has priority), it is looked up a value of GLD_CONF_FILE environment variable.

Cache Service Configuration

service:

  type: cache
  implementation: local

  key-size: 10
  value-size: 1024

  load-strategy:
    ...

read-then-write-on-miss Load Strategy Configuration

service:

  type: cache
  ...
  key-size: 10
  value-size: 1024

  load-strategy:
    name: read-then-write-on-miss
    reuse-values: false
    

reuse-value

By default, the load strategy randomly generates the first entry value and then keeps reusing it, as a speed optimization (reuse-value: "true"). To change this behavior and configure the load strategy to generate a new random value every times it generates one (slower), set "reuse-value" to "false".