[chef] Re: Re: Re: Re: Can I have multi chef server instances running on the same host?


Chronological Thread 
  • From: Dikang Gu < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Can I have multi chef server instances running on the same host?
  • Date: Fri, 6 Nov 2009 14:49:56 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DYy10VWDr7e/eVudA+71GAbNEV0lPitRktUXV93QGt2KqE9voU/evPAajIfwOFnfhU wVh3rjWKxaZpW34sowZnACfo9MUBJ5Cl55MCAeGqu4DlORLySIWNPsBTnmQSlBEvNXvT Lt7y5YzuNzwUHDdFs3GgEAAhka5RxQpDkkvRU=

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 < "> > 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 < " target="_blank"> > 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 < " target="_blank"> > wrote:
On Wed, Nov 4, 2009 at 10:09 PM, Dikang Gu < " target="_blank"> > 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: " target="_blank">

<server.rb>

-- 
Arjuna Christensen, Software Development Engineer
Opscode, Inc.
E:  " target="_blank">






Archive powered by MHonArc 2.6.16.

§