Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
d483f0b0
Commit
d483f0b0
authored
7 years ago
by
Michael Schurter
Committed by
Michael Schurter
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
transistion -> transition
parent
a437737e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
client/alloc_runner_health_watcher.go
+1
-1
client/alloc_runner_health_watcher.go
client/client.go
+1
-1
client/client.go
client/task_runner.go
+1
-1
client/task_runner.go
nomad/deploymentwatcher/deployment_watcher.go
+1
-1
nomad/deploymentwatcher/deployment_watcher.go
nomad/node_endpoint.go
+1
-1
nomad/node_endpoint.go
nomad/periodic.go
+1
-1
nomad/periodic.go
nomad/server.go
+1
-1
nomad/server.go
website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md
+1
-1
...perating-a-job/update-strategies/rolling-upgrades.html.md
with
8 additions
and
8 deletions
+8
-8
client/alloc_runner_health_watcher.go
+
1
-
1
View file @
d483f0b0
...
...
@@ -479,7 +479,7 @@ OUTER:
}
if
!
passed
{
// Reset the timer since we have transi
s
tioned back to unhealthy
// Reset the timer since we have transitioned back to unhealthy
if
primed
{
if
!
healthyTimer
.
Stop
()
{
select
{
...
...
This diff is collapsed.
Click to expand it.
client/client.go
+
1
-
1
View file @
d483f0b0
...
...
@@ -670,7 +670,7 @@ func (c *Client) restoreState() error {
}
// COMPAT: Remove in 0.7.0
// 0.6.0 transi
s
tioned 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
...
...
This diff is collapsed.
Click to expand it.
client/task_runner.go
+
1
-
1
View file @
d483f0b0
...
...
@@ -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 transi
s
tioned 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
...
...
This diff is collapsed.
Click to expand it.
nomad/deploymentwatcher/deployment_watcher.go
+
1
-
1
View file @
d483f0b0
...
...
@@ -43,7 +43,7 @@ type deploymentTriggers interface {
}
// deploymentWatcher is used to watch a single deployment and trigger the
// scheduler when allocation health transi
s
tions.
// scheduler when allocation health transitions.
type
deploymentWatcher
struct
{
// queryLimiter is used to limit the rate of blocking queries
queryLimiter
*
rate
.
Limiter
...
...
This diff is collapsed.
Click to expand it.
nomad/node_endpoint.go
+
1
-
1
View file @
d483f0b0
...
...
@@ -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 transi
s
tioned 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
...
...
This diff is collapsed.
Click to expand it.
nomad/periodic.go
+
1
-
1
View file @
d483f0b0
...
...
@@ -163,7 +163,7 @@ func (p *PeriodicDispatch) SetEnabled(enabled bool) {
wasRunning
:=
p
.
enabled
p
.
enabled
=
enabled
// If we are transi
s
tioning 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
()
...
...
This diff is collapsed.
Click to expand it.
nomad/server.go
+
1
-
1
View file @
d483f0b0
...
...
@@ -855,7 +855,7 @@ func (s *Server) setupConsulSyncer() error {
}
// setupDeploymentWatcher creates a deployment watcher that consumes the RPC
// endpoints for state information and makes transi
s
tions 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
{
...
...
This diff is collapsed.
Click to expand it.
website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md
+
1
-
1
View file @
d483f0b0
...
...
@@ -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
transi
s
tions jobs between versions and using health check information to
transitions jobs between versions and using health check information to
reduce downtime.
---
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment