Skip to content
  • Oleg Ponomarev's avatar
    Implement instance pinning (desired locations) · b788c738
    Oleg Ponomarev authored
    
    
    Instance pinning is introduced in ganeti locations design document.
    It adds new instance tag of form htools:desiredlocation:x where x is
    a location tag of a desired primary node. This implemented by adding
    second component to the instance locationScore.
    The metric is extended with the following component:
    
    * Sum of dissatisfied desired locations number among all cluster instances.
      An instance desired location is dissatisfied when the instance is assigned
      a desired-location tag x where the node is not tagged with the location tag
      x.
    
    Signed-off-by: default avatarOleg Ponomarev <onponomarev@gmail.com>
    Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
    Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
    b788c738