Skip to content
  • Iustin Pop's avatar
    Fix ReplaceSecondary moves for offline nodes · 74e89a14
    Iustin Pop authored
    The addition of a new secondary on a node is doing two memory tests:
    - in strict mode, reject if we get into N+1 failure
    - reject if the new instance memory is greater than the free memory (not
      available memory) on the node
    
    The last check is designed to ensure that, irrespective of the other
    secondary instances on this node, we are able to failover/migrate the
    newly-added instance.
    
    However, we should allow this, if the instances comes from an offline
    node, which doesn't offer anything (not even disk replication).
    Therefore this patch makes this check conditional on the strict mode.
    74e89a14