[no subject]

2013-01-08 Thread wsq003

How to select a server based on client ip ?

2012-03-15 Thread wsq003
Hi, If we have 5 servers within a back-end, how can we specify some request to certain server based on client ip? For example: backend server s01 server s02 server s03 server s04 server s05 How can we make all requests comes from 217.192.7.* goes to

Re: Re: How to select a server based on client ip ?

2012-03-15 Thread wsq003
, the rules may be complex and changing. It is not elegant to define hundreds of backend. From: Carlo Flores Date: 2012-03-15 14:45 To: wsq003 CC: haproxy Subject: Re: How to select a server based on client ip ? See the src entry under section 7.5.1 of the HAProxy docs. There's actually many examples

Re: Grouping servers for failover within a backend

2012-02-22 Thread wsq003
you can try 'use_backend' with ACL. for example you can config two backends named be1 and be2. then: acl a1 path_reg some_regex1 acl a2 path_reg some_regex2 use_backend be1 if a1 use_backend be2 if a2 if you carefully design the regex1 and regex2, it will work fine. notice that if be1 is down,

Does haproxy support cronolog?

2012-01-31 Thread wsq003
Hi Here we want haproxy to write logs to separate log files (i.e. /home/admin/haproxy/var/logs/haproxy_20120131.log), and we want to rotate the log files. Then cronolog seems to be a good candidate. We don't want to change /etc/syslog.conf or /etc/syslog-ng.conf, because we don't want to

Re: Re: hashing + roundrobin algorithm

2011-11-29 Thread wsq003
-30 01:47 To: wsq003 CC: Rerngvit Yanggratoke; haproxy; Baptiste Subject: Re: Re: hashing + roundrobin algorithm On Tue, Nov 29, 2011 at 02:56:49PM +0800, wsq003 wrote: Backend proxies may be multiple layers, then every layer can have its own LB param. Logically this is a tree-like structure

Re: Re: hashing + roundrobin algorithm

2011-11-28 Thread wsq003
. This can be recursive. In source code: At the end of assign_server(), if we found that a server has 'vgroup' property, we will set backend of cur_proxy and call assign_server() again. From: Rerngvit Yanggratoke Date: 2011-11-26 08:33 To: wsq003 CC: Willy Tarreau; haproxy; Baptiste Subject

Re: Executing Script between Failover

2011-11-24 Thread wsq003
One another way would be: Use crontab to start a script, this script can get status of servers by `curl http://your.haproxy.com:8080/admin_status;cvs` Then you can send messages to anywhere you like. From: Prasad Wani Date: 2011-11-24 19:12 To: haproxy Subject: Executing Script between

how http-server-close work?

2011-11-21 Thread wsq003
Hi, In my condition, I set the http-server-close option for client-side keepalive. (You know this will save the time of establish connections) My question is will haproxy re-assign backend server for every HTTP request in this connection? I also configure 'balance uri' and 'hash-type

Re: Re: trying to use ebtree to store key-value paires

2011-11-02 Thread wsq003
relation)); rel-cbm.key = 123; rel-key = 123; rel-be = 0; eb64i_insert(root, rel-cbm); struct eb64_node* nd = eb64i_lookup(root, 123); if (nd) { rel = eb64_entry(nd, struct relation, cbm); } } From: Willy Tarreau Date: 2011-11-02 06:34 To: wsq003 CC: haproxy Subject: Re: trying to use

How about server side keep-alive in v1.5?

2011-10-08 Thread wsq003
Hi Willy, In the mainpage I saw below: 1.5 will bring keep-alive to the server, but it will probably make sense only with static servers. While in the change-log or source code I did not find this feature (server side keep-alive). Am I missing something, or server side keep-alive still on