Jboss-datagrid Gld Extension

From NovaOrdis Knowledge Base
Revision as of 19:59, 10 January 2017 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

Configuration Example

Client libraries are loaded from a local JDG 7 installation, if found. If not, the client libraries we ship with will be loaded instead.

service:

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

  implementation:
    name: jboss-datagrid-7
    version: 7.0.0

    # 'classpath' is optional; if specified, it takes precedence 
    # over the libraries we ship with. if 'classpath' is missing, 
    # or the JAR(s) cannot be loaded, we will use the shipped 
    # libraries

    classpath: ${JDG_HOME}/client/hotrod.jar 
                                                             

    #
    # implementation-specific configuration
    #
    cache-container: clustered
    cache: novaordis
    nodes:
      - localhost:11222
      - localhost:11422

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

load:
  threads: 1