You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this behavior, you must use the keyword "no-exit-on-failure".
8627
8632
8628
8633
See also "-W" in the management guide.
8634
+
</pre><a class="anchor" name="master-worker"></a><a class="anchor" name="3-master-worker"></a><a class="anchor" name="3.1-master-worker"></a><a class="anchor" name="master-worker (Global section)"></a><a class="anchor" name="master-worker (Process management and security)"></a><a class="anchor" name="master-worker no-exit-on-failure"></a><a class="anchor" name="3-master-worker no-exit-on-failure"></a><a class="anchor" name="3.1-master-worker no-exit-on-failure"></a><a class="anchor" name="master-worker no-exit-on-failure (Global section)"></a><a class="anchor" name="master-worker no-exit-on-failure (Process management and security)"></a><div class="keyword"><b><a class="anchor" name="master-worker no-exit-on-failure"></a><a href="#3.1-master-worker%20no-exit-on-failure">master-worker no-exit-on-failure</a></b></div><pre class="text">In master-worker mode, by default, if a worker exits with a bad return code,
8635
+
in the case of a segfault for example, all workers will be killed, and the
8636
+
master will leave. It is convenient to combine this behavior with
8637
+
Restart=on-failure in a systemd unit file in order to relaunch the whole
8638
+
process.
8639
+
8640
+
This keyword allows to keep the remaining processes alive when a worker
8641
+
crashed instead of killing everything. This need to be used with caution as
8642
+
it is only meant for debugging and could put the master process in an
8643
+
abnormal state.
8629
8644
</pre><a class="anchor" name="mworker-max-reloads"></a><a class="anchor" name="3-mworker-max-reloads"></a><a class="anchor" name="3.1-mworker-max-reloads"></a><a class="anchor" name="mworker-max-reloads (Global section)"></a><a class="anchor" name="mworker-max-reloads (Process management and security)"></a><div class="keyword"><b><a class="anchor" name="mworker-max-reloads"></a><a href="#3.1-mworker-max-reloads">mworker-max-reloads</a></b> <span style="color: #080"><number></span></div><pre class="text">In master-worker mode, this option limits the number of time a worker can
8630
8645
survive to a reload. If the worker did not leave after a reload, once its
8631
8646
number of reloads is greater than this number, the worker will receive a
0 commit comments