summaryrefslogtreecommitdiff
path: root/lib/gitlab/sidekiq_middleware
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'aiionx_sidekiq_log_patch' into 'master' Rémy Coutable2016-10-031-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Log sidekiq arguments as json Logging the sidekiq job arguments as a ruby literal structure is akward. Specially when parsing the logs. JSON is a standar format. See merge request !3735
| * aiionx_sidekiq_log_patchDavid2016-04-151-1/+1
| |
* | Add support for using RequestStore within Sidekiq tasks via ↵Stan Hu2016-07-251-0/+13
| | | | | | | | | | | | | | | | | | SIDEKIQ_REQUEST_STORE env variable This significantly reduces the DB churn in the PostReceive task when it performs reference extraction. See #18663
* | even more debugJames Lopez2016-07-061-2/+2
| |
* | better debugging for memory killer middlewarefix/sidekiq-mem-killer-debugJames Lopez2016-06-271-2/+2
| |
* | Use SIGTERM during Sidekiq memory shutdownJacob Vosmaer2016-04-211-2/+2
|/ | | | This makes the memory killer behave more like 'sidekiqctl stop'.
* Use SIGKILL by default in Sidekiq::MemoryKillerJacob Vosmaer2015-05-131-1/+1
| | | | | | | This makes the memory growth-triggered Sidekiq restarts more reliable by reducing the chance that Sidekiq ends up in a state where it is not accepting new jobs but also not shutting down: SIGKILL is more likely to work than SIGTERM.
* Add SIDEKIQ_MEMORY_KILLER_SHUTDOWN_SIGNAL env varJacob Vosmaer2015-05-071-5/+6
| | | | | | | It looks like SIGTERM may not be enough to shut down a Sidekiq process when its RSS has gotten too big. This change will allow us to experiment with sending SIGKILL instead of SIGTERM to Sidekiq processes on gitlab.com.
* Fix typoJacob Vosmaer2014-12-081-1/+1
|
* Use constants instead of gettersJacob Vosmaer2014-12-081-26/+13
|
* Wait 15 minutes before Sidekiq MemoryKiller actionJacob Vosmaer2014-12-051-15/+33
|
* Add comments to the MemoryKiller middlewareJacob Vosmaer2014-11-281-0/+3
|
* Add 'MemoryKiller' Sidekiq middlewareJacob Vosmaer2014-11-281-0/+45
| | | | | | | When enabled, this middleware allows Sidekiq to detect that its RSS has exceeded a maximum value, triggering a graceful shutdown. This middleware should be combined with external process supervision that will restart Sidekiq after the graceful shutdown, such as Runit.
* Log Sidekiq argumentsJacob Vosmaer2014-07-281-0/+10