I have a cluster using Infinispan in native + replication mode. Cluster size - only 2 systems that operate in active standby mode.
I have a requirement to support a rolling update of my application. I also must not lose any cached data in the process.
To illustrate, consider the simple User class in my version of the v1 application:
public class User {
private String role;
private String firstName;
}
In v2, I add an attribute of the User class:
public class User {
private String role;
private String firstName;
private String lastName;
}
My application is updated as follows:
- A cluster created with nodes n1 (active) and n2 (standby) with my version of the v1 application running on both of these nodes. 10 user objects were created that form part of my key or the value of the infinispan c1 cache.
- node n1.
- n1 node n2.
- n2 , v2.
- n2 , node n1.
- n1 , v2 .
- .
5, n2 , User v1 node n1 User v2 node n2.
node n1, , node n2, , node n2 - c1 /.
, . User , / .
- ?
node n1 , node n2 ( v2) .
. 5.3.0 Infinispan .