Comments (9)
In the second example you have defined the "sessions" cache declaratively, so it's created on server startup, which is why it's not possible to create it again via the Infinispan console.
The Infinispan helm chart uses a StatefulSet to manage the deployment. I suggest that you make sure that all associated PVC instances are removed between deployment attempls. Old configuration state may be loaded if you have created multiple deployments with the same name and not cleaned up old PVCs between removal/installation.
from infinispan-helm-charts.
HI thanks @ryanemerson , this seems to resolved the issue, i have some old PVC which was causing the issue and they were not displaying on UI so hence the difficulty to identify it.
After removing the old PVC sessions caches are getting created but not now i am getting following error
-
when i am using UI to see the cached data it keeps loading , same thing is happening for infinispan APIs.
-
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling. PVC has been created i have verified it on cluster
- Startup probe failed: Get "http://172.17.0.5:11222/rest/v2/cache-managers/default/health/status": dial tcp 172.17.0.5:11222: connect: connection refused
seems default health status not working i am getting HEALTHY status when i am using following url
rest/v2/cache-managers/keycloak/health/status
this is causing only one node to come up.
thanks again.
from infinispan-helm-charts.
- 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available:
The PVC
instance have been created, but you don't have an PersistentVolume
(PV) available for the PVC to be bound to:
from infinispan-helm-charts.
ok cool thanks, Just one more thing any idea about 2nd issue i am getting i just changed the cacheContainer name this seems to the reason for health check to fail how can i fix it
from infinispan-helm-charts.
Two choices:
- Change the name of your cacheContainer back to "default"
- Update the probe settings in the helm templates: https://github.com/infinispan/infinispan-helm-charts/blob/main/templates/statefulset.yaml#L85-L115
from infinispan-helm-charts.
@ryanemerson ok ,thanks a lot..!!
from infinispan-helm-charts.
@ryanemerson i am using the following values.yml , but when infinispna cluster is restarting all the cache data is deleted, as per documentation ephemeral flag is set to false by default. i can also see that infinispan pod is binded to PV , why on restart infinispan not able to get on the previous state.
`images:
server: quay.io/infinispan/server:latest
initContainer: registry.access.redhat.com/ubi8-micro
deploy:
infinispan:
cacheContainer:
name: "keycloak"
statistics: "true"
caches:
work:
replicatedCache:
mode: "SYNC"
statistics: "true"
encoding:
mediaType: "application/x-jboss-marshalling"
sessions:
distributedCache:
mode: "SYNC"
statistics: "true"
encoding:
mediaType: "application/x-jboss-marshalling"
authenticationSessions:
distributedCache:
mode: "SYNC"
statistics: "true"
encoding:
mediaType: "application/x-jboss-marshalling"
offlineSessions:
distributedCache:
mode: "SYNC"
statistics: "true"
encoding:
mediaType: "application/x-jboss-marshalling"
clientSessions:
distributedCache:
mode: "SYNC"
statistics: "true"
encoding:
mediaType: "application/x-jboss-marshalling"
offlineClientSessions:
distributedCache:
mode: "SYNC"
statistics: "true"
encoding:
mediaType: "application/x-jboss-marshalling"
loginFailures:
distributedCache:
mode: "SYNC"
statistics: "true"
encoding:
mediaType: "application/x-jboss-marshalling"
actionTokens:
distributedCache:
mode: "SYNC"
statistics: "true"
owners: "2"
encoding:
mediaType: "application/x-jboss-marshalling"
replicas: 2
security:
authentication: true
secretName: infinispan-credentials
`
could you please help here.?
from infinispan-helm-charts.
@samyakjain224 You haven't defined persistence on your caches, which means there content is stored in-memory only.
Infinispan supports different persistence integrations, most notably file-based and JDBC. File-based stores are the simplest to use, as a store is just created per pod, however in the event of pod restart stale values for a given key may be reloaded from the store if the key was updated on a live pod. JDBC stores workaround the aforementioned limitation by using shared=true
which means that a single DB table is used to persist updates from all Infinispan pods.
If the limitations of file-based stores are acceptable, you can update your cache configurations to include the following:
sessions:
distributedCache:
mode: "SYNC"
statistics: "true"
encoding:
mediaType: "application/x-jboss-marshalling"
persistence:
fileStore: ~
For more information and additional configuration options, please see the Infinispan Docs.
from infinispan-helm-charts.
ok thanks
from infinispan-helm-charts.
Related Issues (20)
- HelmChart should support encryption
- Infinispan Server failed to start org.infinispan.manager.EmbeddedCacheManagerStartupException HOT 18
- securityContext.fsGroup should not be assigned in default values
- Route/Ingress must be configured properly with TLS
- Docs for encryption should show how to use credentials store
- Helm chart encryption docs minor formatting fixes
- Add chart to Artifacthub HOT 3
- Update to Infinispan 15
- Server unable to start after pod restart with Infinispan 15
- Autoscaling support for Helm release HOT 1
- How to safely add password to security.batch HOT 2
- Error when added annotations or podLabeles HOT 16
- Add volume without using TemplateVolume HOT 4
- After Deploy infinispan don't work correcrtly HOT 26
- Console error after deploy default
- Enter to different infinispan securityRealm through UI console HOT 10
- User with role admin dont have possibility create cache HOT 23
- error on first time deploy of chart ISPN000512 Cannot acquire lock /opt/infinispan/server/data/___global.lck HOT 9
- Error Create Cache HOT 25
- Allow the user to specify container securityContext HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinispan-helm-charts.