Fix markdown and log messages
This commit is contained in:
parent
9541e102b6
commit
be50fe6254
|
@ -201,12 +201,12 @@ func (iter *DynamicConstraintIterator) hasDistinctHostsConstraint(constraints []
|
||||||
|
|
||||||
func (iter *DynamicConstraintIterator) Next() *structs.Node {
|
func (iter *DynamicConstraintIterator) Next() *structs.Node {
|
||||||
if iter.job == nil {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if iter.tg == 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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ func (iter *DynamicConstraintIterator) satisfiesDistinctHosts(option *structs.No
|
||||||
proposed, err := iter.ctx.ProposedAllocs(option.ID)
|
proposed, err := iter.ctx.ProposedAllocs(option.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
iter.ctx.Logger().Printf(
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@ The `constraint` object supports the following keys:
|
||||||
* `distinctHosts` - `distinctHosts` accepts a boolean `true`. The default is
|
* `distinctHosts` - `distinctHosts` accepts a boolean `true`. The default is
|
||||||
`false`.
|
`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.
|
Groups specified in the job is placed on a separate host.
|
||||||
|
|
||||||
When `distinctHosts` is `true` at the Task Group level with count > 1, each
|
When `distinctHosts` is `true` at the Task Group level with count > 1, each
|
||||||
|
|
Loading…
Reference in a new issue