We use the java driver and are really happy with how this has gone.
Thank you all again!
Tony
> --
> 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.
>
>
On Apr 2, 12:16 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> Great!
> Can we add you tohttp://www.mongodb.org/display/DOCS/Production+Deployments
>
>
>
> On Fri, Apr 2, 2010 at 2:44 PM, tony tam <feh...@gmail.com> wrote:
> > A big thank you to the 10gen folks--we have moved the entire text
> > corpus ofhttp://www.wordnik.cominto MongoDB version 1.4 and pushed
On Apr 2, 1:24 pm, Ryan Angilly <r...@angilly.com> wrote:
> Hey Tony,
>
> What did you migrate from?
>
> Thank!
> Ryan
>
>
>
> On Fri, Apr 2, 2010 at 3:17 PM, tony tam <feh...@gmail.com> wrote:
> > Absolutely, thank you for asking
>
> > On Apr 2, 12:16 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> > > Great!
> > > Can we add you tohttp://
> >www.mongodb.org/display/DOCS/Production+Deployments
>
> > > On Fri, Apr 2, 2010 at 2:44 PM, tony tam <feh...@gmail.com> wrote:
> > > > A big thank you to the 10gen folks--we have moved the entire text
> > > > corpus ofhttp://www.wordnik.comintoMongoDB version 1.4 and pushed
> > > > it live this week. That's 1.2TB of data in over 5 billion records,
> > > > and the speed to query the corpus has been cut to 1/4 the time prior
> > > > to the migration.
>
> > > > We use the java driver and are really happy with how this has gone.
> > > > Thank you all again!
>
> > > > Tony
>
> > > > --
> > > > 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<mongodb-user%2Bunsubscribe@google groups.com>
> > .
> > > > For more options, visit this group athttp://
> > groups.google.com/group/mongodb-user?hl=en.
>
> > --
> > 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<mongodb-user%2Bunsubscribe@google groups.com>
Tony
On Apr 2, 4:03 pm, "Grig Gheorghiu" <grig.gheorg...@gmail.com> wrote:
> Tony -- congrats! Would you care to go into some detail regarding your architecture? Things such as how beefy is your master server, have you used sharding (manual or auto), have you split writes to the master and reads to the slaves, etc....
>
> Thanks,
>
> Grig
>
>
>
> -----Original Message-----
> From: tony tam <feh...@gmail.com>
> Date: Fri, 2 Apr 2010 13:32:14
> To: mongodb-user<mongod...@googlegroups.com>
> Subject: [mongodb-user] Re: Mongodb in production and working great
>
> Hi Ryan, was using Mysql 5.1 in master/slave mode for this data.
>
> On Apr 2, 1:24 pm, Ryan Angilly <r...@angilly.com> wrote:
> > Hey Tony,
>
> > What did you migrate from?
>
> > Thank!
> > Ryan
>
> > On Fri, Apr 2, 2010 at 3:17 PM, tony tam <feh...@gmail.com> wrote:
> > > Absolutely, thank you for asking
>
> > > On Apr 2, 12:16 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> > > > Great!
> > > > Can we add you tohttp://
> > >www.mongodb.org/display/DOCS/Production+Deployments
>
> > > > On Fri, Apr 2, 2010 at 2:44 PM, tony tam <feh...@gmail.com> wrote:
> > > > > A big thank you to the 10gen folks--we have moved the entire text
> > > > > corpus ofhttp://www.wordnik.comintoMongoDBversion 1.4 and pushed
On Apr 2, 4:32 pm, tony tam <feh...@gmail.com> wrote:
> Hi Ryan, was using Mysql 5.1 in master/slave mode for this data.
>
> On Apr 2, 1:24 pm, Ryan Angilly <r...@angilly.com> wrote:
>
> > Hey Tony,
>
> > What did you migrate from?
>
> > Thank!
> > Ryan
>
> > On Fri, Apr 2, 2010 at 3:17 PM, tony tam <feh...@gmail.com> wrote:
> > > Absolutely, thank you for asking
>
> > > On Apr 2, 12:16 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> > > > Great!
> > > > Can we add you tohttp://
> > >www.mongodb.org/display/DOCS/Production+Deployments
>
> > > > On Fri, Apr 2, 2010 at 2:44 PM, tony tam <feh...@gmail.com> wrote:
> > > > > A big thank you to the 10gen folks--we have moved the entire text
> > > > > corpus ofhttp://www.wordnik.comintoMongoDBversion 1.4 and pushed
Getting the similarly structured data was easy--we had a data access
object written to grab the data in mysql. This is what we used in our
application server for production use so there was nothing to
rewrite. We simply wrote a new version of the dao to access mongodb,
both implemented the same interface. So read from mysql dao and
called save with mongodb dao. It was really that simple. Our dao is
pretty lightweight with some logic to do batch inserts--so a
background queue would fill up with objects and we called
DBCollection.insert(List<DBObject>) where the List<DBObject> was less
than 2M characters. This gave us an insert rate of 100,000 records
per second which over 4.5B records is still a chunk of time, but it
worked well and I really can't complain--I think most of the CPU was
on the Java side, not mongodb.
The hierarchal data was a joy to migrate, since this let us take
advantage of the document features supported in mongodb. We loaded
the data from mysql into our internal object structure, which happens
to be annotated so that it can be serialized into a REST web service.
We then used the jackson JSON mapper to turn the object into a JSON
string and called JSON.parse() to create a new DBObject and bam, it
went right into mongo.
There are some additional details to this process, like how to query
the documents but it really wasn't too complicated. I'm happy to
share more details if it helps you or others.
Tony
On Apr 3, 6:17 am, Andrew Kalek <andrew.ka...@gmail.com> wrote:
> How or What did you use to migrate your data?
>
> On Apr 2, 4:32 pm, tony tam <feh...@gmail.com> wrote:
>
>
>
> > Hi Ryan, was using Mysql 5.1 in master/slave mode for this data.
>
> > On Apr 2, 1:24 pm, Ryan Angilly <r...@angilly.com> wrote:
>
> > > Hey Tony,
>
> > > What did you migrate from?
>
> > > Thank!
> > > Ryan
>
> > > On Fri, Apr 2, 2010 at 3:17 PM, tony tam <feh...@gmail.com> wrote:
> > > > Absolutely, thank you for asking
>
> > > > On Apr 2, 12:16 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> > > > > Great!
> > > > > Can we add you tohttp://
> > > >www.mongodb.org/display/DOCS/Production+Deployments
>
> > > > > On Fri, Apr 2, 2010 at 2:44 PM, tony tam <feh...@gmail.com> wrote:
> > > > > > A big thank you to the 10gen folks--we have moved the entire text
> > > > > > corpus ofhttp://www.wordnik.comintoMongoDBversion1.4 and pushed
To get 100,000 inserts/sec, do you run multiple insert/update threads
in Java? If so, how many connections/threads do you use? Is there
a data chunk size that would give high performance?
We did another load into mongo using multiple clients--I think we ran
up to 30 clients. The loading process was a little different though,
there was a lot of data processing going on as records were loaded.
That had other issues (not related to mongo) due to how we generate
our _id field so we decided to run a single thread for the mass
migration.
Tony
I might also add--since I know people have a lot of interest in
running servers in the cloud, that the best performance I could get
out of an EC2 large instance was less than 1/5th that of this
machine. It was a very, very frustrating process trying to get the
EC2 VM to perform :(
Tony
On Apr 2, 4:03 pm, "Grig Gheorghiu" <grig.gheorg...@gmail.com> wrote:
> Tony -- congrats! Would you care to go into some detail regarding your architecture? Things such as how beefy is your master server, have you used sharding (manual or auto), have you split writes to the master and reads to the slaves, etc....
>
> Thanks,
>
> Grig
>
>
>
> -----Original Message-----
> From: tony tam <feh...@gmail.com>
> Date: Fri, 2 Apr 2010 13:32:14
> To: mongodb-user<mongod...@googlegroups.com>
> Subject: [mongodb-user] Re: Mongodb in production and working great
>
> Hi Ryan, was using Mysql 5.1 in master/slave mode for this data.
>
> On Apr 2, 1:24 pm, Ryan Angilly <r...@angilly.com> wrote:
> > Hey Tony,
>
> > What did you migrate from?
>
> > Thank!
> > Ryan
>
> > On Fri, Apr 2, 2010 at 3:17 PM, tony tam <feh...@gmail.com> wrote:
> > > Absolutely, thank you for asking
>
> > > On Apr 2, 12:16 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> > > > Great!
> > > > Can we add you tohttp://
> > >www.mongodb.org/display/DOCS/Production+Deployments
>
> > > > On Fri, Apr 2, 2010 at 2:44 PM, tony tam <feh...@gmail.com> wrote:
> > > > > A big thank you to the 10gen folks--we have moved the entire text
> > > > > corpus ofhttp://www.wordnik.comintoMongoDBversion 1.4 and pushed
Grig
> > > > > > > corpus ofhttp://www.wordnik.comintoMongoDBversion1.4and pushed