Yeah, it does load balance among all 'application_server' nodes.

But indeed, perhaps a 'sub-recipe' of the web-app role is in order. 
Perhaps "web-app::load_balancer"? I'll add this to the little todo list 
I'm keeping in the description.

I'm also not committed to using nginx_load_balancer by the way, just 
wanted to see the automatic adding of nodes to the nginx upstream in 
action (which worked!) and commit a 'stable' state.

Christian Joudrey wrote:
>
> In roles/web-app_load_balancer.rb:
>
> > @@ -0,0 +1,8 @@
> > +name'web-app_load_balancer'
> > +description'A load balancer for web-app'
> > +
> > +run_list(
> > +'role[base]',
> > +'recipe[web-app]'
>
> Does this role load balance amongst all the
> |web-app_application_server| nodes? If so, I find it weird that it
> needs to use the same cookbooks as |web-app|. In theory, we don't need
> Ruby, etc.. on the LB. We just need a node that can forward TCP requests.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/saas-infrastructure/cookbooks/pull/3/files#r4717079>.