Giter Site home page Giter Site logo

Comments (9)

ryanemerson avatar ryanemerson commented on June 5, 2024

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.

samyakjain224 avatar samyakjain224 commented on June 5, 2024

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

Screenshot 2023-08-08 at 4 19 14 PM

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.
Screenshot 2023-08-08 at 4 13 07 PM

thanks again.

from infinispan-helm-charts.

ryanemerson avatar ryanemerson commented on June 5, 2024
  • 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:

https://stackoverflow.com/questions/74741993/0-1-nodes-are-available-1-pod-has-unbound-immediate-persistentvolumeclaims

from infinispan-helm-charts.

samyakjain224 avatar samyakjain224 commented on June 5, 2024

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.

ryanemerson avatar ryanemerson commented on June 5, 2024

Two choices:

  1. Change the name of your cacheContainer back to "default"
  2. 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.

samyakjain224 avatar samyakjain224 commented on June 5, 2024

@ryanemerson ok ,thanks a lot..!!

from infinispan-helm-charts.

samyakjain224 avatar samyakjain224 commented on June 5, 2024

@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
`

Screenshot 2023-10-05 at 1 22 09 PM Screenshot 2023-10-05 at 1 22 29 PM

could you please help here.?

from infinispan-helm-charts.

ryanemerson avatar ryanemerson commented on June 5, 2024

@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.

samyakjain224 avatar samyakjain224 commented on June 5, 2024

ok thanks

from infinispan-helm-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.