Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions doc/admin-guide/files/records.yaml.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ System Variables
Thread Variables
----------------

.. ts:cv:: CONFIG proxy.config.exec_thread.autoconfig INT 1
.. ts:cv:: CONFIG proxy.config.exec_thread.autoconfig.enabled INT 1

When enabled (the default, ``1``), |TS| scales threads according to the
available CPU cores. See the config option below.
Expand All @@ -370,7 +370,7 @@ Thread Variables

.. ts:cv:: CONFIG proxy.config.exec_thread.limit INT 2

The number of threads |TS| will create if `proxy.config.exec_thread.autoconfig`
The number of threads |TS| will create if `proxy.config.exec_thread.autoconfig.enabled`
is set to ``0``, otherwise this option is ignored.

.. ts:cv:: CONFIG proxy.config.exec_thread.listen INT 0
Expand Down Expand Up @@ -5027,12 +5027,20 @@ Sockets

Make sure accept threads are enabled

The relevant configurations for this are::
The relevant configurations for this are

.. code-block:: yaml
:linenos:

ts:
exec_thread:
autoconfig:
enabled: 0
limit: 2
accept_threads: 1
cache:
threads_per_disk: 8

CONFIG proxy.config.exec_thread.autoconfig INT 0
CONFIG proxy.config.exec_thread.limit INT 2
CONFIG proxy.config.accept_threads INT 1
CONFIG proxy.config.cache.threads_per_disk INT 8

See :ref:`admin-performance-timeouts` for more discussion on |TS| timeouts.

Expand Down
2 changes: 1 addition & 1 deletion doc/admin-guide/performance/index.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Thread Scaling
By default, |TS| creates one thread per CPU core on the host system. This may
be adjusted with the following settings in :file:`records.yaml`:

* :ts:cv:`proxy.config.exec_thread.autoconfig`
* :ts:cv:`proxy.config.exec_thread.autoconfig.enabled`
* :ts:cv:`proxy.config.exec_thread.autoconfig.scale`
* :ts:cv:`proxy.config.exec_thread.limit`

Expand Down