Skip to content

scaling the database #86

@gpicavet

Description

@gpicavet

Hello,

I'm having some performance concerns with huge number of clients and a single MongoDB instance.
on heavy load there are a lot of waiting read commands in the mongo queue (almost 200)

So my first question : what would be the best way for scaling out ?
-using replication
-using sharding.

Firstly I'm not used to Mongo, and i dont know if replication would completely remove blocking read !
Secondly, we'd need to supply a list of mongo instances URL and some ReadPreference to the java driver in MongoBootstrap class

Would sharding be a more flexible solution ? (if room activity is correctly distributed among shards, blocking read would drastically decrease ?)

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions