As per the docs:

The list of configuration parameters supported by CONFIG SET can be obtained issuing a CONFIG GET * command, that is the symmetrical command used to obtain information about the configuration of a running Redis instance.

When I run CONFIG GET * on a fresh instance, I get this output (v6.2.4):

output
rdbchecksum
yes
daemonize
no
io-threads-do-reads
no
lua-replicate-commands
yes
always-show-logo
no
protected-mode
no
rdbcompression
yes
rdb-del-sync-files
no
activerehashing
yes
stop-writes-on-bgsave-error
yes
set-proc-title
yes
dynamic-hz
yes
lazyfree-lazy-eviction
no
lazyfree-lazy-expire
no
lazyfree-lazy-server-del
no
lazyfree-lazy-user-del
no
lazyfree-lazy-user-flush
no
repl-disable-tcp-nodelay
no
repl-diskless-sync
no
gopher-enabled
no
aof-rewrite-incremental-fsync
yes
no-appendfsync-on-rewrite
no
cluster-require-full-coverage
yes
rdb-save-incremental-fsync
yes
aof-load-truncated
yes
aof-use-rdb-preamble
yes
cluster-replica-no-failover
no
cluster-slave-no-failover
no
replica-lazy-flush
no
slave-lazy-flush
no
replica-serve-stale-data
yes
slave-serve-stale-data
yes
replica-read-only
yes
slave-read-only
yes
replica-ignore-maxmemory
yes
slave-ignore-maxmemory
yes
jemalloc-bg-thread
yes
activedefrag
no
syslog-enabled
no
cluster-enabled
no
appendonly
no
cluster-allow-reads-when-down
no
crash-log-enabled
yes
crash-memcheck-enabled
yes
use-exit-on-panic
no
disable-thp
yes
cluster-allow-replica-migration
yes
replica-announced
yes
aclfile

unixsocket

pidfile

replica-announce-ip

slave-announce-ip

masteruser

cluster-announce-ip

syslog-ident
redis
dbfilename
dump.rdb
appendfilename
appendonly.aof
server_cpulist

bio_cpulist

aof_rewrite_cpulist

bgsave_cpulist

ignore-warnings

proc-title-template
{title} {listen-addr} {server-mode}
masterauth

requirepass

supervised
no
syslog-facility
local0
repl-diskless-load
disabled
loglevel
notice
maxmemory-policy
noeviction
appendfsync
everysec
oom-score-adj
no
acl-pubsub-default
allchannels
sanitize-dump-payload
no
databases
16
port
6379
io-threads
1
auto-aof-rewrite-percentage
100
cluster-replica-validity-factor
10
cluster-slave-validity-factor
10
list-max-ziplist-size
-2
tcp-keepalive
300
cluster-migration-barrier
1
active-defrag-cycle-min
1
active-defrag-cycle-max
25
active-defrag-threshold-lower
10
active-defrag-threshold-upper
100
lfu-log-factor
10
lfu-decay-time
1
replica-priority
100
slave-priority
100
repl-diskless-sync-delay
5
maxmemory-samples
5
maxmemory-eviction-tenacity
10
timeout
0
replica-announce-port
0
slave-announce-port
0
tcp-backlog
511
cluster-announce-bus-port
0
cluster-announce-port
0
cluster-announce-tls-port
0
repl-timeout
60
repl-ping-replica-period
10
repl-ping-slave-period
10
list-compress-depth
0
rdb-key-save-delay
0
key-load-delay
0
active-expire-effort
1
hz
10
min-replicas-to-write
0
min-slaves-to-write
0
min-replicas-max-lag
10
min-slaves-max-lag
10
maxclients
10000
active-defrag-max-scan-fields
1000
slowlog-max-len
128
acllog-max-len
128
lua-time-limit
5000
cluster-node-timeout
15000
slowlog-log-slower-than
10000
latency-monitor-threshold
0
proto-max-bulk-len
536870912
stream-node-max-entries
100
repl-backlog-size
1048576
maxmemory
0
hash-max-ziplist-entries
512
set-max-intset-entries
512
zset-max-ziplist-entries
128
active-defrag-ignore-bytes
104857600
hash-max-ziplist-value
64
stream-node-max-bytes
4096
zset-max-ziplist-value
64
hll-sparse-max-bytes
3000
tracking-table-max-keys
1000000
client-query-buffer-limit
1073741824
repl-backlog-ttl
3600
auto-aof-rewrite-min-size
67108864
tls-port
0
tls-session-cache-size
20480
tls-session-cache-timeout
300
tls-cluster
no
tls-replication
no
tls-auth-clients
yes
tls-prefer-server-ciphers
no
tls-session-caching
yes
tls-cert-file

tls-key-file

tls-key-file-pass

tls-client-cert-file

tls-client-key-file

tls-client-key-file-pass

tls-dh-params-file

tls-ca-cert-file

tls-ca-cert-dir

tls-protocols

tls-ciphers

tls-ciphersuites

logfile

watchdog-period
0
dir
/data
save
3600 1 300 100 60 10000
client-output-buffer-limit
normal 0 0 0 slave 268435456 67108864 60 pubsub 33554432 8388608 60
unixsocketperm
0
slaveof

notify-keyspace-events

bind

oom-score-adj-values
0 200 800

There is no replicaof in the output, although it is supported by CONFIG SET command. Every other replica setting is here (along with its corresponding slave alias). Is this by design? If it's not, I'd be happy to send a PR 🙂

Comment From: madolson

It should be there, https://github.com/redis/redis/blob/fe359cbfc25f4ada01e314ee4bb123b744422c62/src/config.c#L1049. Let me test.

Comment From: madolson

Huh, it doesn't match against * for some reason:

88665a01b8b7:redis matolson$ redis-cli config get "*" | grep replica
lua-replicate-commands
cluster-replica-no-failover
replica-lazy-flush
replica-serve-stale-data
replica-read-only
replica-ignore-maxmemory
cluster-allow-replica-migration
replica-announced
replica-announce-ip
cluster-replica-validity-factor
replica-priority
replica-announce-port
repl-ping-replica-period
min-replicas-to-write
min-replicas-max-lag
88665a01b8b7:redis matolson$ redis-cli config get "r*" | grep replica
replica-lazy-flush
replica-serve-stale-data
replica-read-only
replica-ignore-maxmemory
replica-announced
replica-announce-ip
replica-priority
replica-announce-port
repl-ping-replica-period
replicaof

Comment From: madolson

Oh, this is interesting. It actually prints it out as slaveof, which is the old non-politically correct term.

https://github.com/redis/redis/blob/fe359cbfc25f4ada01e314ee4bb123b744422c62/src/config.c#L1051

For all other configs we print out both the alias and the regular name, so I would expect us to that here as well. @alexnoz Since you seemed interested, I'll leave it you to submit a PR.

Comment From: enjoy-binbin

reminds me of that https://github.com/redis/redis/pull/9114#issuecomment-864526392

Comment From: zuiderkwast

@alexnoz I didn't see you wrote "I'd be happy to send a PR". Now I already made one. You would probably have done it in the same way? If not, please comment on my PR.