haproxy-autoscaling

HAProxy autoscaling with ec2

Usage no npm install needed!

<script type="module">
  import haproxyAutoscaling from 'https://cdn.skypack.dev/haproxy-autoscaling';
</script>

README

HAProxy autoscaling

This small tool works with HAProxy and AWS EC2. The objective is to generate HAProxy conf file with all privates IP instances with a specific tag:Application

How to use

  1. Set Application tag for instances you want to serve behind HAProxy

  2. Set an HAProxy server

  3. Install node and npm i -g haproxy-autoscaling

  4. Set a CRON task with update-haproxy to generate HAProxy conf with all instances

TODO

  1. Avoid to restart server if no diff on generate configuration

  2. Provide a CRON task sample file