Skip to content
Snippets Groups Projects
  • Iustin Pop's avatar
    Introduce a relaxed add instance mode · 3e3c9393
    Iustin Pop authored
    In case an instance is living on an offline node, it doesn't make sense
    to refuse moving it because that would create N+1 failures; failing N+1
    is still much better than not running at all. Similarly, if the
    secondary node of an instance is offline, meaning the instance doesn't
    have any redundancy, we have a worse case than having a secondary that
    is N+1 failing and it could not accept the instance as primary, but it
    stil does redundancy for it.
    
    To allow this, we rename Node.addPri to addPriEx and introduce an extra
    parameter (addPri is a partial application of addPriEx and keeps the
    same signature). Node.addSec gets the same treatement.
    3e3c9393