Skip to content

Conversation

@RawanMostafa08
Copy link
Contributor

Description

fallback to a healthy master is the leader is down

Changes

fallback to a healthy master is the leader is down for deploy node, batch deploy nodes

Related Issues

#948

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstring

Comment on lines +101 to +106
for _, n := range cluster.Nodes {
if n.Type == NodeTypeMaster && n.Healthy {
leaderIP = n.IP
log.Debug().Str("node_name", n.Name).Str("node_ip", n.IP).Msg("Using alternative healthy master")
break
}
Copy link
Contributor

@SalmaElsoly SalmaElsoly Dec 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what will happen if there was no alternative node? I think we should return an error in that case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants