diff --git a/client/alloc_runner_health_watcher.go b/client/alloc_runner_health_watcher.go index e23845d108774ab923d973317d1d4eb2522aa86d..db9164740319360fd0df5919e71458b9b30842d1 100644 --- a/client/alloc_runner_health_watcher.go +++ b/client/alloc_runner_health_watcher.go @@ -479,7 +479,7 @@ OUTER: } if !passed { - // Reset the timer since we have transistioned back to unhealthy + // Reset the timer since we have transitioned back to unhealthy if primed { if !healthyTimer.Stop() { select { diff --git a/client/client.go b/client/client.go index 757f3279900e61d9191b531ba38059ddd45b1cea..a7fea557b567a43dfe59d10ddf07f875c339c398 100644 --- a/client/client.go +++ b/client/client.go @@ -670,7 +670,7 @@ func (c *Client) restoreState() error { } // COMPAT: Remove in 0.7.0 - // 0.6.0 transistioned from individual state files to a single bolt-db. + // 0.6.0 transitioned from individual state files to a single bolt-db. // The upgrade path is to: // Check if old state exists // If so, restore from that and delete old state diff --git a/client/task_runner.go b/client/task_runner.go index 9d45d91f7f6ab3ddd74e347243cb4a154582813e..607c103cc08528a8f685f04bc59e9c92da00f7a2 100644 --- a/client/task_runner.go +++ b/client/task_runner.go @@ -329,7 +329,7 @@ func (r *TaskRunner) pre060StateFilePath() string { // executor. func (r *TaskRunner) RestoreState() (string, error) { // COMPAT: Remove in 0.7.0 - // 0.6.0 transistioned from individual state files to a single bolt-db. + // 0.6.0 transitioned from individual state files to a single bolt-db. // The upgrade path is to: // Check if old state exists // If so, restore from that and delete old state diff --git a/nomad/deploymentwatcher/deployment_watcher.go b/nomad/deploymentwatcher/deployment_watcher.go index 003268916af1614dfb936bb3c82839d7c395daa1..6b60684d64f714eb2566b44e3691d08ac0954c4b 100644 --- a/nomad/deploymentwatcher/deployment_watcher.go +++ b/nomad/deploymentwatcher/deployment_watcher.go @@ -43,7 +43,7 @@ type deploymentTriggers interface { } // deploymentWatcher is used to watch a single deployment and trigger the -// scheduler when allocation health transistions. +// scheduler when allocation health transitions. type deploymentWatcher struct { // queryLimiter is used to limit the rate of blocking queries queryLimiter *rate.Limiter diff --git a/nomad/node_endpoint.go b/nomad/node_endpoint.go index ff99c72e64f80771de26bcf7c1075335c8afb9d9..7d776a70261fecf0f10bebc4abe5fccc5d676a75 100644 --- a/nomad/node_endpoint.go +++ b/nomad/node_endpoint.go @@ -392,7 +392,7 @@ func (n *Node) UpdateStatus(args *structs.NodeUpdateStatusRequest, reply *struct } // transitionedToReady is a helper that takes a nodes new and old status and -// returns whether it has transistioned to ready. +// returns whether it has transitioned to ready. func transitionedToReady(newStatus, oldStatus string) bool { initToReady := oldStatus == structs.NodeStatusInit && newStatus == structs.NodeStatusReady terminalToReady := oldStatus == structs.NodeStatusDown && newStatus == structs.NodeStatusReady diff --git a/nomad/periodic.go b/nomad/periodic.go index 0549f900ccf4014a3aac4e0a07ec8d00898b1eb3..54b264b8adc5756ccf19bf03bc415c0e0cefec2c 100644 --- a/nomad/periodic.go +++ b/nomad/periodic.go @@ -163,7 +163,7 @@ func (p *PeriodicDispatch) SetEnabled(enabled bool) { wasRunning := p.enabled p.enabled = enabled - // If we are transistioning from enabled to disabled, stop the daemon and + // If we are transitioning from enabled to disabled, stop the daemon and // flush. if !enabled && wasRunning { p.stopFn() diff --git a/nomad/server.go b/nomad/server.go index a70c2f8905fd107be5e9f68e87bb514c565fe82c..f650e900865bdd9d564c2ca063716937baeef547 100644 --- a/nomad/server.go +++ b/nomad/server.go @@ -855,7 +855,7 @@ func (s *Server) setupConsulSyncer() error { } // setupDeploymentWatcher creates a deployment watcher that consumes the RPC -// endpoints for state information and makes transistions via Raft through a +// endpoints for state information and makes transitions via Raft through a // shim that provides the appropriate methods. func (s *Server) setupDeploymentWatcher() error { diff --git a/website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md b/website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md index ec089182771c28c6fc0124077ff8791322868789..407a8571158915a62c3c92b0b6ef69452a189d15 100644 --- a/website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md +++ b/website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md @@ -5,7 +5,7 @@ sidebar_current: "docs-operating-a-job-updating-rolling-upgrades" description: |- In order to update a service while reducing downtime, Nomad provides a built-in mechanism for rolling upgrades. Rolling upgrades incrementally - transistions jobs between versions and using health check information to + transitions jobs between versions and using health check information to reduce downtime. ---