3

We have an application which consists of an API and many microservices. The API writes to queues from which the microservices are listening. We currently have 25 microservices - none of which need load balancers. At the cost of nearly 5k per year, we'd like to do without these microservice load balancers if possible. The difficulty is that these microservices need to be autoscaled based on CPU usage - so simply setting the application to single-instance environment as described here won't cut it.

Is there any way to have an autoscaling elastic beanstalk group which does not have a load balancer? We're using CloudFormation to describe our deployments and would like to remove the load balancer via our cloudformation template. I've gone through the command option descriptions and can't seem to find anything which fits this use case.

Community
  • 1
  • 1
cscan
  • 3,684
  • 9
  • 45
  • 83
  • 1
    I do not think you can have auto scaling without load balancing on an elastic beanstalk; however you can create an autoscaling group of ec2 instances from a launch configuration which do not require a load balancer. – Theyna Oct 11 '16 at 00:16
  • 1
    Just curious, why are you scaling on the CPU usage of the microservices instead of the size of the SQS queue that's being consumed? – jzonthemtn Oct 11 '16 at 14:13
  • @jbird we're still tossing around options - we thought it would be more standardized if we used CPU usage as certain microservices take longer to process messages than others. This way we can have global scaling settings (and add new microservices with out any deployment configuration). – cscan Oct 11 '16 at 18:34
  • @cscan Thanks! You can always have multiple scaling policies to find what works best for your application. – jzonthemtn Oct 11 '16 at 21:39

1 Answers1

1

You need to make a worker tier in Elastic Beanstalk. So no loadbalancer would be needed. This page describes it in detail.

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-tiers.html

George Whitaker
  • 1,588
  • 13
  • 15
  • 1
    Unless I'm missing something, the current console GUI enforces a load balancer now for multiple instance "worker" environments. – Sean256 Jan 21 '18 at 22:48