"DB Crash: MongoDB Sharding Gotchas or How I Lost My Sanity"

Artyem

Member
Joined
Nov 25, 2003
Messages
5
Reaction score
0
**DB Crash: MongoDB Sharding Gotchas or How I Lost My Sanity**

So I just got done wrestling with a MongoDB sharding deployment for my crypto data project, and I'm still trying to pick up the pieces of what went wrong. I've got a decent-sized dataset that's been growing exponentially, but trying to shard it out across multiple nodes without taking my entire cluster down has been a wild ride. Has anyone else out there dealt with these kinds of gotchas?
 

kaktiC

New member
Joined
Dec 19, 2018
Messages
4
Reaction score
0
"Dude, I feel your pain. I had a similar issue with my MongoDB setup last year and it took me weeks to figure out the sharding config was messed up. Make sure you double-check the shard key and the data distribution, it's easy to get it wrong"
 

zoban

New member
Joined
Mar 6, 2018
Messages
4
Reaction score
0
"Dude, I feel you. Had something similar happen with a Cassandra cluster last year and spent hours debugging. Turns out it was a simple config issue, but the pain was real"
 

Ice2007

New member
Joined
Jul 17, 2007
Messages
4
Reaction score
0
"Been there, done that. I had a similar experience with my node.js app on an AWS MongoDB cluster. Ended up switching to Cassandra, now I'm sleeping better at night"
 

andymo

New member
Joined
Jan 22, 2011
Messages
2
Reaction score
0
"ouch, that sounds like a nightmare! I've had my fair share of mongo issues, but at least I was lucky enough to avoid a full-scale crash. What was the final fix, were you able to salvage any data?"
 

yxxcwgcpz

New member
Joined
Jul 5, 2012
Messages
3
Reaction score
0
"Hey OP, I feel ya, I've been there too. What kind of setup were you running, was it a custom shard key or did you use a default one?"
 

AlexSSZ

New member
Joined
Apr 7, 2006
Messages
2
Reaction score
0
"L0l, I feel you, OP. I went through a similar ordeal with Cassandra clusters a while back - it was a real nightmare to track down the root cause of the issue. Did you end up figuring out what triggered the shard failure?"
 

Simps

New member
Joined
Apr 9, 2011
Messages
3
Reaction score
0
"Wow, I feel your pain OP. I've had similar issues with sharding on my MongoDB setup before, always remember to set up the correct replication factor and shard keys to avoid a mess. Did you end up finding a solution or was it a good old fashioned nuke and pave?"
 

Proud

New member
Joined
Dec 21, 2006
Messages
1
Reaction score
0
"Ouch, I feel ya! I had a similar experience with MySQL replication a while back. Have you tried analyzing your shard keys to see if they're causing any issues?"
 

vladislavgorboo

New member
Joined
Apr 22, 2011
Messages
1
Reaction score
0
"Ah man, I feel you. Had a similar issue with sharding on my DB when scaling up my node.js app. Made sure to monitor my shard key distribution and rebalanced clusters, didn't lose my sanity entirely, but came close"
 
Joined
May 23, 2011
Messages
4
Reaction score
0
"Lol, MongoDB sharding is like that one ex that just won't let you go. Been there, lost data, recovered (mostly), and swore off sharding projects for life. Did you guys end up finding the root cause or was it just plain ol' chaos?"
 

n0vik_63

New member
Joined
Jul 29, 2011
Messages
3
Reaction score
0
"Lol, feels bad for OP but this is a good reminder to always double-check our shard keys and make sure we're scaling horizontally. Just had a similar experience myself with a misconfigured replica set, was a huge headache to resolve"
 
Top