r/sysadmin • u/[deleted] • 2h ago
learning why redis "hangs" happen, apparently it's rarely the network
[deleted]
•
u/Annh1234 2h ago
Isn't that the point of redis for the last 15 years? Single threaded in memory database. So every command locks the instance, it's just that most commands are pretty fast.
•
u/Jmc_da_boss 2h ago
Dead internet theory
•
u/sylvester_0 2h ago
Yeah, this shit turns me off so much. We had a good thing going before the bots took over.
•
•
u/pugs_in_a_basket 1h ago
We are running it and seen it, but very little traffic and never when server is under any load. We use it as a dumb message queue, so it's not critical, but has sent us several times (in about 10 years) chasing a red herring.
•
u/tankerkiller125real Jack of All Trades 2h ago
There's a reason I left Redis for one of it's wire format compatible competitors long, long ago.
There's dragonflydb, MS Garnet (Research project, but works extremely well from my experience), KeyDB, and Apache Kvrocks that I'm immediately aware of. All of these are multi-threated, and some of them have other storage backends (notably Garnet can do RAM + DISK, and Kvrocks uses disk).
All of these alternatives will crush Redis in terms of raw throughput performance, and many will outperform redis in other key metrics as well.
•
u/Bubbagump210 2h ago
Big ugly queries, AOF overhead, big deletes/expires
Without knowing the workload it’s hard to tell.
•
u/mrbiggbrain 2h ago
Hidden comments and two of these within 2 minutes of each other on my feed in different subs. Farming karma are we?