Product SiteDocumentation Site

Capitolo 6. Vincoli delle risorse

Indice

6.1. Punteggi
6.1.1. Il valore INFINITY
6.2. Decidere quale nodo può erogare una risorsa
6.2.1. Opzioni
6.2.2. Asymmetrical "Opt-In" Clusters
6.2.3. Symmetrical "Opt-Out" Clusters
6.2.4. What if Two Nodes Have the Same Score
6.3. Specifying in which Order Resources Should Start/Stop
6.3.1. Mandatory Ordering
6.3.2. Advisory Ordering
6.4. Placing Resources Relative to other Resources
6.4.1. Opzioni
6.4.2. Mandatory Placement
6.4.3. Advisory Placement
6.5. Ordering Sets of Resources
6.6. Ordered Set
6.7. Two Sets of Unordered Resources
6.8. Three Resources Sets
6.9. Collocating Sets of Resources
6.10. Another Three Resources Sets

6.1. Punteggi

Nel funzionamento del cluster sono integrati punteggi di ogni tipo. Praticamente qualsiasi decisione, dallo spostamento di una risorsa sino a quale risorsa fermare in un cluster degradato, è ottenuta manipolando in qualche forma i punteggi.
Scores are calculated on a per-resource basis and any node with a negative score for a resource can’t run that resource. After calculating the scores for a resource, the cluster then chooses the node with the highest one.

6.1.1. Il valore INFINITY

INFINITY is currently defined as 1,000,000 and addition/subtraction with it follows these three basic rules:
  • Qualsiasi valore + INFINITY = INFINITY
  • Qualsiasi valore - INFINITY = -INFINITY
  • INFINITY - INFINITY = -INFINITY