Re: Hitting rate limit?

2017-01-17 Thread Hubert Matthews
Are you using keepalives?  If not, you're measuring mostly the TCP/SSL 
set up and teardown times.  Try ab -k.  I did some measurements recently 
on a web system and got 7 kreq/s for a non-SSL site without keepalives 
and 30kreq/s with.


--
Hubert Matthews



Re: HAProxy doesn't respect the `hold valid 1s` setting

2016-11-11 Thread Hubert Matthews

On 11/11/16 03:29, Tao Wang wrote:

$ curl http://localhost/
:::172.30.0.4 → 7d10f99e3d60 @ [172.30.0.2]%
$ curl http://localhost/
:::172.30.0.4 → 7d10f99e3d60 @ [172.30.0.2]%
$ curl http://localhost/
:::172.30.0.4 → 7d10f99e3d60 @ [172.30.0.2]%
$ curl http://localhost/
:::172.30.0.4 → 7d10f99e3d60 @ [172.30.0.2]%


If these curl commands are less than one second apart then you are 
unlikely to see any change in the DNS name resolution.  Try with a sleep 
2 in between.  Also, bear in mind that the DNS resolution is, according 
to the documentation, triggered by the health check.


--
Hubert Matthews