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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
9898f9b4
Commit
9898f9b4
authored
May 05, 2016
by
DJ Mountney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the standard health_check options to include the cache check.
parent
67dc3b9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
config/initializers/health_check.rb
config/initializers/health_check.rb
+3
-28
No files found.
config/initializers/health_check.rb
View file @
9898f9b4
# HealthCheck.setup do |config|
HealthCheck
.
setup
do
|
config
|
# # Text output upon success
config
.
standard_checks
=
[
'database'
,
'migrations'
,
'cache'
]
# config.success = 'success'
end
#
# # Timeout in seconds used when checking smtp server
# config.smtp_timeout = 30.0
#
# # http status code used when plain text error message is output
# # Set to 200 if you want your want to distinguish between partial (text does not include success) and
# # total failure of rails application (http status of 500 etc)
# config.http_status_for_error_text = 500
#
# # http status code used when an error object is output (json or xml)
# # Set to 200 if you want your want to distinguish between partial (healthy property == false) and
# # total failure of rails application (http status of 500 etc)
# config.http_status_for_error_object = 500
#
# # You can customize which checks happen on a standard health check
# config.standard_checks = [ 'database', 'migrations', 'custom' ]
#
# # You can set what tests are run with the 'full' or 'all' parameter
# config.full_checks = ['database', 'migrations', 'custom', 'email', 'cache']
#
# # Add one or more custom checks that return a blank string if ok, or an error message if there is an error
# config.add_custom_check do
# any code that returns blank on success and non blank string upon failure
# end
# 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