Class: Gitlab::HealthChecks::MasterCheck
Overview
This check is registered on master, and validated by worker
Class Method Summary
collapse
metrics, readiness
#available?, #human_name, #metrics, #name, #readiness
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
Class Method Details
.finish_master ⇒ Object
27
28
29
30
31
32
|
# File 'lib/gitlab/health_checks/master_check.rb', line 27
def finish_master
return unless available?
close_read
close_write
end
|
.register_master ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'lib/gitlab/health_checks/master_check.rb', line 18
def register_master
return unless available?
@pipe_read, @pipe_write = IO.pipe
end
|
.register_worker ⇒ Object
34
35
36
37
38
39
|
# File 'lib/gitlab/health_checks/master_check.rb', line 34
def register_worker
return unless available?
close_write
end
|