summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorZ. Liu <clan@users.noreply.github.com>2021-01-28 17:12:39 +0800
committerGitHub <noreply@github.com>2021-01-28 11:12:39 +0200
commit17b34c73091968a5a37a267f69563c155efe8ce4 (patch)
treed0876aa502e0c7ea981276bf24508d6d879c752e /redis.conf
parent3a5049042ac06b6ed5e526f331d5378bf7c7b7ed (diff)
downloadredis-17b34c73091968a5a37a267f69563c155efe8ce4.tar.gz
Add 'set-proc-title' config so that this mechanism can be disabled (#3623)
if option `set-proc-title' is no, then do nothing for proc title. The reason has been explained long ago, see following: We update redis to 2.8.8, then found there are some side effect when redis always change the process title. We run several slave instance on one computer, and all these salves listen on unix socket only, then ps will show: 1 S redis 18036 1 0 80 0 - 56130 ep_pol 14:02 ? 00:00:31 /usr/sbin/redis-server *:0 1 S redis 23949 1 0 80 0 - 11074 ep_pol 15:41 ? 00:00:00 /usr/sbin/redis-server *:0 for redis 2.6 the output of ps is like following: 1 S redis 18036 1 0 80 0 - 56130 ep_pol 14:02 ? 00:00:31 /usr/sbin/redis-server /etc/redis/a.conf 1 S redis 23949 1 0 80 0 - 11074 ep_pol 15:41 ? 00:00:00 /usr/sbin/redis-server /etc/redis/b.conf Later is more informational in our case. The situation is worse when we manage the config and process running state by salt. Salt check the process by running "ps | grep SIG" (for Gentoo System) to check the running state, where SIG is the string to search for when looking for the service process with ps. Previously, we define sig as "/usr/sbin/redis-server /etc/redis/a.conf". Since the ps output is identical for our case, so we have no way to check the state of specified redis instance. So, for our case, we prefer the old behavior, i.e, do not change the process title for the main redis process. Or add an option such as "set-proc-title [yes|no]" to control this behavior. Co-authored-by: Yossi Gottlieb <yossigo@gmail.com> Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf
index a131b406f..370542344 100644
--- a/redis.conf
+++ b/redis.conf
@@ -325,6 +325,11 @@ databases 16
# ASCII art logo in startup logs by setting the following option to yes.
always-show-logo no
+# By default, Redis modifies the process title (as seen in 'top' and 'ps') to
+# provide some runtime information. It is possible to disable this and leave
+# the process name as executed by setting the following to no.
+set-proc-title yes
+
################################ SNAPSHOTTING ################################
# Save the DB to disk.