Wildfly 8.2, Infinispan cache loader and cluster state
fharms Jun 22, 2015 10:24 AMHi
I hope somebody can help clarify how Wildfly 8.2, Infinispan cache loader and cluster state works.
If we have multiple wildfly nodes with the infinispan configuration below, where we use cache loader to preload the state from the database.
What happens when node 2 or 3 is coming online and there is in the meantime been changes to the cache on node 1. Does the setup guarantee the nodes are consistent even the state is loaded from the database?
Thanks!
/Flemming
<replicated-cache name="LuceneIndexesMetadata" start="EAGER" mode="SYNC" remote-timeout="330000"> <eviction strategy="NONE" max-entries="-1"/> <expiration max-idle="-1"/> <string-keyed-jdbc-store singleton="true" preload="true" passivation="false" fetch-state="true" datasource="java:jboss/datasources/PostgresDS" dialect="POSTGRES"> <write-behind /> <property name="key2StringMapper"> org.infinispan.lucene.LuceneKey2StringMapper </property> <string-keyed-table> <id-column name="ID_COLUMN" type="VARCHAR(255)"/> <data-column name="DATA_COLUMN" type="bytea"/> <timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/> </string-keyed-table> </string-keyed-jdbc-store> <indexing index="NONE"/> </replicated-cache> <replicated-cache name="LuceneIndexesData" start="EAGER" mode="SYNC" remote-timeout="330000"> <eviction strategy="NONE" max-entries="-1"/> <expiration max-idle="-1"/> <string-keyed-jdbc-store singleton="true" preload="true" passivation="false" fetch-state="true" datasource="java:jboss/datasources/PostgresDS" dialect="POSTGRES"> <write-behind /> <property name="key2StringMapper"> org.infinispan.lucene.LuceneKey2StringMapper </property> <string-keyed-table> <id-column name="ID_COLUMN" type="VARCHAR(255)"/> <data-column name="DATA_COLUMN" type="bytea"/> <timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/> </string-keyed-table> </string-keyed-jdbc-store> <indexing index="NONE"/> </replicated-cache>