Hi all,
So we've relaunched
http://www.funadvice.com using the excellent
MongoDB and MongoMapper. We get close to 6 million uniques monthly, so
its a fairly largish site.
I have to say, the newsgroup has been very helpful in more ways than
you all even know.
What is Funadvice?
We're one of the original Q&A sites, and were launched in summer 2003,
so we're dinosaurs at this. We've gone from PHP+Postgresql, to PHP
+Mysql to Rails+Mysql to Rails+Postgresql, and now to Rails+MongoDB
+Redis.
What are we using?
-- Software
* Rails 2.3.5
* MongoDB (1.4.2)
* MongoMapper
* Redis!
-- Hardware
* Centos server with 12 Gigs RAM and 16 cores
* 16 Cores
* 2 x webservers
* 1 x Solr Server
(from the awesome guys at
serverbeach.com)
We're very happy with the outcome since launching yesterday, and
performance has been wonderful.
I'd say here are some things to watch out for:
1. Only load the attributes you need when doing a search, because they
have to be sent over the wire (same as SQL)
2. Don't overdo embedded data. Comments/answers works great for us,
because generally they're not so much, but we wanted to store some
"other" data with a certain kind of document, and we noticed the site
getting slower and slower... Break some stuff out if you have to, and
remember the 4Meg limit anyway.
3. Make sure you index stuff! We noticed the site slowing to a crawl
12 hours later... A stats table was growing like crazy and did not
have an index on a certain attribute. Elementary you say, but then,
when you're accustomed to the blazing speed that MongoDB offers, then
sometimes you overlook simple things. Sigh.
4. Get more RAM. Even though our DB is not that big, and is only
eating up 3 Gigs out of 12, we made sure to have the headroom
available. Servers with lots of RAM are cheap.
There are a bunch of things to watch out for, but once you do, the
upside is totally worth it. For instance, nightly backups which used
to render our old site inoperative for around 30 minutes, now last for
less than a minute... maybe 30 seconds most of the time. What does
this mean? We can do hourly backups without thinking about it.
We're big Postgresql guys, and we're migrating from that. We still
love you Postgresql, but MongoDB really made this project
interesting.
Ericson Smith
CTO
http://www.funadvice.com
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to
mongod...@googlegroups.com.
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/mongodb-user?hl=en.