Skip to content

Commit

Permalink
Deploy Infinispan with maxCount=10000 and num_owners=1. Resolves #805
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Emerson <remerson@redhat.com>
  • Loading branch information
ryanemerson committed May 16, 2024
1 parent 77b7849 commit bb85891
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,13 @@ spec:
template: |-
distributedCache:
mode: "SYNC"
owners: 2
owners: 1
statistics: "true"
*remoteTimeout: "15000"* # <1>
locking:
*acquireTimeout: "10000"* # <2>
memory:
maxCount: 10000
backups:
cluster-b:
backup:
Expand All @@ -166,7 +168,8 @@ Change the cache configuration as show and add the attributes (in bold) you want

[source,xml,subs=+quotes]
----
<distributed-cache name="sessions" owners="2" statistics="true" *remote-timeout="15000"*> <!--1-->
<distributed-cache name="sessions" owners="1" statistics="true" *remote-timeout="15000"*> <!--1-->
<memory max-count="10000" />
<locking *acquire-timeout="10000"*/> <!--2-->
<backups>
<backup site="cluster-b" *timeout="15000"*/> <!--3-->
Expand Down
4 changes: 4 additions & 0 deletions provision/infinispan/ispn-helm/templates/infinispan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ spec:
remoteTimeout: {{ $config.remoteTimeout | default $.Values.cacheDefaults.remoteTimeout }}
locking:
acquireTimeout: {{ $config.lockTimeout | default $.Values.cacheDefaults.lockTimeout }}
{{- if and $config.memory $config.memory.maxCount }}
memory:
maxCount: {{ $config.memory.maxCount }}
{{- end}}
stateTransfer:
chunkSize: 16
{{ if $.Values.crossdc.enabled }}
Expand Down
13 changes: 12 additions & 1 deletion provision/infinispan/ispn-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,28 @@ cacheDefaults:
lockTimeout: 4000
caches:
sessions:
owners: 2
owners: 1
mergePolicy: ALWAYS_REMOVE
memory:
maxCount: 10000
actionTokens: {}
authenticationSessions:
mergePolicy: ALWAYS_REMOVE
offlineSessions:
owners: 1
mergePolicy: ALWAYS_REMOVE
memory:
maxCount: 10000
clientSessions:
owners: 1
mergePolicy: ALWAYS_REMOVE
memory:
maxCount: 10000
offlineClientSessions:
owners: 1
mergePolicy: ALWAYS_REMOVE
memory:
maxCount: 10000
loginFailures: { }
work: { }
crossdc:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,23 @@
</encoding>
<memory max-count="10000"/>
</local-cache>
<distributed-cache name="sessions" owners="2">
<distributed-cache name="sessions" owners="1">
<memory max-count="10000" />
<expiration lifespan="-1"/>
</distributed-cache>
<distributed-cache name="authenticationSessions" owners="2">
<expiration lifespan="-1"/>
</distributed-cache>
<distributed-cache name="offlineSessions" owners="2">
<distributed-cache name="offlineSessions" owners="1">
<memory max-count="10000" />
<expiration lifespan="-1"/>
</distributed-cache>
<distributed-cache name="clientSessions" owners="2">
<distributed-cache name="clientSessions" owners="1">
<memory max-count="10000" />
<expiration lifespan="-1"/>
</distributed-cache>
<distributed-cache name="offlineClientSessions" owners="2">
<distributed-cache name="offlineClientSessions" owners="1">
<memory max-count="10000" />
<expiration lifespan="-1"/>
</distributed-cache>
<distributed-cache name="loginFailures" owners="2">
Expand Down

0 comments on commit bb85891

Please sign in to comment.