Re: Vhost bandwidth

From: Augustin Amann <augustin.amann#ldmobile.net>
Date: Wed, 16 Apr 2008 14:42:39 +0200

Sound really perfect for my purpose. I will try it soon. Which version should i use for this ? I got HAProxy 1.2.17 in production, but I'm ok to use a newer one if needed. Thank's a lot again.

  Augustin.

Krzysztof Oledzki a écrit :
>
>
> On Wed, 16 Apr 2008, Augustin Amann wrote:
>
>> Hello,
> Hello,
>
>> First, thank you for HAProxy, it's a REALY good soft !
>> I need to graph bandwidth for different vhost on a particular ip
>> address, and I'm wondering if there is a way to do that with HAProxy ...
>> Has anyone else done things like this, or i'm going the wrong way ?
>
> Just setup additional backends for each interesting vhost:
>
> backend www.a.example.com
> (...)
>
> backend www.b.example.com
> (...)
>
> backend default
>
> frontend X
> (...)
> acl host_www.a.example.com hdr(host) -i www.a.example.com
> acl host_www.b.example.com hdr(host) -i www.b.example.com
>
> use_backend www.a.example.com if host_www.a.example.com
> use_backend www.b.example.com if host_www.b.example.com
>
> default_backend default
>
> ... and use your favorite method to get counters from the statistics.
> In most current snapshots you may use SNMP for this, README is located
> in: "contrib/netsnmp-perl/". You should also consider adding some
> constant ids for backends.
>
> There are also two xmls for Cacti (haproxy_backend.xml,
> haproxy_frontend.xml) in that directory.
>
> Best regards,
>
> Krzysztof Olędzki
Received on 2008/04/16 14:42

This archive was generated by hypermail 2.2.0 : 2008/04/16 14:45 CEST