gitlab-org--gitlab-foss/doc/administration/operations
Nick Thomas f0c52df5e5 sidekiq: terminate child processes at shutdown
Sidekiq jobs frequently spawn long-lived child processes to do work.
In some circumstances, these can be reparented to init when sidekiq is
terminated, leading to duplication of work and strange concurrency
problems.

This commit changes sidekiq so that, if run as a process group leader,
it will forward `INT` and `TERM` signals to the whole process group. If
the memory killer is active, it will also use the process group when
resorting to `kill -9` to shut down.

These changes mean that a naive `kill <pid-of-sidekiq>` will now do the
right thing, killing any child processes spawned by sidekiq, as long as
the process supervisor placed it in its own process group.

If sidekiq isn't a process group leader, this new code is skipped.
2019-03-04 09:06:41 -08:00
..
img
cleaning_up_redis_sessions.md Remove consecutive blank lines from markdown files 2019-02-18 09:36:13 +00:00
fast_ssh_key_lookup.md Resolve Markdown ordered lists not conforming to styleguide 2018-11-13 10:53:38 +10:00
filesystem_benchmarking.md Add missing punctuation 2019-02-08 10:46:45 +10:00
index.md Ensure all lists are surrounded by new lines 2019-02-22 13:17:10 +00:00
moving_repositories.md docs: moving repositories cleanup 2018-10-03 23:26:01 +00:00
sidekiq_memory_killer.md sidekiq: terminate child processes at shutdown 2019-03-04 09:06:41 -08:00
speed_up_ssh.md
ssh_certificates.md
unicorn.md Setting Unicorn Worker memory limit in gitlab.rb 2019-01-10 13:19:51 +00:00