Get most out of 2GB of RAM VPS

138 views
Skip to first unread message

Octavian Covalschi

unread,
Jun 20, 2012, 9:52:32 AM6/20/12
to mongod...@googlegroups.com
Hi,

I've got a 2GB VPS @ Linode and I was wondering what can I do to make most out of this setup. OS is Fedora 16 64bit for now.

My 1st goal is to accomplish the best performance I can, for as many users I can. Data size per user will be limited, but all together it may grow.

So, my 1st thought is to have at least 1 replica set with slaveOk. Another thought is to have multiple mongod instances running on different ports, as a result there will be a limited number of users per instance.

Does this make sense to do? What else I can do?

Or I should wait for 2.2 with it's db level locking?

Thank you in advance.

मैं एक भारतीय बेवकूफ हूँ

unread,
Jun 20, 2012, 10:00:16 AM6/20/12
to mongod...@googlegroups.com
First you should figure out how far you can get with a standard
standalone setup and scale when needed. Since you did not tell us
anything about your application, the expected number of requests etc....
there is not much one can recommend seriously, brother
> --
> 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
> See also the IRC channel -- freenode.net#mongodb

Octavian Covalschi

unread,
Jun 20, 2012, 10:31:45 AM6/20/12
to mongod...@googlegroups.com
That's the thing, I don't know what to expect, since each potential user will have their own usage needs, so it's hard to anticipate... however I do plan to put some restrictions... so I guess I could look at worst use cases...

Right now I'm trying to load test my app to see where I could improve things...

Thanks for your input.

Octavian Covalschi

unread,
Jun 27, 2012, 2:54:32 PM6/27/12
to mongod...@googlegroups.com
So, I finally managed to do a proof of concept setup and I'm getting 300-400 inserts per second (mongostat), using a 250 concurrent users... from a remote machine. CPU doesn't seem to be used much, all I'm doing is inserting into random databases (db1-db50)

One thing I noticed, initially I'm getting about 450 inserts per second, but after a while it drops to 290-350...

So, is this max I can get out of this setup(2GB RAM)? I do have some improved code, but I haven't tried it it...

PS: Using 2.0.6 version.
Reply all
Reply to author
Forward
0 new messages