www-modproxy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: [PATCH] Goofing with proxy load balancing
Date Wed, 23 Jul 2003 11:36:31 GMT
Hi,

> Quick overview of the implementation:
> This code uses a single optional hook, the load_balance hook, which is 
> defined by mod_proxy, implemented in mod_proxy_lb.c and is called by 
> ap_proxy_http_create_connection in proxy_http.c.

Is it possible to call this hook something more general than "load 
balancing", as load balancing is just one possible function of this.

Also, something that would be really useful is for a "load 
balancer/backhand" module is the ability for the module hook to return 
DECLINED:

Say for example a stateful module that watches JSESSIONID and passes all 
common requests to the same backend server, might choose to decline to 
perform, based on the cookie being missing, etc. Then, the next module 
in line (eg simple-round-robin) gets a go.

There would have to be a second hook in there, after the request is 
complete, so that the stateful module could see JSESSIONID when it was 
set the first time.

Thoughts?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."


Mime
View raw message