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/08/06 03:04:10 UTC

(james-project) 01/02: [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 2e8fc24420c2b97dee5b15b96f43e4faab334dd1
Author: Quan Tran <hq...@linagora.com>
AuthorDate: Mon Aug 5 14:26:59 2024 +0700

    [DOC] Document multi-thread Redis configuration
---
 .../servers/pages/distributed/configure/redis.adoc       | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/docs/modules/servers/pages/distributed/configure/redis.adoc b/docs/modules/servers/pages/distributed/configure/redis.adoc
index a67a3a964e..0d318b89ce 100644
--- a/docs/modules/servers/pages/distributed/configure/redis.adoc
+++ b/docs/modules/servers/pages/distributed/configure/redis.adoc
@@ -29,3 +29,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.
\ No newline at end of file


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