sunggun-yu / chef-mongodb3

Chef Cookbook for MongoDB v3
https://supermarket.chef.io/cookbooks/mongodb3
Apache License 2.0
33 stars 58 forks source link

Automatic replica set configuration #6

Open armanuorder opened 9 years ago

armanuorder commented 9 years ago

Hello,

First, thanks for creating this cookbook! It is evident that you put a lot of effort into making this and it is a tremendous help to the community to have a working cookbook that supports mongo 3 with lots of configuration options being manageable through chef. The only other cookbook I've had similar success with is the original edelight mongodb-cookbook which has now been taken over by chef-brigade: https://github.com/chef-brigade/mongodb-cookbook . They are also working on adding mongo 3 support, but not quite there yet as their cookbook is a bit more complex.

One thing that would be really nice to have is automatic configuration of the replica set using chef search to identify other nodes using the same replica set name and having chef run the appropriate commands to configure the cluster. The cookbook I linked above does this using the mongo ruby gem to connect to mongo during convergence and automatically reconfigures the cluster based on what it finds in chef server's own database.

Currently, with your cookbook, replica set configuration seems to be accomplished by manually running the appropriate rs.initiate() and rs.add() commands. Alternatively since you support MMS automation agent, one can plug in to that system to leverage the features provided by MMS to manage the replica set. However, if one did not wish to use MMS but desired to use mongo 3, the only option seems to be manual configuration.

Are you planning to add automatic replica set configuration in the near future? I would switch to using your cookbook exclusively if this was possible.

What other features are planned?

Great work so far, thanks again.

chuangtim commented 8 years ago

+1

chuangtim commented 8 years ago

@armanuorder hi,do you have any idea for automatic replica set configuration?I also looking for the solustion for mongodb replica set configuration.

chuangtim commented 8 years ago

@sunggun-yu

vinaybandakka commented 8 years ago

+1

moos3 commented 8 years ago

+1