redis 3.0 叢集__設定檔詳解(常用配置)

來源:互聯網
上載者:User

標籤:

參考文檔

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.conf 3 # include /path/to/other.conf 4 #是否daemon運行no,yes 5 daemonize no 6 #pid檔案的位置 7 pidfile /tmp/redis.pid 8 #開放的連接埠號碼 9 port 637910 #listen隊列的長度,需要同步檢查 /proc/sys/net/core/somaxconn 和 核心參數 tcp_max_syn_backlog 的值,保證該設定能生效11 tcp-backlog 51112 #綁定ip地址,多個ip用空格分隔,只允許綁定的IP 的用戶端訪問13 bind 127.0.0.114 #沒有用到,暫時不清楚15 # unixsocket /tmp/redis.sock16 # unixsocketperm 75517 #用戶端空閑多少s後踢掉,0禁止18 timeout 019 #檢測掛掉的串連,單位s,0禁止20 tcp-keepalive 021 #日誌的等級,debug,verbose,notice,warning22 loglevel notice23 #log檔案的路徑,為空白的話直接顯示在終端24 logfile "/workspace/logs/redis/redis-6379.log"25 #是否使用系統logger,一直沒有用過。26 # syslog-enabled no/27 # syslog-ident redis28 # syslog-facility local029 #redis中有多少個資料庫,預設即可30 databases 1631  32 #將redis記憶體資料序列化到磁碟的時間和頻率33 #900s有1個key改變就會序列化,其他的讀者可以自己看下34 save 900 135 save 300 1036 save 60 1000037 #序列化的時候是否停止寫操作, 預設為yes, 我個人是設定成NO, 因為既然是緩衝,我不需要持久化,所以不需要寫盤動作38 stop-writes-on-bgsave-error no39 #序列化的資料是否壓縮40 rdbcompression yes41 #序列化的資料是否校正其完整性42 rdbchecksum yes43 #序列化的檔案名稱,只是檔案不能帶目錄44 dbfilename dump-6379.rdb45 #序列化檔案的目錄46 dir /workspace/database/redis/
47 48 #以下是主從備份,還沒有使用到49 # slaveof <masterip> <masterport>50 # masterauth <master-password>51 slave-serve-stale-data yes52 slave-read-only yes
#repl-diskless-sync no
  #repl-diskless-sync-delay 5
53 # repl-ping-slave-period 1054 # repl-timeout 6055 repl-disable-tcp-nodelay no56 # repl-backlog-size 1mb57 # repl-backlog-ttl 360058 slave-priority 10059 # min-slaves-to-write 360 # min-slaves-max-lag 1061 62 #用戶端串連的密碼63 requirepass hello64 # 不清楚什麼作用,沒用到過 65 # rename-command CONFIG ""66 67 #限制用戶端的數量68 # maxclients 1000069 #設定最大可用記憶體70 # maxmemory <bytes>71 #記憶體替換演算法72 # maxmemory-policy volatile-lru73 # maxmemory-samples 3

 

 

redis 3.0 叢集__設定檔詳解(常用配置)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.