Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elastic Beanstalk without Elastic Load Balancer

I would like to switch off Elastic Load Balancer (ELB) for my Elastic Beanstalk environment.

Currently I don't need it and I don't want to pay for it.

It is possible to delete the ELB in EC2 managment window but then Elastic Beanstalk health state is switched from GREEN to RED. I just found a information that it's not possible.

Does someone has a trick how to run Elastic Beanstalk without load balancing and have environment GREEN health state?

like image 971
amra Avatar asked Nov 04 '11 18:11

amra


People also ask

Do you need load balancer with Elastic Beanstalk?

Since July 2013 Elastic Beanstalk supports "single-instance" environments that have a single container instance running without a load balancer. Existing environments that are set up using "load balancing environment" can be switched to "single instance" and vice versa.

How do you remove the load balancer from Elastic Beanstalk?

To delete a load balancer using the consoleOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . On the navigation pane, under LOAD BALANCING, choose Load Balancers. Select the load balancer, and then choose Actions, Delete. When prompted for confirmation, choose Yes, Delete.

When should you not use Elastic Beanstalk?

Elastic Beanstalk isn't great if you need a lot of environment variables. The simple reason is that Elastic Beanstalk has a hard limit of 4KB to store all key-value pairs. The environment had accumulated 74 environment variables — a few of them had exceedingly verbose names.


1 Answers

Since July 2013 Elastic Beanstalk supports "single-instance" environments that have a single container instance running without a load balancer. Existing environments that are set up using "load balancing environment" can be switched to "single instance" and vice versa.

Prior to this it was not possible to remove the load balancer and have Elastic Beanstalk still work correctly. The load balancer is an integral part of the way that Elastic Beanstalk works in "load-balancing environment" configurations.

like image 51
Ken Liu Avatar answered Oct 18 '22 13:10

Ken Liu