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 exa
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 serv
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 dow
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 ma
retries 3
==
Sorry I can't provide a clean patch, because vgroup is just one of several
changes.
I did not consider the rewrite rules at that time. Maybe we can add a function
call before calling assigen_se
proper real server.
It would be better if official version can provide this feature.
From: Willy Tarreau
Date: 2011-11-29 14:24
To: wsq003
CC: Rerngvit Yanggratoke; haproxy; Baptiste
Subject: Re: Re: hashing + roundrobin algorithm
Hi,
On Tue, Nov 29, 2011 at 01:52:31PM +0800, wsq003 wrote
can configure any load balance
strategy. 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: w
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 Failover
I've made a private patch to haproxy (just a few lines of code, but not
elegant), which can support this feature.
My condition is just like your imagination: consistent-hashing to a group then
round-robin in this group.
Our design is that several 'server' will share a physical machine, and 's
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 consistent
ruct 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: ha
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 go
13 matches
Mail list logo