Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
35fb27db
Commit
35fb27db
authored
Aug 12, 2019
by
Aleksei Lipniagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove worker label from puma terminations metric
parent
c90effd8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
lib/gitlab/cluster/puma_worker_killer_observer.rb
lib/gitlab/cluster/puma_worker_killer_observer.rb
+1
-3
spec/lib/gitlab/cluster/puma_worker_killer_observer_spec.rb
spec/lib/gitlab/cluster/puma_worker_killer_observer_spec.rb
+1
-3
No files found.
lib/gitlab/cluster/puma_worker_killer_observer.rb
View file @
35fb27db
...
...
@@ -15,9 +15,7 @@ module Gitlab
private
def
log_termination
(
worker
)
labels
=
{
worker:
"worker_
#{
worker
.
index
}
"
}
@counter
.
increment
(
labels
)
@counter
.
increment
end
end
end
...
...
spec/lib/gitlab/cluster/puma_worker_killer_observer_spec.rb
View file @
35fb27db
...
...
@@ -17,9 +17,7 @@ describe Gitlab::Cluster::PumaWorkerKillerObserver do
it
'increments timeout counter'
do
worker
=
double
(
index:
0
)
expect
(
counter
)
.
to
receive
(
:increment
)
.
with
({
worker:
'worker_0'
})
expect
(
counter
).
to
receive
(
:increment
)
subject
.
callback
.
call
(
worker
)
end
...
...
Write
Preview
Markdown
is supported
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