4 ms·
I prefer to architect to use redis in an ephemeral way. Redis isn't exactly safe in the same way postgresql was up until very recently on newer linux. The seman
by alexnewman 7y ago
I prefer to architect to use redis in an ephemeral way. Redis isn't exactly safe in the same way postgresql was up until very recently on newer linux. The semantics of fsync on Linux have been esoteric and poorly understood in the error cases. I would try to cause fsync to fail in another process, while memcached is shutting down and immediately recover. I wonder if the authors checked this scenario. Redis kindof does the right thing and will eventually put the right thing on disk but why do it?
- coded 7y agoWhat issue caused postgres to not be safe recently?
- alexnewman 7y agoFsync doesn't work the way you think it does https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.percona.com/blog/2019/02/22/postgresql-fsync-failure-fixed-minor-versions-released-feb-14-2019/&ved=2ahUKEwiXsvXnneLkAhUOUt8KHZLeCr8QFjACegQIAhAB&usg=AOvVaw0oSQmeeR3e3YkGDJKnUFui https://www.google.com/url?sa=t&source=web&rct=j&url=https:/... PostgreSQL › wiki › Fsync_Errors Web results Fsync Errors - PostgreSQL wiki LWN.net › Articles PostgreSQL's fsync() surprise [LWN.net]
- anarazel 7y agoNote that that only was an issue in cases the storage system itself was failing (i.e. IO errors were generated). In contrast to protection against power failures etc, which was/is working correctly.
- alexnewman 7y agoUhm the first sentence is accurate. The second is not
- anarazel 7y agoI'm fairly sure I was accurate. What exactly are you referring to?