广告
返回顶部
首页 > 资讯 > 数据库 >Redis 3.0.7 参数文件参考
  • 191
分享到

Redis 3.0.7 参数文件参考

2024-04-02 19:04:59 191人浏览 八月长安
摘要

cat /app/Redis/config/redis_6380.conf  #################### INCLUDES ##############

Redis 3.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 "<<passWord>>"
requirepass "<<password>>"
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


您可能感兴趣的文档:

--结束END--

本文标题: Redis 3.0.7 参数文件参考

本文链接: https://www.lsjlt.com/news/40388.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Redis 3.0.7 参数文件参考
    cat /app/redis/config/redis_6380.conf  #################### INCLUDES ##############...
    99+
    2022-10-18
  • redis创建sentinel参考
    1.redis主从创建(一主两从):在从节点上执行:slaveof 192.168.56.201 6379  #master的ip地址和端口也可以在配置文件中配置:slaveof 192.168....
    99+
    2022-10-18
  • redis安装配置参考
    1.操作系统参数和服务配置:sed -i 's@SELINUX=enforcing@SELINUX=disabled@g' /etc/selinux/configsystemctl stop firewal...
    99+
    2022-10-18
  • Ceph参数配置参考
    [global]fsid = 740988c7-045c-455b-9301-cd50f527f2a2mon_host=11.180.137.117#for auth and crcauth_cluster_required = nonea...
    99+
    2023-06-04
  • python参考文章
    ConfigParser:https://blog.csdn.net/zfx1997/article/details/79933962https://www.cnblogs.com/feeland/p/4514771.html Fabric...
    99+
    2023-01-31
    文章 python
  • Redis配置文件参数说明
    Redis配置文件参数说明1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程    daemonize no2. 当Redis...
    99+
    2022-10-18
  • DedeCms参考手册、函数及文件大全
    文件:include/inc_function.php 系统默认会载入此文件 GetCurUrl() 获得当前的脚本的URL GetAlabNum($str) 把字符串里的全角数字转为半角数字(会把非数字类型字符删除)...
    99+
    2022-06-12
    DedeCms 参考手册
  • Redis配置文件(redis.conf)参数详解
    redis配置文件参数说明:1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程daemonize no2. 当Redis以守护进程方式运行时,Redis默认会把pid...
    99+
    2022-10-18
  • Postgresql中文参考手册
    http://www.postgres.cn/docs/9.3/index.html http://www.postgres.cn/docs/9.4/index.html http://www.postgres.cn/docs/9.5/...
    99+
    2015-01-12
    Postgresql中文参考手册
  • pg相关参考文档
    pg_probackup :https://postgrespro.com/docs/postgrespro/10/app-pgprobackup digoal blog: https://github.com/digoal/blog ...
    99+
    2015-01-08
    pg相关参考文档
  • JavaScript Math(数学) 参考
    JavaScriptMath对象允许您执行数学任务。Math不是构造函数。可以使用Math作为对象来调用Math的所有属性/方法,而无需创建它:var x = Math.PI;   ...
    99+
    2023-06-03
  • word怎么导出参考文献
    要导出Word文档中的参考文献,可以按照以下步骤操作:1. 在Word文档中,确保已经按照正确的引用格式插入了所有的参考文献。可以使...
    99+
    2023-10-07
    word
  • MHA配置文件参数
    ###MHA参数整理2014年09月17日 19:58:41阅读数:822 MHA配置文件参数Parameter Name Required Parameter Scope Default Value ...
    99+
    2022-10-18
  • MySQL性能全面优化方法参考,从CPU,文件系统选择到mysql.cnf参数优化
    本文整理了一些MySQL的通用优化方法,做个简单的总结分享,旨在帮助那些没有专职MySQL DBA的企业做好基本的优化工作,至于具体的SQL优化,大部分通过加适当的索引即可达到效果,更复杂的就需要具体分析了...
    99+
    2022-10-18
  • python文件读写(open参数,文件
    1.基本方法 文件读写调用open函数打开一个文件描述符(描述符的个数在操作系统是定义好的) python3情况下读写文件: f = open('py3.txt','wt',encoding='utf-8') f.write(...
    99+
    2023-01-31
    文件 参数 python
  • web of science如何导出参考文献
    这篇文章将为大家详细讲解有关web of science如何导出参考文献,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。web of science导出参考文献的方法:首先登录web of Science网...
    99+
    2023-06-14
  • Word尾注如何变成参考文献
    今天小编给大家分享一下Word尾注如何变成参考文献的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。尾注变成参考文献的方法:首先...
    99+
    2023-07-02
  • 重复制造参数文件
    重复制造参数文件待续......
    99+
    2023-06-05
  • redis参数配置说明
    redis.conf 配置项说明如下:1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程daemonize no2. 当Redis以守护进程方式运行时,Redis默认...
    99+
    2022-10-18
  • Redis的参数有哪些
    本篇内容主要讲解“Redis的参数有哪些”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Redis的参数有哪些”吧!1 daemonize noRedis 默认不...
    99+
    2022-10-18
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作