cloudezz / harmony

Update HAProxy load balancer on the fly
GNU Lesser General Public License v2.1
1 stars 1 forks source link

Use new haproxy feature called map #1

Open tanmally opened 10 years ago

tanmally commented 10 years ago

https://github.com/smarterclayton/haproxy-map-route-example

rkreddybogati commented 9 years ago

Hi Thanneer,

Thanks for your contribution for HAProxy. I got strucked in implementation of tcp/udp load balancer to my project.

Let me explain my requirment. I have a set of IP Address which are not assigned to any physical machine (some how client should port forward the request to these ip address based on the configuration). Once I request come any one of the IP Address among the give set of IP Address then the load balancer should forward the request to the configured IP address againest that IP address.

I need you suggestions/solution for my requirment. I am lisitng below the steps I would like to do. Please correct me if Im wrong ?

  1. I will install HAProxy in Proxy Server (Dedicated BOX).
  2. Modify the config file according to my requirment.
  3. Run the "harmony" such a way that it will update theHaproxy config file in a given frequency.

I really appreciate you suggestions.

Regards, RK

tanmally commented 9 years ago

I feel what you are trying to do is possible with harmony . Plz look at test case to read a file and modify it . Later use that modified java object to write back the config file .

tanmally commented 9 years ago

have a look at https://github.com/hashicorp/consul-template