Skip to content

Commit f128537

Browse files
feat: 修改 redis 配置文件
1 parent 93b21f7 commit f128537

File tree

2 files changed

+36
-28
lines changed

2 files changed

+36
-28
lines changed

apps/redis/versions/6.0.16/conf/redis.conf

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ tcp-keepalive 300
141141
# server to connected clients, masters or cluster peers. These files should be
142142
# PEM formatted.
143143
#
144-
# tls-cert-file redis.crt
144+
# tls-cert-file redis.crt
145145
# tls-key-file redis.key
146146

147147
# Configure a DH parameters file to enable Diffie-Hellman (DH) key exchange:
@@ -764,8 +764,8 @@ replica-priority 100
764764
# ACL LOG
765765
#
766766
# The ACL Log tracks failed commands and authentication events associated
767-
# with ACLs. The ACL Log is useful to troubleshoot failed commands blocked
768-
# by ACLs. The ACL Log is stored in memory. You can reclaim memory with
767+
# with ACLs. The ACL Log is useful to troubleshoot failed commands blocked
768+
# by ACLs. The ACL Log is stored in memory. You can reclaim memory with
769769
# ACL LOG RESET. Define the maximum entry length of the ACL Log below.
770770
acllog-max-len 128
771771

@@ -1328,18 +1328,18 @@ lua-time-limit 5000
13281328
# cluster-replica-no-failover no
13291329

13301330
# This option, when set to yes, allows nodes to serve read traffic while the
1331-
# the cluster is in a down state, as long as it believes it owns the slots.
1331+
# the cluster is in a down state, as long as it believes it owns the slots.
13321332
#
1333-
# This is useful for two cases. The first case is for when an application
1333+
# This is useful for two cases. The first case is for when an application
13341334
# doesn't require consistency of data during node failures or network partitions.
13351335
# One example of this is a cache, where as long as the node has the data it
1336-
# should be able to serve it.
1336+
# should be able to serve it.
13371337
#
1338-
# The second use case is for configurations that don't meet the recommended
1339-
# three shards but want to enable cluster mode and scale later. A
1338+
# The second use case is for configurations that don't meet the recommended
1339+
# three shards but want to enable cluster mode and scale later. A
13401340
# master outage in a 1 or 2 shard configuration causes a read/write outage to the
13411341
# entire cluster without this option set, with it set there is only a write outage.
1342-
# Without a quorum of masters, slot ownership will not change automatically.
1342+
# Without a quorum of masters, slot ownership will not change automatically.
13431343
#
13441344
# cluster-allow-reads-when-down no
13451345

@@ -1874,4 +1874,8 @@ jemalloc-bg-thread yes
18741874
# by setting the following config which takes a space delimited list of warnings
18751875
# to suppress
18761876
#
1877-
# ignore-warnings ARM64-COW-BUG
1877+
# ignore-warnings ARM64-COW-BUG
1878+
1879+
# Redis configuration rewrite by 1Panel
1880+
1881+
# End Redis configuration rewrite by 1Panel

apps/redis/versions/7.0.5/conf/redis.conf

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -909,10 +909,10 @@ replica-priority 100
909909
# commands. For instance ~* allows all the keys. The pattern
910910
# is a glob-style pattern like the one of KEYS.
911911
# It is possible to specify multiple patterns.
912-
# %R~<pattern> Add key read pattern that specifies which keys can be read
912+
# %R~<pattern> Add key read pattern that specifies which keys can be read
913913
# from.
914914
# %W~<pattern> Add key write pattern that specifies which keys can be
915-
# written to.
915+
# written to.
916916
# allkeys Alias for ~*
917917
# resetkeys Flush the list of allowed keys patterns.
918918
# &<pattern> Add a glob-style pattern of Pub/Sub channels that can be
@@ -939,10 +939,10 @@ replica-priority 100
939939
# -@all. The user returns to the same state it has immediately
940940
# after its creation.
941941
# (<options>) Create a new selector with the options specified within the
942-
# parentheses and attach it to the user. Each option should be
943-
# space separated. The first character must be ( and the last
942+
# parentheses and attach it to the user. Each option should be
943+
# space separated. The first character must be ( and the last
944944
# character must be ).
945-
# clearselectors Remove all of the currently attached selectors.
945+
# clearselectors Remove all of the currently attached selectors.
946946
# Note this does not change the "root" user permissions,
947947
# which are the permissions directly applied onto the
948948
# user (outside the parentheses).
@@ -968,7 +968,7 @@ replica-priority 100
968968
# Basically ACL rules are processed left-to-right.
969969
#
970970
# The following is a list of command categories and their meanings:
971-
# * keyspace - Writing or reading from keys, databases, or their metadata
971+
# * keyspace - Writing or reading from keys, databases, or their metadata
972972
# in a type agnostic way. Includes DEL, RESTORE, DUMP, RENAME, EXISTS, DBSIZE,
973973
# KEYS, EXPIRE, TTL, FLUSHALL, etc. Commands that may modify the keyspace,
974974
# key or metadata will also have `write` category. Commands that only read
@@ -1589,8 +1589,8 @@ aof-timestamp-enabled no
15891589
#
15901590
# cluster-node-timeout 15000
15911591

1592-
# The cluster port is the port that the cluster bus will listen for inbound connections on. When set
1593-
# to the default value, 0, it will be bound to the command port + 10000. Setting this value requires
1592+
# The cluster port is the port that the cluster bus will listen for inbound connections on. When set
1593+
# to the default value, 0, it will be bound to the command port + 10000. Setting this value requires
15941594
# you to specify the cluster bus port when executing cluster meet.
15951595
# cluster-port 0
15961596

@@ -1725,12 +1725,12 @@ aof-timestamp-enabled no
17251725
# PubSub message by default. (client-query-buffer-limit default value is 1gb)
17261726
#
17271727
# cluster-link-sendbuf-limit 0
1728-
1729-
# Clusters can configure their announced hostname using this config. This is a common use case for
1728+
1729+
# Clusters can configure their announced hostname using this config. This is a common use case for
17301730
# applications that need to use TLS Server Name Indication (SNI) or dealing with DNS based
17311731
# routing. By default this value is only shown as additional metadata in the CLUSTER SLOTS
1732-
# command, but can be changed using 'cluster-preferred-endpoint-type' config. This value is
1733-
# communicated along the clusterbus to all nodes, setting it to an empty string will remove
1732+
# command, but can be changed using 'cluster-preferred-endpoint-type' config. This value is
1733+
# communicated along the clusterbus to all nodes, setting it to an empty string will remove
17341734
# the hostname and also propagate the removal.
17351735
#
17361736
# cluster-announce-hostname ""
@@ -1739,13 +1739,13 @@ aof-timestamp-enabled no
17391739
# a user defined hostname, or by declaring they have no endpoint. Which endpoint is
17401740
# shown as the preferred endpoint is set by using the cluster-preferred-endpoint-type
17411741
# config with values 'ip', 'hostname', or 'unknown-endpoint'. This value controls how
1742-
# the endpoint returned for MOVED/ASKING requests as well as the first field of CLUSTER SLOTS.
1743-
# If the preferred endpoint type is set to hostname, but no announced hostname is set, a '?'
1742+
# the endpoint returned for MOVED/ASKING requests as well as the first field of CLUSTER SLOTS.
1743+
# If the preferred endpoint type is set to hostname, but no announced hostname is set, a '?'
17441744
# will be returned instead.
17451745
#
17461746
# When a cluster advertises itself as having an unknown endpoint, it's indicating that
1747-
# the server doesn't know how clients can reach the cluster. This can happen in certain
1748-
# networking situations where there are multiple possible routes to the node, and the
1747+
# the server doesn't know how clients can reach the cluster. This can happen in certain
1748+
# networking situations where there are multiple possible routes to the node, and the
17491749
# server doesn't know which one the client took. In this case, the server is expecting
17501750
# the client to reach out on the same endpoint it used for making the last request, but use
17511751
# the port provided in the response.
@@ -2058,7 +2058,7 @@ client-output-buffer-limit pubsub 32mb 8mb 60
20582058
# errors or data eviction. To avoid this we can cap the accumulated memory
20592059
# used by all client connections (all pubsub and normal clients). Once we
20602060
# reach that limit connections will be dropped by the server freeing up
2061-
# memory. The server will attempt to drop the connections using the most
2061+
# memory. The server will attempt to drop the connections using the most
20622062
# memory first. We call this mechanism "client eviction".
20632063
#
20642064
# Client eviction is configured using the maxmemory-clients setting as follows:
@@ -2273,4 +2273,8 @@ jemalloc-bg-thread yes
22732273
# by setting the following config which takes a space delimited list of warnings
22742274
# to suppress
22752275
#
2276-
# ignore-warnings ARM64-COW-BUG
2276+
# ignore-warnings ARM64-COW-BUG
2277+
2278+
# Redis configuration rewrite by 1Panel
2279+
2280+
# End Redis configuration rewrite by 1Panel

0 commit comments

Comments
 (0)