Fuegovic commited on
Commit
df1a9f6
1 Parent(s): c41ea6a

Update redis.conf

Browse files
Files changed (1) hide show
  1. redis.conf +2 -95
redis.conf CHANGED
@@ -1,118 +1,25 @@
1
  # Redis configuration file example
2
 
3
-
4
- # Accept connections on the specified port, default is 6379
5
  port 7860
6
 
7
-
8
  bind 0.0.0.0 ::1
9
 
10
- # Close the connection after a client is idle for N seconds (0 to disable)
11
  timeout 0
12
 
13
- # Set server verbosity to 'debug'
14
- # it can be one of:
15
- # debug (a lot of information, useful for development/testing)
16
- # notice (moderately verbose, what you want in production probably)
17
- # warning (only very important / critical messages are logged)
18
  loglevel debug
19
 
20
- # Set the number of databases. The default database is DB 0, you can select
21
- # a different one on a per-connection basis using SELECT <dbid> where
22
- # dbid is a number between 0 and 'databases'-1
23
  databases 16
24
 
25
  protected-mode no
26
 
27
- ################################ SNAPSHOTTING #################################
28
- #
29
- # Save the DB on disk:
30
- #
31
- # save <seconds> <changes>
32
- #
33
- # Will save the DB if both the given number of seconds and the given
34
- # number of write operations against the DB occurred.
35
- #
36
- # In the example below the behaviour will be to save:
37
- # after 900 sec (15 min) if at least 1 key changed
38
- # after 300 sec (5 min) if at least 10 keys changed
39
- # after 60 sec if at least 10000 keys changed
40
-
41
- #disable saving to disk
42
- #save 900 1
43
- #save 300 10
44
- #save 60 10000
45
 
46
- # Compress string objects using LZF when dump .rdb databases?
47
- # For default that's set to 'yes' as it's almost always a win.
48
- # If you want to save some CPU in the saving child set it to 'no' but
49
- # the dataset will likely be bigger if you have compressible values or keys.
50
  rdbcompression yes
51
 
52
- # The filename where to dump the DB
53
  dbfilename dump.rdb
54
 
55
- # For default save/load DB in/from the working directory
56
- # Note that you must specify a directory not a file name.
57
  dir /etc/lib/redis
58
 
59
- ################################# REPLICATION #################################
60
-
61
- # Master-Slave replication. Use slaveof to make a Redis instance a copy of
62
- # another Redis server. Note that the configuration is local to the slave
63
- # so for example it is possible to configure the slave to save the DB with a
64
- # different interval, or to listen to another port, and so on.
65
- #
66
- # slaveof <masterip> <masterport>
67
-
68
- # If the master is password protected (using the "requirepass" configuration
69
- # directive below) it is possible to tell the slave to authenticate before
70
- # starting the replication synchronization process, otherwise the master will
71
- # refuse the slave request.
72
- #
73
- # masterauth <master-password>
74
-
75
- ################################## SECURITY ###################################
76
-
77
- # Require clients to issue AUTH <PASSWORD> before processing any other
78
- # commands. This might be useful in environments in which you do not trust
79
- # others with access to the host running redis-server.
80
- #
81
- # This should stay commented out for backward compatibility and because most
82
- # people do not need auth (e.g. they run their own servers).
83
- #
84
- # requirepass foobared
85
-
86
- ################################### LIMITS ####################################
87
-
88
- # Set the max number of connected clients at the same time. By default there
89
- # is no limit, and it's up to the number of file descriptors the Redis process
90
- # is able to open. The special value '0' means no limts.
91
- # Once the limit is reached Redis will close all the new connections sending
92
- # an error 'max number of clients reached'.
93
- #
94
- # maxclients 128
95
-
96
- # Don't use more memory than the specified amount of bytes.
97
- # When the memory limit is reached Redis will try to remove keys with an
98
- # EXPIRE set. It will try to start freeing keys that are going to expire
99
- # in little time and preserve keys with a longer time to live.
100
- # Redis will also try to remove objects from free lists if possible.
101
- #
102
- # If all this fails, Redis will start to reply with errors to commands
103
- # that will use more memory, like SET, LPUSH, and so on, and will continue
104
- # to reply to most read-only commands like GET.
105
- #
106
- # WARNING: maxmemory can be a good idea mainly if you want to use Redis as a
107
- # 'state' server or cache, not as a real DB. When Redis is used as a real
108
- # database the memory usage will grow over the weeks, it will be obvious if
109
- # it is going to use too much memory in the long run, and you'll have the time
110
- # to upgrade. With maxmemory after the limit is reached you'll start to get
111
- # errors for write operations, and this may even lead to DB inconsistency.
112
- #
113
- # maxmemory <bytes>
114
-
115
- #use redis as a cache a-la memcached
116
- #increase this depending on your storage needs
117
  maxmemory 8096mb
 
118
  maxmemory-policy allkeys-lru
 
1
  # Redis configuration file example
2
 
 
 
3
  port 7860
4
 
 
5
  bind 0.0.0.0 ::1
6
 
 
7
  timeout 0
8
 
 
 
 
 
 
9
  loglevel debug
10
 
 
 
 
11
  databases 16
12
 
13
  protected-mode no
14
 
15
+ daemonize yes
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
 
 
 
 
17
  rdbcompression yes
18
 
 
19
  dbfilename dump.rdb
20
 
 
 
21
  dir /etc/lib/redis
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  maxmemory 8096mb
24
+
25
  maxmemory-policy allkeys-lru