Gld Cache Load Strategy Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * gld Configuration")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=


* [[Gld_Configuration#Load_Strategy_Configuration|gld Configuration]]
* [[Gld_Configuration#Load_Strategy_Section|gld Configuration]]
 
=read-then-write-on-miss=
 
<pre>
service:
 
  type: cache
  ...
 
  load-strategy:
    name: read-then-write-on-miss
    reuse-value: false
  ...   
</pre>
 
Configuration paramenters:
 
* <span id="reuse-value"></span>'''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 needs one, set "reuse-value" to "false". Configuring the load strategy to not reuse values will make it somewhat slower.
 
=write-then-read=
 
<pre>
service:
 
  type: cache
  ...
 
  load-strategy:
    name: write-then-read
    reuse-value: false
    read-to-write|write-to-read: <integer>
  ...   
</pre>
 
Configuration paramenters:
 
* '''reuse-value''': See [[#reuse-value|reuse-value]] above.
* '''read-to-write''':
* '''write-to-read''':

Latest revision as of 20:25, 17 February 2017

Internal

read-then-write-on-miss

service:

  type: cache
  ...

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

Configuration paramenters:

  • 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 needs one, set "reuse-value" to "false". Configuring the load strategy to not reuse values will make it somewhat slower.

write-then-read

service:

  type: cache
  ...

  load-strategy:
    name: write-then-read
    reuse-value: false
    read-to-write|write-to-read: <integer>
  ...    

Configuration paramenters:

  • reuse-value: See reuse-value above.
  • read-to-write:
  • write-to-read: