Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Infinispan 13.0 and Cassandra Java Driver 4.14 #31

Merged
merged 4 commits into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions documentation/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Documentation

The documentation in this repository is written along the same guidelines as core Infinispan documentation,
more of which can be learned about [here](https://github.com/infinispan/infinispan/blob/5.3.x/documentation/README.md).
more of which can be learned about [here](https://github.com/infinispan/infinispan/blob/13.0.x/documentation/README.md).

This book is incorporated in the [Infinispan Documentation Home](http://infinispan.org/documentation)

Expand All @@ -10,7 +10,7 @@ This book is incorporated in the [Infinispan Documentation Home](http://infinisp
Documentation written for Hot Rod clients should be in a single AsciiDoc
document titled `index.adoc` and stored in `src/main/asciidoc`
You may use tables of contents and various other AsciiDoc features as
described in the [document authoring guidelines](http://infinispan.org/docs/6.0.x/contributing/contributing.html#_writing_documentation_and_faqs).
described in the [document authoring guidelines](http://infinispan.org/docs/13.0.x/contributing/contributing.html#_writing_documentation_and_faqs).

All other aspects of the [document authoring guidelines](http://infinispan.org/docs/6.0.x/contributing/contributing.html#_writing_documentation_and_faqs)
All other aspects of the [document authoring guidelines](http://infinispan.org/docs/13.0.x/contributing/contributing.html#_writing_documentation_and_faqs)
must be adhered to, particularly sections on style and voice.
16 changes: 10 additions & 6 deletions documentation/src/main/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The following CQL commands show how to configure the keyspace manually (using cq
[source,sql]
----
CREATE KEYSPACE IF NOT EXISTS Infinispan WITH replication = {'class':'SimpleStrategy', 'replication_factor':1};
CREATE TABLE Infinispan.InfinispanEntries (key blob PRIMARY KEY, value blob, metadata blob);
CREATE TABLE Infinispan.InfinispanEntries (key blob PRIMARY KEY, value blob, created bigint, last_used bigint, metadata blob, internal_metadata blob);
----

You then need to add an appropriate cache declaration to your `infinispan.xml`
Expand All @@ -28,9 +28,9 @@ You then need to add an appropriate cache declaration to your `infinispan.xml`
<cache-container default-cache="cassandracache">
<local-cache name="cassandracache">
<persistence passivation="false">
<cassandra-store xmlns="urn:infinispan:config:store:cassandra:8.2" auto-create-keyspace="true" keyspace="Infinispan" entry-table="InfinispanEntries" shared="true">
<cassandra-store xmlns="urn:infinispan:config:store:cassandra:8.2" auto-create-keyspace="true" keyspace="Infinispan" local-datacenter="dc1" entry-table="InfinispanEntries" shared="true" segmented="false">
<cassandra-server host="127.0.0.1" port="9042" />
<connection-pool heartbeat-interval-seconds="30" idle-timeout-seconds="120" pool-timeout-millis="5" />
<connection-pool heartbeat-interval-seconds="30" heartbeat-timeout-ms="800" local-size="1" remote-size="1" />
</cassandra-store>
</persistence>
</local-cache>
Expand All @@ -40,6 +40,8 @@ You then need to add an appropriate cache declaration to your `infinispan.xml`
It is important that the shared property on the cassandra-store element is set to true
because all the Infinispan nodes will share the same Cassandra cluster.

The store can not use the segmentation feature of Infinispan, because Cassandra is doing so itself.

An alternative way to configure the Cassandra cachestore is to use a generic store element with properties.
An example configuration with the available properties is shown below:
.infinispan.xml
Expand All @@ -48,8 +50,9 @@ An example configuration with the available properties is shown below:
<cache-container default-cache="cassandracache">
<local-cache name="cassandracache">
<persistence passivation="false">
<store class="org.infinispan.persistence.cassandra.CassandraStore" shared="true">
<store class="org.infinispan.persistence.cassandra.CassandraStore" shared="true" segmented="false">
<property name="autoCreateKeyspace">true</property>
<property name="localDatacenter">dc1</property>
<property name="keyspace">Infinispan</property>
<property name="entryTable">InfinispanEntries</property>
<property name="readConsistencyLevel">LOCAL_ONE</property>
Expand All @@ -63,8 +66,9 @@ An example configuration with the available properties is shown below:
<property name="password">testpassword</property>
<property name="servers">127.0.0.1[9042],127.0.0.1[9041]</property>
<property name="connectionPool.heartbeatIntervalSeconds">30</property>
<property name="connectionPool.idleTimeoutSeconds">120</property>
<property name="connectionPool.poolTimeoutMillis">5</property>
<property name="connectionPool.heartbeatTimeoutMs">500</property>
<property name="connectionPool.localSize">1</property>
<property name="connectionPool.remoteSize">1</property>
</store>
</persistence>
</local-cache>
Expand Down
Loading