Advice on how to run multi instances


#1

My Dev wants to run multiple instances of mongo on one box, only way I can see to do this is multiple mongo cookbooks with diff attribute names?

Thoughts?

Thank you,

Joshua


#2

On Tue, Dec 7, 2010 at 11:14 AM, Joshua Miller jassinpain@gmail.com wrote:

My Dev wants to run multiple instances of mongo on one box, only way I can see to do this is multiple mongo cookbooks with diff attribute names?

Thoughts?

You probably want to extract your current mongodb recipe into a
LWRP[1] or resource definition (LWRP recommended). Then you can just
pass in the things that are different about them, (on-disk locations,
port numbers, etc.) without having to have several nearly-identical
cookbooks.

HTH,
Dan DeLeo

  1. http://wiki.opscode.com/display/chef/Light-weight+Resources+and+Providers+(LWRP)

See also: Opscodeā€™s AWS, bluepill, daemontools cookbooks for examples of LWRP.

Dan DeLeo

Thank you,

Joshua