Semi-OT: Configuring Mongodb For Sharding

Home » CentOS » Semi-OT: Configuring Mongodb For Sharding
CentOS 1 Comment

Anyone know about this? Googling, all I can find is mongodb’s 3.x manual, nothing for the 2.4 we get from epel.

What I need to do, CentOS 6.6, is start it as a service, not a user, and have it do sharding. I see examples of how to start it as a user… but I
can’t find if there’s a syntax for /etc/mongodb.conf to tell it that, and I don’t want to have to edit /etc/init.d/mongod….

Clues for the poor?

mark

One thought on - Semi-OT: Configuring Mongodb For Sharding

  • Use the packages from the official MongoDB repo and not the packages from epel. MongoDB is rather buggy and you always want to run recent versions. The last version I ran in a sharded setup was 2.6.5 and that contained some rather ugly bugs that resulted in no proper balancing happening between the shards and replica sets becoming confused about the number of servers that were members of a set.

    Regards,
    Dennis