redis config

本文涉及的产品
Redis 开源版,标准版 2GB
推荐场景:
搭建游戏排行榜
简介:
daemonize yes
pidfile /var/run/redis.6053.pid
port 6053
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1
# unixsocket /testdb/rd6053/datafile/redis.sock
# unixsocketperm 755
timeout 300
tcp-keepalive 60
loglevel notice
logfile  /testdb/rd6053/log/redis.log
# syslog-enabled no
# syslog-ident redis
# syslog-facility local0
databases 16
# save ""
# save 900 1
# save 300 10
# save 60 10000
stop-writes-on-bgsave-error no
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir /testdb/rd6053/datafile
# slaveof <masterip> <masterport>
# masterauth <master-password>
masterauth testdb123
slave-serve-stale-data yes
slave-read-only yes
# repl-ping-slave-period 10
repl-timeout 600
repl-disable-tcp-nodelay no
repl-backlog-size 64mb
# repl-backlog-ttl 3600
slave-priority 100
# min-slaves-to-write 3
# min-slaves-max-lag 10
requirepass testdb123
# rename-command CONFIG ""
maxclients 10000
maxmemory 4000000000
maxmemory-policy noeviction
# maxmemory-samples 3
appendonly no
# appendfsync always
appendfsync everysec
# appendfsync no
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 1024mb
lua-time-limit 5000
slowlog-log-slower-than 20000
slowlog-max-len 128
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 8192mb 4096mb 600
client-output-buffer-limit pubsub 32mb 8mb 60
aof-rewrite-incremental-fsync yes
lazyfree-lazy-expire yes
lazyfree-lazy-server-del yes
slave-lazy-flush yes
aof-use-rdb-preamble yes
# include /path/to/local.conf
# include /path/to/other.conf
daemonize yes
pidfile /var/run/redis.6053.pid
port 6053
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1
# unixsocket /testdb/rd6053/datafile/redis.sock
# unixsocketperm 755
timeout 300
tcp-keepalive 60
loglevel notice
logfile  /testdb/rd6053/log/redis.log
# syslog-enabled no
# syslog-ident redis
# syslog-facility local0
databases 16
# save ""
# save 900 1
# save 300 10
# save 60 10000
stop-writes-on-bgsave-error no
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir /testdb/rd6053/datafile
# slaveof <masterip> <masterport>
# masterauth <master-password>
masterauth testdb123
slave-serve-stale-data yes
slave-read-only yes
# repl-ping-slave-period 10
repl-timeout 600
repl-disable-tcp-nodelay no
repl-backlog-size 64mb
# repl-backlog-ttl 3600
slave-priority 100
# min-slaves-to-write 3
# min-slaves-max-lag 10
requirepass testdb123
# rename-command CONFIG ""
maxclients 10000
maxmemory 4000000000
maxmemory-policy noeviction
# maxmemory-samples 3
appendonly no
# appendfsync always
appendfsync everysec
# appendfsync no
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 1024mb
lua-time-limit 5000
slowlog-log-slower-than 20000
slowlog-max-len 128
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 8192mb 4096mb 600
client-output-buffer-limit pubsub 32mb 8mb 60
aof-rewrite-incremental-fsync yes
lazyfree-lazy-expire yes
lazyfree-lazy-server-del yes
slave-lazy-flush yes
aof-use-rdb-preamble yes
# include /path/to/local.conf
# include /path/to/other.conf
目录
相关文章
|
前端开发 NoSQL 数据库
部署常用的流程,可以用后端,连接宝塔,将IP地址修改好,本地只要连接好了,在本地上前后端跑起来,前端能够跑起来,改好了config.js资料,后端修改好数据库和连接redis,本地上跑成功了,再改
部署常用的流程,可以用后端,连接宝塔,将IP地址修改好,本地只要连接好了,在本地上前后端跑起来,前端能够跑起来,改好了config.js资料,后端修改好数据库和连接redis,本地上跑成功了,再改
|
缓存 NoSQL 网络协议
【Azure Redis 缓存】如何使得Azure Redis可以仅从内网访问? Config 及 Timeout参数配置
【Azure Redis 缓存】如何使得Azure Redis可以仅从内网访问? Config 及 Timeout参数配置
171 0
|
缓存 NoSQL Redis
【Azure Redis 缓存】Azure Reids是否可以开启慢日志(slowlog)和执行config指令
【Azure Redis 缓存】Azure Reids是否可以开启慢日志(slowlog)和执行config指令
|
存储 缓存 NoSQL
【Azure Redis 缓存】Azure Redis 服务不支持指令CONFIG
【Azure Redis 缓存】Azure Redis 服务不支持指令CONFIG
115 0
|
NoSQL Redis
进行主从复制时出现的异常FATAL CONFIG FILE ERROR (Redis 6.2.6)Reading the configuration file
进行主从复制时出现的异常FATAL CONFIG FILE ERROR (Redis 6.2.6)Reading the configuration file
713 0
|
存储 SpringCloudAlibaba 监控
SpringCloud Alibaba 之 Config配置中心,Redis分布式锁详解(下)
SpringCloud Alibaba 之 Config配置中心,Redis分布式锁详解(
445 0
|
SpringCloudAlibaba NoSQL 前端开发
SpringCloud Alibaba 之 Config配置中心,Redis分布式锁详解(上)
SpringCloud Alibaba 之 Config配置中心,Redis分布式锁详解
310 0
|
6月前
|
缓存 NoSQL 关系型数据库
美团面试:MySQL有1000w数据,redis只存20w的数据,如何做 缓存 设计?
美团面试:MySQL有1000w数据,redis只存20w的数据,如何做 缓存 设计?
美团面试:MySQL有1000w数据,redis只存20w的数据,如何做 缓存 设计?
|
1月前
|
缓存 负载均衡 监控
135_负载均衡:Redis缓存 - 提高缓存命中率的配置与最佳实践
在现代大型语言模型(LLM)部署架构中,缓存系统扮演着至关重要的角色。随着LLM应用规模的不断扩大和用户需求的持续增长,如何构建高效、可靠的缓存架构成为系统性能优化的核心挑战。Redis作为业界领先的内存数据库,因其高性能、丰富的数据结构和灵活的配置选项,已成为LLM部署中首选的缓存解决方案。
|
2月前
|
存储 缓存 NoSQL
Redis专题-实战篇二-商户查询缓存
本文介绍了缓存的基本概念、应用场景及实现方式,涵盖Redis缓存设计、缓存更新策略、缓存穿透问题及其解决方案。重点讲解了缓存空对象与布隆过滤器的使用,并通过代码示例演示了商铺查询的缓存优化实践。
159 1
Redis专题-实战篇二-商户查询缓存