From 8cffdb135706d7e2dc522bd53d8064c04a5bbadd Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Thu, 24 Jan 2019 16:50:23 -0600 Subject: [PATCH] review comments --- website/source/docs/job-specification/affinity.html.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/source/docs/job-specification/affinity.html.md b/website/source/docs/job-specification/affinity.html.md index 8fcd08a36..11931e9f2 100644 --- a/website/source/docs/job-specification/affinity.html.md +++ b/website/source/docs/job-specification/affinity.html.md @@ -58,9 +58,9 @@ job "docs" { } ``` -Placing affinities at both the job level and at the group level is redundant -since constraints are applied hierarchically. The job constraints will affect -all groups (and tasks) in the job. +Affinities apply to task groups but may be specified within job and task stanzas as well. +Job affinities apply to all groups within the job. Task affinities apply to the whole task group +that the task is a part of. Nomad will use affinities when computing scores for placement. Nodes that match affinities will have their scores boosted. Affinity scores are combined with other scoring factors such as bin packing.