Skip to content

Commit

Permalink
Deploy Infinispan with maxCount=10000 and num_owners=1
Browse files Browse the repository at this point in the history
Closes #805

Signed-off-by: Ryan Emerson <remerson@redhat.com>
  • Loading branch information
ryanemerson committed May 29, 2024
1 parent 6daa6a8 commit 8ed29da
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions provision/infinispan/Utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ tasks:
--set image={{.CROSS_DC_IMAGE}}
--set fd.interval={{.CROSS_DC_FD_INTERVAL}}
--set fd.timeout={{.CROSS_DC_FD_TIMEOUT}}
{{if eq .KC_PERSISTENT_SESSIONS "true"}}--values ispn-helm/persistent-session-caches.yaml{{end}}
./ispn-helm
preconditions:
- test -f ".task/kubecfg/{{.ROSA_CLUSTER_NAME}}"
Expand Down
17 changes: 17 additions & 0 deletions provision/infinispan/ispn-helm/persistent-session-caches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
caches:
sessions:
owners: 1
memory:
maxCount: 10000
offlineSessions:
owners: 1
memory:
maxCount: 10000
clientSessions:
owners: 1
memory:
maxCount: 10000
offlineClientSessions:
owners: 1
memory:
maxCount: 10000
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

0 comments on commit 8ed29da

Please sign in to comment.