Environment Installation Memo Redis redis-slave-port number. conf

Source: Internet
Author: User
Tags allkeys

#包含通用配置
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.