summaryrefslogtreecommitdiff
path: root/app/controllers/health_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@12-5-stable-eeGitLab Bot2019-11-191-3/+9
|
* Add latest changes from gitlab-org/gitlab@12-4-stable-eeGitLab Bot2019-10-221-23/+13
|
* Remove Git circuit breakerZeger-Jan van de Weg2018-10-101-10/+1
| | | | | | | Was introduced in the time that GitLab still used NFS, which is not required anymore in most cases. By removing this, the API it calls will return empty responses. This interface has to be removed in the next major release, expected to be 12.0.
* Enable frozen string in app/controllers/**/*.rbrepo-forks/gitlab-ce-frozen-string-app-controllergfyoung2018-09-181-0/+2
| | | | | | | | | | | | Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
* Gitaly metrics check for read/writeabilityZeger-Jan van de Weg2018-06-271-1/+0
| | | | | | | | | | | | | | Prior to this change, health checks checked for writeability of the NFS shards. Given we're moving away from that, this patch extends the checks for Gitaly to check for read and writeability. Potentially some dashboards will break, as over time these metrics will no longer appear as Prometheus doesn't get the data anymore. Observability in the circuit breaker will be reduced, but its not expected to be turned on and the circuit breaker is being removed soon too. Closes https://gitlab.com/gitlab-org/gitaly/issues/1218
* [Rails5] Force the `protect_from_forgery` callback run firstblackst0ne-fix-protect-from-forgery-in-application-controllerblackst0ne2018-06-211-1/+1
| | | | | | | | | | | | Since Rails 5.0 the `protect_from_forgery` callback doesn't run first by default anymore. [1] Instead it gets inserted into callbacks chain where callbacks get called in order. This commit forces the callback to run first. [1]: https://github.com/rails/rails/commit/39794037817703575c35a75f1961b01b83791191
* Add a gRPC health check to ensure Gitaly is upsh-add-gitaly-health-checkStan Hu2018-01-241-1/+2
| | | | | | This will enable Geo to skip shards that not operational. Relates to gitlab-org/gitlab-ee#4329
* Move the circuitbreaker check out in a separate processbvl-circuitbreaker-processBob Van Landuyt2017-12-081-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Moving the check out of the general requests, makes sure we don't have any slowdown in the regular requests. To keep the process performing this checks small, the check is still performed inside a unicorn. But that is called from a process running on the same server. Because the checks are now done outside normal request, we can have a simpler failure strategy: The check is now performed in the background every `circuitbreaker_check_interval`. Failures are logged in redis. The failures are reset when the check succeeds. Per check we will try `circuitbreaker_access_retries` times within `circuitbreaker_storage_timeout` seconds. When the number of failures exceeds `circuitbreaker_failure_count_threshold`, we will block access to the storage. After `failure_reset_time` of no checks, we will clear the stored failures. This could happen when the process that performs the checks is not running.
* Merge branch '33949-remove-healthcheck-access-token' into 'master'Sean McGivern2017-07-111-1/+1
|\ | | | | | | | | | | | | Remove the need to use health check token by adding ability to whitelist hosts Closes #33949 See merge request !12612
| * Remove the need to use health check tokenPawel Chojnacki2017-07-051-1/+1
| | | | | | | | | | in favor of whitelist that will be used to control the access to monitoring resources
* | Support multiple Redis instances based on queue typePaul Charlton2017-07-111-1/+4
|/
* Make login_counter instance variable instead of class one.Pawel Chojnacki2017-06-021-2/+0
| | | | | + remove unecessarey require + fix small formatiing issues
* Split metrics from health controller into metrics controllerPawel Chojnacki2017-06-021-29/+0
|
* Add trailing newline to response.Kevin Lyda2017-06-021-3/+15
| | | | | | Prometheus requires a trailing newline in its response. + cleanup
* Prometheus metrics first passPawel Chojnacki2017-06-021-1/+3
| | | | metrics wip
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add /-/readiness /-/liveness and /-/health_metrics endpoints to track ↵Paweł Chojnacki2017-04-071-0/+60
application readiness