Can I have multi chef server instances running on the same host?


#1

and they will not share each other’s data?

Thanks
Dikang


#2

On Wed, Nov 4, 2009 at 10:09 PM, Dikang Gu dikang85@gmail.com wrote:

and they will not share each other’s data?

Sure. What you’ll need to do is alter the couchdb_database config
option in /etc/chef/server.rb for each separate environment. You’ll
also want to set up separate stomp queues if you are using the
indexer.

Adam


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com


#3

Hi Adam,

Thanks very much for your information.

But I could not find the couchdb_database config option in my
/etc/chef/server.rb… Is it because that it is not supported in my current
version (0.7.12)?

Thanks
Dikang

On Fri, Nov 6, 2009 at 3:36 AM, Adam Jacob adam@opscode.com wrote:

On Wed, Nov 4, 2009 at 10:09 PM, Dikang Gu dikang85@gmail.com wrote:

and they will not share each other’s data?

Sure. What you’ll need to do is alter the couchdb_database config
option in /etc/chef/server.rb for each separate environment. You’ll
also want to set up separate stomp queues if you are using the
indexer.

Adam


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com


#4

Hello,

On 6/11/2009, at 6:03 PM, Dikang Gu wrote:

Hi Adam,

Thanks very much for your information.

But I could not find the couchdb_database config option in my /etc/
chef/server.rb… Is it because that it is not supported in my
current version (0.7.12)?

It most certainly is supported in Chef 0.7.12, Just add the line:
couchdb_database "foo"
The other default configuration options are in this file: http://github.com/opscode/chef/blob/master/chef/lib/chef/config.rb#L102-104

Perhaps it is time for a configuration reference wiki page =)

Thanks
Dikang

On Fri, Nov 6, 2009 at 3:36 AM, Adam Jacob adam@opscode.com wrote:
On Wed, Nov 4, 2009 at 10:09 PM, Dikang Gu dikang85@gmail.com wrote:

and they will not share each other’s data?

Sure. What you’ll need to do is alter the couchdb_database config
option in /etc/chef/server.rb for each separate environment. You’ll
also want to set up separate stomp queues if you are using the
indexer.

Adam


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

<server.rb>


Arjuna Christensen, Software Development Engineer
Opscode, Inc.
E: aj@opscode.com


#5

Thanks Adam! it woks!

And I have another question (sorry to disturb you so many times…)

After the configuration, what’s the command line I should use to start
another chef server instance? Because the port 4000 and 4001 have been used,
how could I assign new ports for the new chef server instance?

Thanks very much for your help!
Dikang

On Fri, Nov 6, 2009 at 1:05 PM, Arjuna Christensen aj@opscode.com wrote:

Hello,

On 6/11/2009, at 6:03 PM, Dikang Gu wrote:

Hi Adam,

Thanks very much for your information.

But I could not find the couchdb_database config option in my
/etc/chef/server.rb… Is it because that it is not supported in my current
version (0.7.12)?

It most certainly is supported in Chef 0.7.12, Just add the line:

couchdb_database “foo”

The other default configuration options are in this file:
http://github.com/opscode/chef/blob/master/chef/lib/chef/config.rb#L102-104

Perhaps it is time for a configuration reference wiki page =)

Thanks
Dikang

On Fri, Nov 6, 2009 at 3:36 AM, Adam Jacob adam@opscode.com wrote:

On Wed, Nov 4, 2009 at 10:09 PM, Dikang Gu dikang85@gmail.com wrote:

and they will not share each other’s data?

Sure. What you’ll need to do is alter the couchdb_database config
option in /etc/chef/server.rb for each separate environment. You’ll
also want to set up separate stomp queues if you are using the
indexer.

Adam


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

<server.rb>


Arjuna Christensen, Software Development Engineer
Opscode, Inc.
E: aj@opscode.com


#6

I have edited a new chef server configuration file "/etc/chef/server_2.rb"
using new port, and type the command “sudo chef-server -C
/etc/chef/server_2.rb -c2 -N”, but it still told me that
"merb : worker (port 4000) ~
merb : worker (port 4000) ~ FATAL: Could not bind to 4000. It was already in
use
merb : worker (port 4000) ~
merb : worker (port 4001) ~
merb : worker (port 4001) ~ FATAL: Could not bind to 4001. It was already in
use
merb : worker (port 4001) ~ "

On Fri, Nov 6, 2009 at 2:47 PM, Dikang Gu dikang85@gmail.com wrote:

Thanks Adam! it woks!

And I have another question (sorry to disturb you so many times…)

After the configuration, what’s the command line I should use to start
another chef server instance? Because the port 4000 and 4001 have been used,
how could I assign new ports for the new chef server instance?

Thanks very much for your help!
Dikang

On Fri, Nov 6, 2009 at 1:05 PM, Arjuna Christensen aj@opscode.com wrote:

Hello,

On 6/11/2009, at 6:03 PM, Dikang Gu wrote:

Hi Adam,

Thanks very much for your information.

But I could not find the couchdb_database config option in my
/etc/chef/server.rb… Is it because that it is not supported in my current
version (0.7.12)?

It most certainly is supported in Chef 0.7.12, Just add the line:

couchdb_database “foo”

The other default configuration options are in this file:
http://github.com/opscode/chef/blob/master/chef/lib/chef/config.rb#L102-104

Perhaps it is time for a configuration reference wiki page =)

Thanks
Dikang

On Fri, Nov 6, 2009 at 3:36 AM, Adam Jacob adam@opscode.com wrote:

On Wed, Nov 4, 2009 at 10:09 PM, Dikang Gu dikang85@gmail.com wrote:

and they will not share each other’s data?

Sure. What you’ll need to do is alter the couchdb_database config
option in /etc/chef/server.rb for each separate environment. You’ll
also want to set up separate stomp queues if you are using the
indexer.

Adam


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

<server.rb>


Arjuna Christensen, Software Development Engineer
Opscode, Inc.
E: aj@opscode.com


#7

sorry Arjuna… I thought you are Adam…

Thank you Arjuna very much for your help!! :slight_smile:

Dikang

On Fri, Nov 6, 2009 at 2:47 PM, Dikang Gu dikang85@gmail.com wrote:

Thanks Adam! it woks!

And I have another question (sorry to disturb you so many times…)

After the configuration, what’s the command line I should use to start
another chef server instance? Because the port 4000 and 4001 have been used,
how could I assign new ports for the new chef server instance?

Thanks very much for your help!
Dikang

On Fri, Nov 6, 2009 at 1:05 PM, Arjuna Christensen aj@opscode.com wrote:

Hello,

On 6/11/2009, at 6:03 PM, Dikang Gu wrote:

Hi Adam,

Thanks very much for your information.

But I could not find the couchdb_database config option in my
/etc/chef/server.rb… Is it because that it is not supported in my current
version (0.7.12)?

It most certainly is supported in Chef 0.7.12, Just add the line:

couchdb_database “foo”

The other default configuration options are in this file:
http://github.com/opscode/chef/blob/master/chef/lib/chef/config.rb#L102-104

Perhaps it is time for a configuration reference wiki page =)

Thanks
Dikang

On Fri, Nov 6, 2009 at 3:36 AM, Adam Jacob adam@opscode.com wrote:

On Wed, Nov 4, 2009 at 10:09 PM, Dikang Gu dikang85@gmail.com wrote:

and they will not share each other’s data?

Sure. What you’ll need to do is alter the couchdb_database config
option in /etc/chef/server.rb for each separate environment. You’ll
also want to set up separate stomp queues if you are using the
indexer.

Adam


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

<server.rb>


Arjuna Christensen, Software Development Engineer
Opscode, Inc.
E: aj@opscode.com


#8

You want ‘-p 4003’, or whatever port you want to start merb on for
those instances.

Adam

On Thu, Nov 5, 2009 at 10:47 PM, Dikang Gu dikang85@gmail.com wrote:

Thanks Adam! it woks!

And I have another question (sorry to disturb you so many times…)

After the configuration, what’s the command line I should use to start
another chef server instance? Because the port 4000 and 4001 have been used,
how could I assign new ports for the new chef server instance?

Thanks very much for your help!
Dikang

On Fri, Nov 6, 2009 at 1:05 PM, Arjuna Christensen aj@opscode.com wrote:

Hello,
On 6/11/2009, at 6:03 PM, Dikang Gu wrote:

Hi Adam,

Thanks very much for your information.

But I could not find the couchdb_database config option in my
/etc/chef/server.rb… Is it because that it is not supported in my current
version (0.7.12)?

It most certainly is supported in Chef 0.7.12, Just add the line:

couchdb_database “foo”

The other default configuration options are in this file:
http://github.com/opscode/chef/blob/master/chef/lib/chef/config.rb#L102-104
Perhaps it is time for a configuration reference wiki page =)

Thanks
Dikang

On Fri, Nov 6, 2009 at 3:36 AM, Adam Jacob adam@opscode.com wrote:

On Wed, Nov 4, 2009 at 10:09 PM, Dikang Gu dikang85@gmail.com wrote:

and they will not share each other’s data?

Sure. What you’ll need to do is alter the couchdb_database config
option in /etc/chef/server.rb for each separate environment. You’ll
also want to set up separate stomp queues if you are using the
indexer.

Adam


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com

<server.rb>


Arjuna Christensen, Software Development Engineer
Opscode, Inc.
E: aj@opscode.com


Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: adam@opscode.com