title: How do I configure Embedded Infinispan to handle K8s rolling updates?
body: <p>I have a simple project that allows you to add keys to a distributed cache in an application that is running Infinispan version 13 in embedded mode. It is all published <a href="https://github.com/radiosphere/rolling-updates-test" rel="nofollow noreferrer">here</a>.</p>
  <p>I run a kubernetes setup that can run in minikube. I observe that when I run my example with six pods and perform a rolling update, my infinispan performance degrades from the start of the roll out up until four minutes after the last pod has restarted and created its cache. After this time the cluster operates as normal again. With degrading I mean that the operation of getting the count of items in the cache takes 2-3 seconds to execute, compared to below 0.5 seconds in normal mode. With my setup this is consistently happening, and consistently working again after four minutes.</p>
  <p>When running the project on my local machine without a kubernetes environment I have not experienced the same kind of delays.</p>
  <p>I have tried using TRACE logs, but can see no event of significance that happens after these four minutes.</p>
  <p>Is there something obvious that I'm missing in my configuration of Infinispan (that you can see in my referenced project), or some additional operation that needs to be performed? (currently I start the cache on startup, and perform stop on shutdown).</p>