@@ -33,6 +42,11 @@ class ChaosController < ActionController::Base
defvalidate_request
secret=ENV['GITLAB_CHAOS_SECRET']
# GITLAB_CHAOS_SECRET is required unless you're running in Development mode
if!secret&&!Rails.env.development?
rendertext: "chaos misconfigured: please configure GITLAB_CHAOS_SECRET when using GITLAB_ENABLE_CHAOS_ENDPOINTS outside of a development environment",content_type: 'text/plain',status: 500
The `memory_mb` parameter tells the application how much memory it should leak.
The `memory_mb` parameter tells the application how much memory it should leak. The `duration_s` parameter will ensure the request retains
the memory for this duration at a minimum (default 30s).
Note: the memory is not retained after the request, so once its completed, the Ruby garbage collector will attempt to recover the memory.
Note: the memory is not retained after the request finishes. Once the request has completed, the Ruby garbage collector will attempt to recover the memory.