Fix markdown and log messages

This commit is contained in:
Alex Dadgar 2015-10-23 09:56:48 -07:00
parent 9541e102b6
commit be50fe6254
2 changed files with 4 additions and 4 deletions

View File

@ -201,12 +201,12 @@ func (iter *DynamicConstraintIterator) hasDistinctHostsConstraint(constraints []
func (iter *DynamicConstraintIterator) Next() *structs.Node {
if iter.job == nil {
iter.ctx.Logger().Printf("[ERR] sched.dynamic-constraint: job not set")
iter.ctx.Logger().Printf("[ERR] scheduler.dynamic-constraint: job not set")
return nil
}
if iter.tg == nil {
iter.ctx.Logger().Printf("[ERR] sched.dynamic-constraint: task group not set")
iter.ctx.Logger().Printf("[ERR] scheduler.dynamic-constraint: task group not set")
return nil
}
@ -235,7 +235,7 @@ func (iter *DynamicConstraintIterator) satisfiesDistinctHosts(option *structs.No
proposed, err := iter.ctx.ProposedAllocs(option.ID)
if err != nil {
iter.ctx.Logger().Printf(
"[ERR] sched.dynamic-constraint: failed to get proposed allocations: %v", err)
"[ERR] scheduler.dynamic-constraint: failed to get proposed allocations: %v", err)
return false
}

View File

@ -240,7 +240,7 @@ The `constraint` object supports the following keys:
* `distinctHosts` - `distinctHosts` accepts a boolean `true`. The default is
`false`.
When `distinctHosts is `true` at the Job level, each instance of all Task
When `distinctHosts` is `true` at the Job level, each instance of all Task
Groups specified in the job is placed on a separate host.
When `distinctHosts` is `true` at the Task Group level with count > 1, each