Am 25.04.14 19:53, schrieb Kobus Bensch:
> Hi Paul
> 
> We use haproxy to multiple https servers. After this we have a separate 
> tomcat server for each http server. So a one to one relationship between 
> Apache and tomcat. We then use apache to shop to the tomcat servers. 
> 
> ----------------------
> | haproxy1  HA haproxy2 | using corosync/pacemaker
> -----------------------
> Apache1.         Apache2
>        |                        |
> Tomcat1           Tomcat2
>        \                       /
>           \                 /
>              MySQL DBS 
> 
> 
> 
> Sent from my iPhone
> 
>> On 25 Apr 2014, at 18:19, Paul Hirose <[email protected]> wrote:
>>
>> I was wondering if anyone uses haproxy for http -> ajp (tomcat) 
>> load-balancing.  I often use haproxy for http -> http, but I was just 
>> wondering what would need to happen for the incoming http(s) request to get 
>> translated into ajp and forwarded to tomcat's ajp connector rather than the 
>> http connector.
>>
>> If not, I suppose I could do the http -> ajp conversion in apache httpd, and 
>> place haproxy in between the httpd process and multiple tomcat backends 
>> using tcp mode rather than http mode.
>>
>> I've no specific need for this yet, per se.  Just curious.
>> Thanks,
>> PH
>> ==
>> Paul Hirose
>>
> 
with ajp you can use loadbalancing in apache to use several backend tomcat 
servers. it should work with haproxy but i
wonder why not use load balancing with apache. its there already...

markus

Reply via email to