Redis 3 Cluster __ configuration file (Common configuration)

Source: Internet
Author: User
Tags syslog

Reference documents

Http://www.cnblogs.com/huangjacky/p/3700473.html

Http://www.cnblogs.com/cxd4321/archive/2012/12/14/2817669.html

http://running.iteye.com/blog/2065351

1 #引用其他配置文件2# include/path/to/local.conf3# include/path/to/other.conf4 #是否daemon运行no, yes5 daemonize No6 #pid文件的位置7pidfile/tmp/Redis.pid8 #开放的端口号9Port6379Ten #listen队列的长度, the values of the/proc/sys/net/core/somaxconn and kernel parameter tcp_max_syn_backlog need to be checked synchronously to ensure that the setting takes effect OneTcp-backlog511 A #绑定ip地址, multiple IPs are separated by spaces, allowing only client access to the bound IP -Bind127.0.0.1 - #没有用到, I don't know for a moment. the# unixsocket/tmp/Redis.sock -# Unixsocketperm755 - #客户端空闲多少s后踢掉, 0 forbidden -Timeout0 + #检测挂掉的连接, Unit s,0 prohibited -Tcp-keepalive0 + #日志的等级, debug,verbose,notice,warning A loglevel Notice at #log文件的路径, the empty words are displayed directly in the terminal -LogFile"/workspace/logs/redis/redis-6379.log" - #是否使用系统logger, has never been used.  -# syslog-enabled no/ -# syslog-ident Redis -# syslog-facility Local0 in #redis中有多少个数据库, the default is -Databases - to   + #将redis内存数据序列化到磁盘的时间和频率 - #900s有1个key改变就会序列化, other readers can see for themselves theSave the 1 *Save - Ten $Save - 10000Panax Notoginseng #序列化的时候是否停止写操作, the default is yes, I am personally set to no, because since it is a cache, I do not need to persist, so do not need to write disk action -stop-writes-on-bgsave-Error No the #序列化的数据是否压缩 + rdbcompression Yes A #序列化的数据是否校验其完整性 the Rdbchecksum Yes + #序列化的文件名, it's just that the file doesn't have a directory - dbfilename Dump-6379.rdb $ #序列化文件的目录 $dir/workspace/database/redis/
- - #以下是主从备份, has not yet been used to the# slaveof <masterip> <masterport> -# Masterauth <master-password>Wuyislave-serve-stale-Data Yes theslave-read-Only Yes
#repl-diskless-sync No
#repl-diskless-sync-delay 5
-# Repl-ping-slave-periodTen Wu# Repl-timeout - -repl-disable-tcp-Nodelay No About# repl-backlog-size 1MB $# Repl-backlog-ttl3600 -Slave-priority - -# Min-slaves-to-write3 -# Min-slaves-max-lagTen A + #客户端连接的密码 the Requirepass Hello -# don't know what it's for, it's useless # $# Rename-command CONFIG"" the the #限制客户端的数量 the# maxclients10000 the #设置最大可用内存 -# maxmemory <bytes> in #内存替换算法 the# Maxmemory-policyvolatile-LRU the# Maxmemory-samples3

Redis 3 Cluster __ configuration file (Common configuration)

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.