You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2024/09/04 09:49:52 UTC

(james-project) 11/20: [Antora] Adapt after partial - [DOC] Document multi-thread Redis configuration

This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 1db0277a12620abf692b2d24cb220dc9ab80e881
Author: Tung Tran <vt...@linagora.com>
AuthorDate: Fri Aug 30 08:47:13 2024 +0700

    [Antora] Adapt after partial - [DOC] Document multi-thread Redis configuration
    
    Adapt commit: 2e8fc24420c2b97dee5b15b96f43e4faab334dd1
---
 docs/modules/servers/partials/configure/redis.adoc | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/docs/modules/servers/partials/configure/redis.adoc b/docs/modules/servers/partials/configure/redis.adoc
index 183e335b67..6b1fcfd245 100644
--- a/docs/modules/servers/partials/configure/redis.adoc
+++ b/docs/modules/servers/partials/configure/redis.adoc
@@ -26,3 +26,19 @@ Reference: https://github.com/redis/lettuce/wiki/ReadFrom-Settings
 | redis.workerThreads
 | Worker threads to be using for the underlying driver. If unspecified driver defaults applies.
 |===
+
+== Enabling Multithreading in Redis
+
+Redis 6 and later versions support multithreading, but by default, Redis operates as a single-threaded process.
+
+On a virtual machine with multiple CPU cores, you can enhance Redis performance by enabling multithreading. This can significantly improve I/O operations, particularly for workloads with high concurrency or large data volumes.
+
+See link:https://redis.io/docs/latest/operate/oss_and_stack/management/config-file/[THREADED I/O section].
+
+Example if you have a 4 cores CPU, you can enable the following lines in the `redis.conf` file:
+....
+io-threads 3
+io-threads-do-reads yes
+....
+
+However, if your machine has only 1 CPU core or your Redis usage is not intensive, you will not benefit from this.


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org