Skip to content

Add a chaos endpoint that signals QUIT

Matthias Käppler requested to merge mk-chaos-quit into master

What does this MR do?

Related to #326348 (closed)

We already have a chaos endpoint that signals KILL: https://docs.gitlab.com/ee/development/chaos_endpoints.html#kill

The problem is that KILL does not dump core; but this can be extremely useful to debug problems with the Ruby VM. We are preparing CI workers to be able to write core dumps in this MR: !58674 (closed)

With this MR we add a new chaos endpoint /quit which signals SIGQUIT instead. SIGQUIT instructs the kernel to also produce a core dump: https://man7.org/linux/man-pages/man7/signal.7.html

Tested this locally with a GCK web container and it worked fine.

I noticed that this container inherited my host system settings for producing core dumps (ulimits and core_pattern) so in order to use this, those properties need to be set up accordingly.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Matthias Käppler

Merge request reports