[PATCH v2] MINOR Add last activity/session enhancement to stats page

2014-02-11 Thread Bhaskar Maddala
cedcbe6998d7bf5f9b7bbc0cc160d21281479824 Mon Sep 17 00:00:00 2001 From: Bhaskar Maddala Date: Tue, 11 Feb 2014 07:53:55 -0500 Subject: [PATCH] Add last activity/session enhancements to stats page Summary: Added fields for last activity/session to stats page. Last session for front end tracks the last accept time where as for

Re: [PATCH v1] MINOR Add last activity/session enhancement to stats page

2014-02-09 Thread Bhaskar Maddala
maxconn 2 check frontend f1 bind *:9080 default_backend b1 listen stats :9081 stats enable stats hide-version stats uri /admin?stats Thanks Bhaskar On Sun, Feb 9, 2014 at 4:22 AM, Bhaskar Maddala wrote: > Hello, > > Following up on the comments from the previous patc

[PATCH v1] MINOR Add last activity/session enhancement to stats page

2014-02-09 Thread Bhaskar Maddala
he last lb connection time. Last activity on all (be/fe/listener) tracks the time of last byte. Thanks Bhaskar From 331c995f64afac6d7b722e8658b2a15bb5cc91b8 Mon Sep 17 00:00:00 2001 From: Bhaskar Maddala Date: Sun, 9 Feb 2014 03:13:22 -0500 Subject: [PATCH] Add last activity/session enhancement

Re: [PATCH] MINOR Add ability to externalize health checks [Was: Externalizing health checks]

2014-02-07 Thread Bhaskar Maddala
mplement. -Bhaskar On Fri, Feb 7, 2014 at 7:08 PM, Willy Tarreau wrote: > Hi Bhaskar, > > On Fri, Feb 07, 2014 at 06:33:10PM -0500, Bhaskar Maddala wrote: >> Hello, >> >> I apologize for my persistence and realize that everyone if busy with >> getting >>

Re: [Patch V2 1/1] [MINOR] Enhancement to stats page to provide information of last session time.

2014-02-07 Thread Bhaskar Maddala
Sorry that was my mistake. I didn't not check how some of the other stats were done. Please make the change. Thank you On Feb 7, 2014 6:52 PM, "Willy Tarreau" wrote: > Hi Bhaskar, > > On Wed, Feb 05, 2014 at 12:10:09PM -0500, Bhaskar Maddala wrote: > > Hello, &g

[PATCH] MINOR Add ability to externalize health checks [Was: Externalizing health checks]

2014-02-07 Thread Bhaskar Maddala
u, Feb 6, 2014 at 2:45 PM, Bhaskar Maddala wrote: > Hello, > >Since I did not get any responses on this, I decided to try > motivating a reponse > by attempting an implementation. I am attaching a patch that does > this. Admittedly > this patch is an iteration and I am not su

Re: Externalizing health checks

2014-02-06 Thread Bhaskar Maddala
k request to the appropriate web host if required, it may return cached health check responses according the configured TTL. Thanks Bhaskar On Fri, Jan 31, 2014 at 1:46 PM, Bhaskar Maddala wrote: > Hello, > >As the number of haproxy deployments (>20) grows in our infrastructure

[Patch V2 1/1] [MINOR] Enhancement to stats page to provide information of last session time.

2014-02-05 Thread Bhaskar Maddala
Hello, Resubmitting the patch with changed to address concerns from previous attempt Updates from previous submission (a) using unsigned long for last session time stamp instead of timeval struct (b) avoiding tv_now and using now Thanks Bhaskar 0001_last_session_date_stats.patch Descripti

[Patch V1 1/1] Enhancement to stats page to provide information of last session time.

2014-02-04 Thread Bhaskar Maddala
Hello, I took a stab at implementing - add a last activity date for each server (req/resp) that will be displayed in the stats. It will be useful with soft stop. from the ROADMAP document. I digressed from the "last activity date (req/resp)" by logging a timestamp for the la

Externalizing health checks

2014-01-31 Thread Bhaskar Maddala
Hello, As the number of haproxy deployments (>20) grows in our infrastructure along with an increase in the number of backends ~1500 we are beginning to see a non trivial resources allocated to health checks. Each proxy instance health checking each backend every 2 seconds. In an earlier con

Re: [PATCH v2] Add ability to select HASH function amongst (SDBM/DJB2/WT6) and optionally apply avalanche

2013-11-14 Thread Bhaskar Maddala
Thank you for your comments, Willy. > 1) "hash algorithm" => I realized that this naming is confusing > because it's used in conjunction with the balance algorithm. > In practice, both the terms "hash algorithm" or "hash function" > are used, with the latter being much more common. So I changed

Re: balance hdr() enhancment suggestion

2013-11-13 Thread Bhaskar Maddala
You could try something like this acl c01 hdr(host) -i -f c01.acl acl c02 hdr(host) -i -f c02.acl acl c03 hdr(host) -i -f c04.acl ... use_backend cluster01 if c01 ... The ACL's can be generated independently, and haproxy reloaded when one of the acl

Re: [PATCH v2] Add ability to select HASH function amongst (SDBM/DJB2/WT6) and optionally apply avalanche

2013-11-13 Thread Bhaskar Maddala
2013 at 9:41 AM, Bhaskar Maddala wrote: > Hello Willy, > >Thanks for your comments, > > > 1/4 : > > - OK in principle. I have rearranged the doc changes in order not to > > overrun the 80-column limit. I also found that naming the new flags > > BE_LB

Re: [PATCH v2] Add ability to select HASH function amongst (SDBM/DJB2/WT6) and optionally apply avalanche

2013-11-13 Thread Bhaskar Maddala
Hello Willy, Thanks for your comments, > 1/4 : > - OK in principle. I have rearranged the doc changes in order not to > overrun the 80-column limit. I also found that naming the new flags > BE_LB_HALG_* was clearer than BE_LB_HF_* since they're only used to > define the algorithm. I have

Re: [PATCH v2] Add ability to select HASH function amongst (SDBM/DJB2/WT6) and optionally apply avalanche

2013-11-06 Thread Bhaskar Maddala
e. Thanks Bhaskar [1] http://tinyurl.com/l55zode On Tue, Nov 5, 2013 at 6:45 PM, Bhaskar Maddala wrote: > Hello, > >Please find attached the patch with changes we discussed on the email > thread for the first patch on the same. Test results are at [1]. The only > variation b

Re: PATCH: Add ability to select HASH function amongst (SDBM/DJB2/WT6)

2013-11-04 Thread Bhaskar Maddala
missing something? Please clarify at the earliest and I will work on it immediate. Once again, thanks for your patience. -Bhaskar On Wed, Oct 30, 2013 at 2:44 AM, Willy Tarreau wrote: > Hello Bhaskar, > > On Tue, Oct 29, 2013 at 11:56:50PM -0400, Bhaskar Maddala wrote: > > Hello

PATCH: Add ability to select HASH function amongst (SDBM/DJB2/WT6)

2013-10-29 Thread Bhaskar Maddala
Hello Willy, In continuation of the thread on alternatives to consistent hashing, I am starting a new thread to track the patch that has been implemented. The results of testing can be viewed at [1]. The result match my expectations from earlier, i.e. when using consistent hashing DJB2 is b

Re: Consistent hashing alternative to sdbm

2013-10-29 Thread Bhaskar Maddala
, Bhaskar Maddala wrote: > Hello, > >I updated the diff [1], it uses function now instead of macros, and > added hash function "wt6". I did smoke testing stepping thru the code via > the debugger for all hash functions and it looks good, however requires > more rigo

Re: Loadbalancing with ssl on www only

2013-10-29 Thread Bhaskar Maddala
Ahh, thank you -Bhaskar On Tue, Oct 29, 2013 at 10:56 AM, David Coulson wrote: > A wildcard cert is helpful for some things, but domain.com will not > validate against a cert issued for *.domain.com > > > On 10/29/13, 10:52 AM, Bhaskar Maddala wrote: > > If it is a

Re: Loadbalancing with ssl on www only

2013-10-29 Thread Bhaskar Maddala
If it is any help you can get a certificate for *. domain.com On Oct 28, 2013 9:37 PM, "Felix" wrote: > Hello, > > I am using haproxy to loadbalance my webapplication but I get into a > problem > with our ssl certificate. > haproxy is also serving the ssl certificate to the clients. this works >

Re: Consistent hashing alternative to sdbm

2013-10-29 Thread Bhaskar Maddala
there any additional tests you would like written? Thanks Bhaskar [1] https://github.com/maddalab/haproxy/pull/1 On Tue, Oct 29, 2013 at 2:13 AM, Willy Tarreau wrote: > Hi Bhaskar, > > On Tue, Oct 29, 2013 at 12:44:58AM -0400, Bhaskar Maddala wrote: > > Hello, > > > &g

Re: Consistent hashing alternative to sdbm

2013-10-28 Thread Bhaskar Maddala
ub.com/maddalab/haproxy/pull/1 On Fri, Oct 25, 2013 at 2:19 AM, Willy Tarreau wrote: > Hi Bhaskar, > > First, you did an amazing work, thanks for sharing your findings! > > On Thu, Oct 24, 2013 at 11:12:14PM -0400, Bhaskar Maddala wrote: > > Hello, > > > > Thi

Re: dev environment for haproxy

2013-10-25 Thread Bhaskar Maddala
For those who prefer a gui, you can import the the folder containing the git repo in eclipse as "Existing code as makefile project" you will get the usual goodies of a gui, visual debug code navigation, re factoring. You can click on the project and select build, eclipse will invoke make. Set up a

Re: Consistent hashing alternative to sdbm

2013-10-24 Thread Bhaskar Maddala
oxy instance. My tests do not include avalanche because I am testing only on 1.4. Thanks Bhaskar [1] http://tinyurl.com/ke4g4ph [2] https://gist.github.com/maddalab/7148672 [3] cat 1m_requests.log | xargs -I hh curl -s -H "Host: hh" http://localhost/index.html >> results.txt On Thu, Oc

Re: Consistent hashing alternative to sdbm

2013-10-24 Thread Bhaskar Maddala
ably later today. Code is at [1] Thanks -Bhaskar [1] https://gist.github.com/maddalab/7136792 On Thu, Oct 24, 2013 at 2:01 AM, Willy Tarreau wrote: > Hello Bhaskar, > > On Wed, Oct 23, 2013 at 06:15:31PM -0400, Bhaskar Maddala wrote: > > Hello, > > > > Apolo

Re: Consistent hashing alternative to sdbm

2013-10-23 Thread Bhaskar Maddala
683bf/ae3cf3e4766dcfd62cca88a3563a015f [3] https://gist.github.com/maddalab/7127644 Thanks Bhaskar On Sun, Oct 20, 2013 at 3:56 PM, Willy Tarreau wrote: > Hello Bhaskar, > > On Sun, Oct 20, 2013 at 11:25:31AM -0400, Bhaskar Maddala wrote: > > Hello, > > > >I did mean djb2, typo on

Re: Consistent hashing alternative to sdbm

2013-10-20 Thread Bhaskar Maddala
l Thanks Bhaskar On Sun, Oct 20, 2013 at 2:30 AM, Willy Tarreau wrote: > Hello, > > On Fri, Oct 18, 2013 at 06:54:40PM -0400, Bhaskar Maddala wrote: > > Hello, > > > > We have been using haproxy for load balancing requests across our > > backbends. We use con

Consistent hashing alternative to sdbm

2013-10-18 Thread Bhaskar Maddala
Hello, We have been using haproxy for load balancing requests across our backbends. We use consistent hashing, in experiments for the requests processed and specific to our architecture we found dbj2 providing a better distribution over sdbm when the remainder of the configuration was left uncha