Fuegovic commited on
Commit
5891425
1 Parent(s): 3f9e3b2

Update redis.conf

Browse files
Files changed (1) hide show
  1. redis.conf +1 -64
redis.conf CHANGED
@@ -1,26 +1,11 @@
1
  # Redis configuration file example
2
 
3
- # By default Redis does not run as a daemon. Use 'yes' if you need it.
4
- # Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
5
- daemonize yes
6
-
7
- # When run as a daemon, Redis write a pid file in /var/run/redis.pid by default.
8
- # You can specify a custom pid file location here.
9
- pidfile /var/run/redis.pid
10
 
11
  # Accept connections on the specified port, default is 6379
12
  port 7860
13
 
14
- # If you want you can bind a single interface, if the bind option is not
15
- # specified all the interfaces will listen for connections.
16
- #
17
-
18
- #for a local setup, use 127.0.0.1
19
- bind 127.0.0.1
20
-
21
-
22
  # Close the connection after a client is idle for N seconds (0 to disable)
23
- timeout 300
24
 
25
  # Set server verbosity to 'debug'
26
  # it can be one of:
@@ -29,11 +14,6 @@ timeout 300
29
  # warning (only very important / critical messages are logged)
30
  loglevel debug
31
 
32
- # Specify the log file name. Also 'stdout' can be used to force
33
- # the demon to log on the standard output. Note that if you use standard
34
- # output for logging but daemonize, logs will be sent to /dev/null
35
- # logfile /var/log/redis/redis-server.log
36
-
37
  # Set the number of databases. The default database is DB 0, you can select
38
  # a different one on a per-connection basis using SELECT <dbid> where
39
  # dbid is a number between 0 and 'databases'-1
@@ -131,46 +111,3 @@ dir /etc/lib/redis
131
  #increase this depending on your storage needs
132
  maxmemory 8096mb
133
  maxmemory-policy allkeys-lru
134
-
135
-
136
- ############################## APPEND ONLY MODE ###############################
137
-
138
- # By default Redis asynchronously dumps the dataset on disk. If you can live
139
- # with the idea that the latest records will be lost if something like a crash
140
- # happens this is the preferred way to run Redis. If instead you care a lot
141
- # about your data and don't want to that a single record can get lost you should
142
- # enable the append only mode: when this mode is enabled Redis will append
143
- # every write operation received in the file appendonly.log. This file will
144
- # be read on startup in order to rebuild the full dataset in memory.
145
- #
146
- # Note that you can have both the async dumps and the append only file if you
147
- # like (you have to comment the "save" statements above to disable the dumps).
148
- # Still if append only mode is enabled Redis will load the data from the
149
- # log file at startup ignoring the dump.rdb file.
150
- #
151
- # The name of the append only file is "appendonly.log"
152
- #
153
- # IMPORTANT: Check the BGREWRITEAOF to check how to rewrite the append
154
- # log file in background when it gets too big.
155
-
156
- appendonly no
157
-
158
- # The fsync() call tells the Operating System to actually write data on disk
159
- # instead to wait for more data in the output buffer. Some OS will really flush
160
- # data on disk, some other OS will just try to do it ASAP.
161
- #
162
- # Redis supports three different modes:
163
- #
164
- # no: don't fsync, just let the OS flush the data when it wants. Faster.
165
- # always: fsync after every write to the append only log . Slow, Safest.
166
- # everysec: fsync only if one second passed since the last fsync. Compromise.
167
- #
168
- # The default is "always" that's the safer of the options. It's up to you to
169
- # understand if you can relax this to "everysec" that will fsync every second
170
- # or to "no" that will let the operating system flush the output buffer when
171
- # it want, for better performances (but if you can live with the idea of
172
- # some data loss consider the default persistence mode that's snapshotting).
173
-
174
- appendfsync always
175
- # appendfsync everysec
176
- # appendfsync no
 
1
  # Redis configuration file example
2
 
 
 
 
 
 
 
 
3
 
4
  # Accept connections on the specified port, default is 6379
5
  port 7860
6
 
 
 
 
 
 
 
 
 
7
  # Close the connection after a client is idle for N seconds (0 to disable)
8
+ timeout 0
9
 
10
  # Set server verbosity to 'debug'
11
  # it can be one of:
 
14
  # warning (only very important / critical messages are logged)
15
  loglevel debug
16
 
 
 
 
 
 
17
  # Set the number of databases. The default database is DB 0, you can select
18
  # a different one on a per-connection basis using SELECT <dbid> where
19
  # dbid is a number between 0 and 'databases'-1
 
111
  #increase this depending on your storage needs
112
  maxmemory 8096mb
113
  maxmemory-policy allkeys-lru