Amazon API - how to create a custom load balancer?

I'm really new to all Amazon EC2 APIs and workarounds. I already opened the Amazon API and created a basic program that creates / deletes instances according to the active CPU instances.

But for the project, I need to create a custom load balancer. So far I have been browsing through many websites looking for ways to create a custom load balancer using the Amazon API, but for some reason no one has done this? (Or they are damn well hidden for Google)

Can someone point me in a good direction or help me with this problem?

+4
source share
1 answer

Well, the API will help you perform infrastructure / administrative tasks such as loading new instances, monitoring their resource usage, etc. (as you already noticed). But obviously, to create your own instance of load balancing, you will need to go into any Linux flavor you choose and install load balancing / reverse proxy software such as HAProxy or Nginx.

This has been done by many, as I suspect, since most recently the Amabon ELB has become more feature-rich (e.g. SSL termination, persistence cookies).

You may find this helpful: http://blog.rightscale.com/2010/04/01/benchmarking-load-balancers-in-the-cloud/ along with the white paper mentioned in the blog post. A very common approach is to install HAProxy along with Stunnel or Pound (the last two are for completing SSL).

+2
source

Source: https://habr.com/ru/post/1385299/


All Articles