You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log::warn!("All function replicas have died - graceful failover not possible, we need to start at least one instance first");
994
+
}else{
995
+
// We need to check if the "active" replica (the one serving traffic) or one of the "hot-standby" replicas have been disconnected
996
+
// If the "active replica died, we need to repatch as fast as possible due to KPI-13"
997
+
// If one of the "hot-standby" replicas died, we simply start it on another node. In case there is no other node that can host it, we show an error message.
998
+
let active_replica_died = instances.iter().filter(|x| !self.nodes.contains_key(&x.0.node_id) && x.1).count() == 1;
999
+
if active_replica_died {
1000
+
log::info!("Graceful failover possible! (at least one hot-standby replica is available)");
1001
+
}else{
1002
+
log::info!("Active replica still works! Restarting a replica");
1003
+
}
1004
+
}
1005
+
}else{
1006
+
// Default mechanism
985
1007
if instances.is_empty() || num_disconnected > 0{
986
1008
to_be_repatched.push(*origin_lid);
987
1009
if instances.is_empty() || num_disconnected == instances.len(){
0 commit comments