- From: Stephen Nelson-Smith <
>
- To:
- Subject: [chef] Re: Re: Re: Approaches to automate execution of Knife command
- Date: Sun, 6 Jul 2014 19:12:30 +0100
Hi again,
On 6 July 2014 18:11, Karthik Jayaraman
<
>
wrote:
>
In a scenario when
>
the web application1's load is high, we need to subscribe one instance of
>
VM(using knife-vsphere plugin), bootstrap chef and run the cookbooks. This
>
IP address should again be added to nginx server for load balancing.
So it seems like you want to be able to capture the ip address of the
new machine, and add this to the load balancer pool? If I understand
you correctly, you can achieve this easily using search with a Chef
server. In your loadbalancer recipe you search for machines which
function as Java app servers, and take the IP address (which ohai
knows), and use it in the template which renders your nginx config.
If you're not using a Chef server, you need to think about other ways
to make this information available - for example some kind of service
discovery system such as zookeeper could be used.
Hope that helps a little.
S.
Archive powered by MHonArc 2.6.16.