Redis3.0.7参数文件参考-创新互联
创新互联是一家集网站建设,德惠企业网站建设,德惠品牌网站建设,网站定制,德惠网站建设报价,网络营销,网络优化,德惠网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。cat /app/redis/config/redis_6380.conf
#################### INCLUDES ####################
# include /path/local.conf
# include /path/other.conf
#################### GENERAL ####################
daemonize yes
pidfile "/app/redis/config/redis_6380.pid"
port 6380
tcp-backlog 511
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1
# unixsocket /app/redis/tmp/redis.sock
# unixsocketperm 700
timeout 30
tcp-keepalive 0
loglevel notice
logfile "/app/redis/log/redis_6380.log"
databases 16
#################### SNAPSHOTTING ###############
# save ""
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename "dump_6380.rdb"
dir "/app/redis/db_data"
#################### REPLICATION ###############
slave-serve-stale-data no
slave-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
# repl-ping-slave-period 10
# repl-timeout 60
repl-disable-tcp-nodelay no
# repl-backlog-size 1mb
# repl-backlog-ttl 3600
slave-priority 100
# min-slaves-to-write 3
# min-slaves-max-lag 10
#################### SECURITY ##################
# rename-command CONFIG ""
#################### LIMITS ####################
maxclients 20000
maxmemory 10gb
# volatile-lru -> remove the key with an expire set using an LRU algorithm
# allkeys-lru -> remove any key accordingly to the LRU algorithm
# volatile-random -> remove a random key with an expire set
# allkeys-random -> remove a random key, any key
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
# noeviction -> don't expire at all, just return an error on write operations
maxmemory-policy allkeys-lru
#################### APPEND ONLY MODE #########
appendonly yes
appendfilename "appendonly_6380.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
#################### LUA SCRIPTING ############
lua-time-limit 5000
#################### SLOW LOG #################
slowlog-log-slower-than 10000
slowlog-max-len 128
#################### LATENCY MONITOR ##########
latency-monitor-threshold 0
#################### EVENT NOTIFICATION #######
notify-keyspace-events ""
#################### ADVANCED CONFIG ##########
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-entries 512
list-max-ziplist-value 64
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
aof-rewrite-incremental-fsync yes
#################### Redis Auth ##############
masterauth "<>"
requirepass "<>"
slaveof 10.0.20.14 6380
########## Redis Cluster ##########
# cluster-enabled yes
# cluster配置文件(启动自动生成)
# cluster-config-file nodes.conf
#节点互连超时的阀值
# cluster-node-timeout 15000
# cluster-slave-validity-factor 10
# cluster-migration-barrier 1
# cluster-require-full-coverage yes
#部署在同一机器的redis实例,把auto-aof-rewrite搓开,防止瞬间fork所有redis进程做rewrite,占用大量内存
# auto-aof-rewrite-percentage 80-100$cat /app/redis/config/sentinel_26380.conf
port 26380
daemonize yes
logfile "/app/redis/log/sentinel_26380.log"
dir "/app/redis/tmp"
#master 10.0.20.14 6380
sentinel monitor master_6380 10.0.20.14 6380 1
sentinel down-after-milliseconds master_6380 3000
sentinel failover-timeout master_6380 15000
sentinel parallel-syncs master_6380 1
sentinel auth-pass master_6380 XXXXXX
本文名称:Redis3.0.7参数文件参考-创新互联
本文路径:http://cdiso.cn/article/cepscc.html
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
本文名称:Redis3.0.7参数文件参考-创新互联
本文路径:http://cdiso.cn/article/cepscc.html