Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-11-07 19:21:17 +0300
committerSean McGivern <sean@mcgivern.me.uk>2018-11-07 19:21:17 +0300
commitcd6450923f72538a7a28b7c16cf9a2e38a5115ec (patch)
tree021dde9e03060dcc504ff0b70a16ac99106d12d7 /config
parent8a55e477adac8c41aaa281dc119f9007a0c20451 (diff)
parent673f06253d1e799a8024b18270c1a7279fabe9b8 (diff)
Merge branch '52767-more-chaos-for-gitlab' into 'master'
Add more chaos to GitLab Closes #53362 and #52767 See merge request gitlab-org/gitlab-ce!22746
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index d2d91647d0b..484e05114be 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -82,6 +82,13 @@ Rails.application.routes.draw do
draw :operations
draw :instance_statistics
+
+ if ENV['GITLAB_ENABLE_CHAOS_ENDPOINTS']
+ get '/chaos/leakmem' => 'chaos#leakmem'
+ get '/chaos/cpuspin' => 'chaos#cpuspin'
+ get '/chaos/sleep' => 'chaos#sleep'
+ get '/chaos/kill' => 'chaos#kill'
+ end
end
concern :clusterable do