• 环境安装备忘录 Redis redis-slave-端口号.conf


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

  • 相关阅读:
    java设计模式-适配器模式
    java设计模式-外观模式
    java设计模式-享元模式
    java设计模式-装饰模式
    java设计模式-组合模式
    java设计模式-桥接模式
    12月Java原生商城APP源码-完全开源
    uniapp插件市场-涂图视频编辑-美妆-剪辑-微整形原生sdk插件发布-优雅草科技
    12月最新仿知音漫画网站源码+手机端,小说漫画生成静态文件,超强负载量安全可靠
    如何把网易云音乐ncm格式转换成mp3格式---记一下
  • 原文地址:https://www.cnblogs.com/kaye0110/p/5069769.html
Copyright © 2020-2023  润新知