mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
spelling: evaluation
This commit is contained in:
@@ -195,7 +195,7 @@ type Config struct {
|
||||
// an evaluation that has been Nacked more than once. This delay is
|
||||
// compounding after the first Nack. This value should be significantly
|
||||
// longer than the initial delay as the purpose it severs is to apply
|
||||
// back-pressure as evaluatiions are being Nacked either due to scheduler
|
||||
// back-pressure as evaluations are being Nacked either due to scheduler
|
||||
// failures or because they are hitting their Nack timeout, both of which
|
||||
// are signs of high server resource usage.
|
||||
EvalNackSubsequentReenqueueDelay time.Duration
|
||||
|
||||
@@ -105,7 +105,7 @@ type PendingEvaluations []*structs.Evaluation
|
||||
// with the timeout used for messages that are not acknowledged before we
|
||||
// assume a Nack and attempt to redeliver as well as the deliveryLimit
|
||||
// which prevents a failing eval from being endlessly delivered. The
|
||||
// initialNackDelay is the delay before making a Nacked evalution available
|
||||
// initialNackDelay is the delay before making a Nacked evaluation available
|
||||
// again for the first Nack and subsequentNackDelay is the compounding delay
|
||||
// after the first Nack.
|
||||
func NewEvalBroker(timeout, initialNackDelay, subsequentNackDelay time.Duration, deliveryLimit int) (*EvalBroker, error) {
|
||||
@@ -755,7 +755,7 @@ func (p PendingEvaluations) Swap(i, j int) {
|
||||
p[i], p[j] = p[j], p[i]
|
||||
}
|
||||
|
||||
// Push is used to add a new evalution to the slice
|
||||
// Push is used to add a new evaluation to the slice
|
||||
func (p *PendingEvaluations) Push(e interface{}) {
|
||||
*p = append(*p, e.(*structs.Evaluation))
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ type FSMConfig struct {
|
||||
// added/removed from
|
||||
Periodic *PeriodicDispatch
|
||||
|
||||
// BlockedEvals is the blocked eval tracker that blocked evaulations should
|
||||
// BlockedEvals is the blocked eval tracker that blocked evaluations should
|
||||
// be added to.
|
||||
Blocked *BlockedEvals
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ func (p PendingPlans) Swap(i, j int) {
|
||||
p[i], p[j] = p[j], p[i]
|
||||
}
|
||||
|
||||
// Push is used to add a new evalution to the slice
|
||||
// Push is used to add a new evaluation to the slice
|
||||
func (p *PendingPlans) Push(e interface{}) {
|
||||
*p = append(*p, e.(*pendingPlan))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user