環境安裝備忘錄 Redis redis-slave-連接埠號碼.conf

來源:互聯網
上載者:User

標籤:

#包含通用配置
include /etc/redis/redis-common.conf
#監聽tcp連接埠
port 16380
#最大可用記憶體
maxmemory 100m
#記憶體耗盡時採用的淘汰策略:
# 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
#aof隱藏檔
appendfilename "appendonly-16380.aof"
#rdb檔案,只用於動態添加slave過程
dbfilename dump-16380.rdb
#cluster設定檔(啟動自動產生)
cluster-config-file nodes-16380.conf
#部署在同一機器的redis執行個體,把auto-aof-rewrite搓開,防止瞬間fork所有redis進程做rewrite,佔用大量記憶體
auto-aof-rewrite-percentage 80-100

 

 

 

==========================================================================

 

#包含通用配置
include /etc/redis/redis-common.conf
#監聽tcp連接埠
port 16381
#最大可用記憶體
maxmemory 100m
#記憶體耗盡時採用的淘汰策略:
# 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
#aof隱藏檔
appendfilename "appendonly-16381.aof"
#rdb檔案,只用於動態添加slave過程
dbfilename dump-16381.rdb
#cluster設定檔(啟動自動產生)
cluster-config-file nodes-16381.conf
#部署在同一機器的redis執行個體,把auto-aof-rewrite搓開,防止瞬間fork所有redis進程做rewrite,佔用大量記憶體
auto-aof-rewrite-percentage 60-80

環境安裝備忘錄 Redis redis-slave-連接埠號碼.conf

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.