switch to new raft DesiredTransition message

This commit is contained in:
Michael Schurter
2018-02-22 17:38:44 -08:00
parent 7deabe958d
commit 832b1d5694
17 changed files with 228 additions and 156 deletions

View File

@@ -81,7 +81,7 @@ type Allocation struct {
Metrics *AllocationMetric
DesiredStatus string
DesiredDescription string
DesiredTransistion DesiredTransistion
DesiredTransition DesiredTransition
ClientStatus string
ClientDescription string
TaskStates map[string]*TaskState
@@ -207,10 +207,10 @@ type RescheduleEvent struct {
PrevNodeID string
}
// DesiredTransistion is used to mark an allocation as having a desired state
// transistion. This information can be used by the scheduler to make the
// DesiredTransition is used to mark an allocation as having a desired state
// transition. This information can be used by the scheduler to make the
// correct decision.
type DesiredTransistion struct {
type DesiredTransition struct {
// Migrate is used to indicate that this allocation should be stopped and
// migrated to another node.
Migrate *bool