| 22 | # Set server verbosity to 'debug' |
| 23 | # it can be one of: |
| 24 | # debug (a lot of information, useful for development/testing) |
| 25 | # notice (moderately verbose, what you want in production probably) |
| 26 | # warning (only very important / critical messages are logged) |
| 27 | loglevel notice |
| 28 | |
| 29 | # Specify the log file name. Also 'stdout' can be used to force |
| 30 | # the demon to log on the standard output. Note that if you use standard |
| 31 | # output for logging but daemonize, logs will be sent to /dev/null |
| 32 | logfile @PREFIX@/var/log/redis.log |
| 33 | |
| 34 | # Set the number of databases. The default database is DB 0, you can select |
| 35 | # a different one on a per-connection basis using SELECT <dbid> where |
| 36 | # dbid is a number between 0 and 'databases'-1 |
| 37 | databases 16 |
| 38 | |
| 39 | ################################ SNAPSHOTTING ################################# |
| 40 | # |
44 | | # Set server verbosity to 'debug' |
45 | | # it can be one of: |
46 | | # debug (a lot of information, useful for development/testing) |
47 | | # notice (moderately verbose, what you want in production probably) |
48 | | # warning (only very important / critical messages are logged) |
49 | | loglevel notice |
50 | | |
51 | | # Specify the log file name. Also 'stdout' can be used to force |
52 | | # the demon to log on the standard output. Note that if you use standard |
53 | | # output for logging but daemonize, logs will be sent to /dev/null |
54 | | logfile @PREFIX@/var/log/redis.log |
55 | | |
56 | | # Set the number of databases. The default database is DB 0, you can select |
57 | | # a different one on a per-connection basis using SELECT <dbid> where |
58 | | # dbid is a number between 0 and 'databases'-1 |
59 | | databases 16 |
60 | | |
| 125 | ############################## APPEND ONLY MODE ############################### |
| 126 | |
| 127 | # By default Redis asynchronously dumps the dataset on disk. If you can live |
| 128 | # with the idea that the latest records will be lost if something like a crash |
| 129 | # happens this is the preferred way to run Redis. If instead you care a lot |
| 130 | # about your data and don't want to that a single record can get lost you should |
| 131 | # enable the append only mode: when this mode is enabled Redis will append |
| 132 | # every write operation received in the file appendonly.log. This file will |
| 133 | # be read on startup in order to rebuild the full dataset in memory. |
| 134 | # |
| 135 | # Note that you can have both the async dumps and the append only file if you |
| 136 | # like (you have to comment the "save" statements above to disable the dumps). |
| 137 | # Still if append only mode is enabled Redis will load the data from the |
| 138 | # log file at startup ignoring the dump.rdb file. |
| 139 | # |
| 140 | # The name of the append only file is "appendonly.log" |
| 141 | # |
| 142 | # IMPORTANT: Check the BGREWRITEAOF to check how to rewrite the append |
| 143 | # log file in background when it gets too big. |
| 144 | |
| 145 | appendonly no |
| 146 | |
| 147 | # The fsync() call tells the Operating System to actually write data on disk |
| 148 | # instead to wait for more data in the output buffer. Some OS will really flush |
| 149 | # data on disk, some other OS will just try to do it ASAP. |
| 150 | # |
| 151 | # Redis supports three different modes: |
| 152 | # |
| 153 | # no: don't fsync, just let the OS flush the data when it wants. Faster. |
| 154 | # always: fsync after every write to the append only log . Slow, Safest. |
| 155 | # everysec: fsync only if one second passed since the last fsync. Compromise. |
| 156 | # |
| 157 | # The default is "always" that's the safer of the options. It's up to you to |
| 158 | # understand if you can relax this to "everysec" that will fsync every second |
| 159 | # or to "no" that will let the operating system flush the output buffer when |
| 160 | # it want, for better performances (but if you can live with the idea of |
| 161 | # some data loss consider the default persistence mode that's snapshotting). |
| 162 | |
| 163 | appendfsync always |
| 164 | # appendfsync everysec |
| 165 | # appendfsync no |
| 166 | |