From www to elastic LB

0 views
Skip to first unread message

Jhb

unread,
Jun 29, 2009, 4:23:10 AM6/29/09
to scalr-discuss
Hi,

Can you please provide simple steps to use the elastic LB ?

I'm running a classic www-app-mysql farm, and would like to remove the
www role and benefit from the elastic LB (cheaper).

Thanks for your help,

Jonathan

Arie Fishler

unread,
Jun 29, 2009, 8:55:56 AM6/29/09
to scalr-...@googlegroups.com
I saw that on the farm edit window there is a load-balancing tab where you can select an elastic-lb on the instances of a specific role. I guess that once you select it you can give up using the www role

my following question - is there any replacement for the "not available" messages that were customized on the www role? I replaced the 50x.html pages with my own...

What's the behavior of the elastic LB when nothing is available behind it?

Nickolas Toursky

unread,
Jun 29, 2009, 10:20:46 AM6/29/09
to scalr-...@googlegroups.com
Hi,

To use Elastic LB, you should:

1. Remove www role from the farm.
2. On the farm edit page, enable 'Use Elastic Load Balancer' option
for app role ('Load Balancers' tab).
3. Add ports 80 and 443 as listeners.

All the new instances of this role will be automatically registered on
the Load balancer.

Next, add a DNS record 'www IN CNAME LoadBalancerHost' for your
application. LoadBalancerHost is available on Farms->Elastic Load
Balancers page.

Nick

Nickolas Toursky

unread,
Jun 29, 2009, 10:22:22 AM6/29/09
to scalr-...@googlegroups.com
Hi Arie,

Unfortunately, Amazon does not provide an ability to override HTTP
error handlers.

Nick

On Mon, Jun 29, 2009 at 3:55 PM, Arie Fishler<afis...@gmail.com> wrote:

Arie Fishler

unread,
Jun 29, 2009, 10:27:57 AM6/29/09
to scalr-...@googlegroups.com
thanks Nick.

Jhb

unread,
Jun 29, 2009, 12:03:56 PM6/29/09
to scalr-discuss
Thanks. Do you recommend using the elastic LB vs the www role ?

Arie Fishler

unread,
Jun 29, 2009, 1:15:50 PM6/29/09
to scalr-...@googlegroups.com
Nick,

another question on the LB. If I start a farm that has one app role and I assign it the www CNAME without the elastic LB will I have any problem changing it when I scale to multiple instances and need to reassign the www CNAME to the load balancer? I remembe there was some issue in the past with modifying DNS records. Don't know if this is still relevant.

Arie Fishler

unread,
Jun 30, 2009, 6:12:11 AM6/30/09
to scalr-...@googlegroups.com
anyone?

Nickolas Toursky

unread,
Jun 30, 2009, 8:01:04 AM6/30/09
to scalr-...@googlegroups.com
Arie,

Not sure what problem you are talking about, but for now there are no
known issues with DNS records.
In general, there should be no problem with doing as you wish, but of
course I'd recommend you to test it first.

Nick

Colin Howe

unread,
Jul 7, 2009, 5:29:04 AM7/7/09
to scalr-discuss
Is there a way to do this without removing the www role?

I'd like to add the load balancer and have the www role still running
- so that I can test the load balancer is working before potentially
destroying our production site :-)

Cheers,
Colin


On Jun 29, 3:20 pm, Nickolas Toursky <hin...@gmail.com> wrote:
> Hi,
>
> To use Elastic LB, you should:
>
> 1. Remove www role from the farm.
> 2. On the farm edit page, enable 'Use Elastic Load Balancer' option
> for app role ('Load Balancers' tab).
> 3. Add ports 80 and 443 as listeners.
>
> All the new instances of this role will be automatically registered on
> the Load balancer.
>
> Next, add a DNS record 'www IN CNAME LoadBalancerHost' for your
> application. LoadBalancerHost is available on Farms->Elastic Load
> Balancers page.
>
> Nick
>
>
>
> On Mon, Jun 29, 2009 at 3:55 PM, Arie Fishler<afish...@gmail.com> wrote:
> > I saw that on the farm edit window there is a load-balancing tab where you
> > can select an elastic-lb on the instances of a specific role. I guess that
> > once you select it you can give up using the www role
>
> > my following question - is there any replacement for the "not available"
> > messages that were customized on the www role? I replaced the 50x.html pages
> > with my own...
>
> > What's the behavior of the elastic LB when nothing is available behind it?
>

Nickolas Toursky

unread,
Jul 7, 2009, 6:43:22 AM7/7/09
to scalr-...@googlegroups.com
Hi Colin,

Of course it is not mandatory to disable www role.

After enabling 'Use Elastic Load balancer' option for app role use
load balancer's hostname to test it.

Nick

2009/7/7 Colin Howe <colint...@googlemail.com>:
Reply all
Reply to author
Forward
0 new messages