Class: Gitlab::HealthChecks::MasterCheck
- Inherits:
-
Object
- Object
- Gitlab::HealthChecks::MasterCheck
show all
- Extended by:
- SimpleAbstractCheck
- Defined in:
- lib/gitlab/health_checks/master_check.rb
Overview
This check is registered on master, and validated by worker
Class Method Summary
collapse
metrics, readiness
#human_name, #metrics, #name, #readiness
Class Method Details
.finish_master ⇒ Object
18
19
20
21
|
# File 'lib/gitlab/health_checks/master_check.rb', line 18
def finish_master
close_read
close_write
end
|
.register_master ⇒ Object
11
12
13
14
15
16
|
# File 'lib/gitlab/health_checks/master_check.rb', line 11
def register_master
@pipe_read, @pipe_write = IO.pipe
end
|
.register_worker ⇒ Object
23
24
25
26
|
# File 'lib/gitlab/health_checks/master_check.rb', line 23
def register_worker
close_write
end
|