<div dir="ltr">Hey!<div><br></div><div>I&#39;ve been thinking about potential use of Kubernetes/OpenShift (OpenShift = Kubernetes + additional features) Rolling Update mechanism for updating configuration of Hot Rod servers. You might find some more information about the rolling updates here [1][2] but putting it simply, Kubernetes replaces nodes in the cluster one at a time. What&#39;s worth mentioning, Kubernetes ensures that the newly created replica is fully operational before taking down another one.</div><div><br></div><div>There are two things that make me scratching my head...</div><div><br></div><div>#1 - What type of configuration changes can we introduce using rolling updates?</div><div><br></div><div>I&#39;m pretty sure introducing a new cache definition won&#39;t do any harm. But what if we change a cache type from Distributed to Replicated? Do you have any idea which configuration changes are safe and which are not? Could come up with such list?</div><div><br></div><div>#2 - How to prevent loosing data during the rolling update process?</div><div><br></div><div>In Kubernetes we have a mechanism called lifecycle hooks [3] (we can invoke a script during container startup/shutdown). The problem with shutdown script is that it&#39;s time constrained (if it won&#39;t end up within certain amount of time, Kubernetes will simply kill the container). Fortunately this time is configurable.</div><div><br></div><div>The idea to prevent from loosing data would be to invoke (enquque and wait for finish) state transfer process triggered by the shutdown hook (with timeout set to maximum value). If for some reason this won&#39;t work (e.g. a user has so much data that migrating it this way would take ages), there is a backup plan - Infinispan Rolling Upgrades [4].</div><div><br></div><div>What do you think about this? </div><div><br></div><div>Thanks</div><div>Sebastian</div><div><br></div><div>[1] <a href="https://www.youtube.com/watch?v=9C6YeyyUUmI">https://www.youtube.com/watch?v=9C6YeyyUUmI</a></div><div>[2] <a href="http://kubernetes.io/docs/user-guide/rolling-updates/">http://kubernetes.io/docs/user-guide/rolling-updates/</a></div><div>[3] <a href="http://kubernetes.io/docs/user-guide/container-environment/#container-hooks">http://kubernetes.io/docs/user-guide/container-environment/#container-hooks</a></div><div>[4] <a href="http://infinispan.org/docs/stable/user_guide/user_guide.html#_Rolling_chapter">http://infinispan.org/docs/stable/user_guide/user_guide.html#_Rolling_chapter</a></div></div>