2月上海宁波至南美西长荣货代约价优势比市场价低200 300美元柜锦程小汤

2012-02-16 Thread erfurbglf887
SAN ANTONIO,GUAYAQUIL,BUENAVENTURA, CALLAO
桑托斯,瓜内基亚,布埃纳文图拉,卡亚俄
2月上海宁波至南美西整柜货代约价优势比市场价低200-300美元/柜
我司货代约价:小柜1650美元 大柜3150美元 高柜3150美元
锦程国际中国十大物流,公司自有车队,欢迎来电询价8
销售:汤彬华
联系方式:
电话:13456975990
QQ:1648587677

Re: Rate limit spider / bots ?

2012-02-16 Thread haproxy
Thanks John gives me other ideas would this work

###
frontend www_fe
bind :80
mode http
maxconn 4096
default_backend www_be
option contstats
acl spiderbots hdr_sub(user-agent) -i -f /etc/haproxy/spiderbotlist.lst 
use_backend spider_backend if spiderbots 

backend spider_backend
acl too_fast fe_sess_rate gt 10
acl too_many fe_conn gt 10
tcp-request inspect-delay 1000ms
tcp-request content accept if ! too_fast or ! too_many
tcp-request content accept if WAIT_END
server be1  10.1.2.3 check maxconn 100
server be2  10.1.2.4 check maxconn 100

would that in theory limit new session and concurrent connections to 
spider_backend to = maxconn / fe_sess_rate and maxconn /fe_sess_rate ?

100/10 = 10 new sessions/sec or 10 concurrent connections at a time ?

the 11th new session or concurrent user would have a 1000ms delay until 
serviced ?

thanks

---
posted at http://www.serverphorums.com
http://www.serverphorums.com/read.php?10,445347,447162#msg-447162



RE: recording stats

2012-02-16 Thread John Lauro
Look into module rpaf for apache along with "option forwardfor" in haproxy
and no need for routing changes, or you can setup haproxy as a transparent
proxy (source usesrc client) and not change apache but would require
routing changes on the apache servers.

> -Original Message-
> From: Simon Ollivier [mailto:solliv...@aic.fr]
> Sent: Thursday, February 16, 2012 6:49 AM
> To: haproxy@formilux.org
> Subject: recording stats
> 
> Hi,
> I'm using HAPROXY in order to load balance my 2 http servers.
> On theses servers i want to get the apache access_log files with the
> "real" IP source address (not the haproxy server address)
> I have not found any solution.
> I have the full haproxy logs (real ip src - real ip dest), so thats
> good, but i would like to use an analyzer. I installed awstats but it
> couldn't find any visitors. Is it a format probleme?
> 
> Thank you!




Re: recording stats

2012-02-16 Thread YHB Sistem Yönetimi
You have to add "forwardfor" option to haproxy config a.nd change your
apache log format at backends. Please check this page
http://www.techstacks.com/howto/log-client-ip-and-xforwardedfor-ip-in-apache.html
On Feb 16, 2012 11:50 AM, "Simon Ollivier"  wrote:

> Hi,
> I'm using HAPROXY in order to load balance my 2 http servers.
> On theses servers i want to get the apache access_log files with the
> "real" IP source address (not the haproxy server address)
> I have not found any solution.
> I have the full haproxy logs (real ip src - real ip dest), so thats good,
> but i would like to use an analyzer. I installed awstats but it couldn't
> find any visitors. Is it a format probleme?
>
> Thank you!
>
>


recording stats

2012-02-16 Thread Simon Ollivier

Hi,
I'm using HAPROXY in order to load balance my 2 http servers.
On theses servers i want to get the apache access_log files with the 
"real" IP source address (not the haproxy server address)

I have not found any solution.
I have the full haproxy logs (real ip src - real ip dest), so thats 
good, but i would like to use an analyzer. I installed awstats but it 
couldn't find any visitors. Is it a format probleme?


Thank you!