I'm working on ad service will host a lot of news website with a big traffic about 40 Milieon page view monthly , i was using mongodb with shards only without any replica and It was fitting very well . someday alot of issues with one of shards and every thing goes down. I lost configs metadata and resotre them again. so I rebuild the structure and hope if any one could tell me is there a better structure to serve my app smoothly and be easy to scale or this architructer is good enoght , what must I avoid to be in the safe area as mush as possible ?
Mario
Big Data Enthusiast
I would think that you would need to have at least 1 if not 2 replica sets to avoid being in the situation that you landed up in. Initially when we started off, even we thought .. hey we really don't need a replica set, since we are not going to have terabytes of data from day 1 of our business!!! But then RDBMS systems have their regular backup every week. If you have a replica set, you can consider it as good as a backup in case of a system or node failure. You are obviously going to have to pay for more space but its a good investment. Oh and do ensure that your replica set is in a different geographic area close-by.