Hello all!
A few discussions on Twitter, not of the best technical level
unfortunately, raised what can be a legitimate problem, that is the
persistence default of Redis.
We currently provide both a redis.conf, and a default configuration
(when Redis is running without redis.conf at all), that are configured
with RDB persistence with a few save points presets. This means, for
example, that hitting Ctrl+C after some minutes of hacking may results
into data loss. In general what may happen is that newcomers may not
understand that the default is not tuned for durability. One may say,
well, who runs a database without understanding the tradeoffs and
carefully checking the docs? I hope a few, but maybe the default
config is a "selection bias" big enough that a lot of people use RDB
just because it is the default setting.
Because since 2.4 we have automatic AOF rewrites, so that AOF is not
less "automatic" than RDB, maybe the solution can be to just change
the default to AOF with an fsync policy of everysec. After all it is a
setting that many people are using in production. I would also enable,
additionally, RDB by default, with a single save point every 3600
seconds, so that there is some kind of automatic backup in the default
configuration.
As part of the change the redis.conf file may be modified so that the
comments in the persistence section state the default configuration
settings, point to the
redis.io documentation, and so forth.
I wonder what do you think about this. This is not something that's
going to affect most of you, because most people here use redis.conf
that are carefully tuned, but everybody in this list, myself included,
also has a perspective as an user and what a newbie may think and how
he may act.
Is it time for a change?
--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org
Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
— David Gelernter