Jboss-datagrid Gld Extension: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 42: Line 42:
   threads: 1
   threads: 1
</pre>
</pre>
=Configuration Elements=
==nodes==
Required. At least on HotRot endpoint in the format <host>:[port] is required. If port is missing, it is assumed 11222.
==cache-container==
Optional. If not present, it is assumed to be the default cache container.
==cache==
Optional. If not present, it is assumed to be the default cache for the specified (or default) cache container.

Revision as of 00:12, 11 January 2017

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


Configuration Elements

nodes

Required. At least on HotRot endpoint in the format <host>:[port] is required. If port is missing, it is assumed 11222.

cache-container

Optional. If not present, it is assumed to be the default cache container.

cache

Optional. If not present, it is assumed to be the default cache for the specified (or default) cache container.