Skip to content

Commit

Permalink
ISPN-12344 cannot preload shared remote stores
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod authored and ryanemerson committed Sep 21, 2020
1 parent 5e9a29e commit c28a26f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/schema/infinispan-config-12.0.xsd
Expand Up @@ -1841,7 +1841,7 @@
</xs:attribute>
<xs:attribute name="preload" type="xs:boolean" default="${AbstractStore.preload}">
<xs:annotation>
<xs:documentation>If true, when the cache starts, data stored in the cache store will be pre-loaded into memory. This is particularly useful when data in the cache store will be needed immediately after startup and you want to avoid cache operations being delayed as a result of loading this data lazily. Can be used to provide a 'warm-cache' on startup, however there is a performance penalty as startup time is affected by this process.</xs:documentation>
<xs:documentation>If true, when the cache starts, data stored in the cache store will be pre-loaded into memory. This is particularly useful when data in the cache store will be needed immediately after startup and you want to avoid cache operations being delayed as a result of loading this data lazily. Can be used to provide a 'warm-cache' on startup, however there is a performance penalty as startup time is affected by this process. Likewise in some cases you cannot pre-load data in caches stores, such as when using shared remote stores.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="fetch-state" type="xs:boolean" default="${AbstractStore.fetchPersistentState}">
Expand Down
16 changes: 11 additions & 5 deletions documentation/src/main/asciidoc/topics/ref_cache_store_remote.adoc
@@ -1,12 +1,18 @@
[id='remote_cache_store']
= Remote Cache Stores
Remote cache stores, `RemoteStore`, use a remote {brandname} cluster as storage.
Remote cache stores, `RemoteStore`, use the Hot Rod protocol to store data on
{brandname} clusters.

`RemoteStore` uses the Hot Rod protocol to communicate with remote {brandname}
clusters.
The following is an example `RemoteStore` configuration that stores data in a
cache named "mycache" on two {brandname} Server instances, named "one" and
"two":

In the following configuration examples, `RemoteStore` uses the remote cache
named "mycache" on {brandname} servers "one" and "two":
[NOTE]
====
If you configure remote cache stores as shared you cannot preload data. In
other words if `shared="true"` in your configuration then you must set
`preload="false"`.
====

.Declarative configuration

Expand Down

0 comments on commit c28a26f

Please sign in to comment.