#包含通用配置
Include/etc/redis/redis-common.conf
#监听tcp端口
Port 16380
#最大可用内存
MaxMemory 100m
#内存耗尽时采用的淘汰策略:
# VOLATILE-LRU, remove the key with a 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 a error on write operations
Maxmemory-policy ALLKEYS-LRU
#aof存储文件
Appendfilename "Appendonly-16380.aof"
#rdb文件, only for dynamically adding slave processes
Dbfilename Dump-16380.rdb
#cluster配置文件 (Start auto-build)
Cluster-config-file nodes-16380.conf
#部署在同一机器的redis实例, rub Auto-aof-rewrite, prevent the instant fork all Redis process do rewrite, occupy a lot of memory
Auto-aof-rewrite-percentage 80-100
==========================================================================
#包含通用配置
Include/etc/redis/redis-common.conf
#监听tcp端口
Port 16381
#最大可用内存
MaxMemory 100m
#内存耗尽时采用的淘汰策略:
# VOLATILE-LRU, remove the key with a 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 a error on write operations
Maxmemory-policy ALLKEYS-LRU
#aof存储文件
Appendfilename "Appendonly-16381.aof"
#rdb文件, only for dynamically adding slave processes
Dbfilename Dump-16381.rdb
#cluster配置文件 (Start auto-build)
Cluster-config-file nodes-16381.conf
#部署在同一机器的redis实例, rub Auto-aof-rewrite, prevent the instant fork all Redis process do rewrite, occupy a lot of memory
Auto-aof-rewrite-percentage 60-80
Environment Installation Memo Redis redis-slave-port number. conf