Jboss-datagrid Gld Extension: Difference between revisions
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Gld Extensions#Extensions|gld Extensions]] | |||
* [[Gld_Configuration#Cache_Service_Configuration|gld Configuration]] | * [[Gld_Configuration#Cache_Service_Configuration|gld Configuration]] | ||
Line 24: | Line 25: | ||
classpath: ${JDG_HOME}/client/hotrod.jar | classpath: ${JDG_HOME}/client/hotrod.jar | ||
# | # | ||
# implementation-specific configuration | # implementation-specific configuration | ||
# | # | ||
nodes: | nodes: | ||
- localhost:11222 | - localhost:11222 | ||
- localhost:11422 | - localhost:11422 | ||
# | |||
# 'cache' specifies the name of the cache to use. The element | |||
# is optional. If not specified, the default cache for default | |||
# cache container will be used. | |||
# | |||
cache: novaordis | |||
load-strategy: | load-strategy: | ||
Line 50: | Line 57: | ||
==cache== | ==cache== | ||
'cache' specifies the name of the cache to use. The element is optional. If not specified, the default cache for default cache container of the target server will be used. "default" does not have any special meaning, though it may happen that the default cache of the default container is named "default". |
Latest revision as of 00:11, 6 September 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 # nodes: - localhost:11222 - localhost:11422 # # 'cache' specifies the name of the cache to use. The element # is optional. If not specified, the default cache for default # cache container will be used. # cache: novaordis 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
'cache' specifies the name of the cache to use. The element is optional. If not specified, the default cache for default cache container of the target server will be used. "default" does not have any special meaning, though it may happen that the default cache of the default container is named "default".