[EMAIL PROTECTED] Simultaneous Proxy Balancer workers

2007-06-26 Thread Yavor Trapkov

Hello,

is it possible to setup 2 or more proxy balancers to simultaneously use the
same worker (server), for example


ProxyPass /URL1 balancer://mycluster1

BalancerMember http://1.2.3.4:8009/URL1 route=blue
BalancerMember http://1.2.3.5:8009/URL1 smax=10 route=red
# Less powerful server, don't send as many requests there
BalancerMember http://1.2.3.6:8009/URL1 smax=1 loadfactor=20 route=orange



ProxyPass /URL2 balancer://mycluster2

BalancerMember http://1.2.3.4:80/URL2 route=blue
BalancerMember http://1.2.3.5:80/URL2 smax=10 route=red
# Less powerful server, don't send as many requests there
BalancerMember http://1.2.3.6:80/URL2 smax=1 loadfactor=20 route=orange



If mycluster1 goes via route=red then mycluster2 should go via the same
"red" server

I use route=red just for the example, but any other option could probably be
used


is this supported by apache ghttpd 2.2.4



Thank you

Yavor


[EMAIL PROTECTED] using cache in reverse proxy mode

2005-10-22 Thread Yavor Trapkov
Hello,

I'm using apache (2.0.54) as a frontend server to proxy content from 
application servers,

I'd like to enable caching in order to decrease the load of the backend servers,

I tried to add CacheEnable directive:

ProxyPass/content1 http://server:8080/content1
ProxyPassReverse /content1 http://server:8080/content1
CacheEnable mem  /content1
#CacheEnable disk /content1

but I still see queries going to the application servers,
if disk cache is used nothing is stored into the CacheRoot folder,
i.e. ProxyPass content is somehow ignored .. does it really work in ver 2.0.x
as it is written in the mod_cache doc page?

Does anyone use caching in reverse proxy configuration, could you send me some 
examples

Thank you
Yavor

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] using cache in reverse proxy mode

2005-10-22 Thread Yavor Trapkov
Good point!, but it doesn't seems to be marked uncachable, here are two examples


HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Set-Cookie: JSESSIONID=8A211D396681857816C48E62C2E0D8A5; Path=/
  Content-Type: text/html;charset=ISO-8859-1
  Content-Length: 18
  Date: Sat, 22 Oct 2005 19:47:57 GMT
  Server: Apache-Coyote/1.1
  Connection: Keep-Alive
Length: 18 [text/html]

21:47:49 (676.08 KB/s) - `index.jsp' saved [18/18]


HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  ETag: W/"18-113000941"
  Last-Modified: Sat, 22 Oct 2005 19:30:10 GMT
  Content-Type: text/html
  Content-Length: 18
  Date: Sat, 22 Oct 2005 19:48:06 GMT
  Server: Apache-Coyote/1.1
  Connection: Keep-Alive
Length: 18 [text/html]

21:47:58 (258.50 KB/s) - `index.html' saved [18/18]


Joshua Slive <[EMAIL PROTECTED]> wrote:

>On 10/22/05, Yavor Trapkov <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I'm using apache (2.0.54) as a frontend server to proxy content from 
>> application servers,
>>
>> I'd like to enable caching in order to decrease the load of the backend 
>> servers,
>>
>> I tried to add CacheEnable directive:
>>
>> ProxyPass/content1 http://server:8080/content1
>> ProxyPassReverse /content1 http://server:8080/content1
>> CacheEnable mem  /content1
>> #CacheEnable disk /content1
>>
>> but I still see queries going to the application servers,
>> if disk cache is used nothing is stored into the CacheRoot folder,
>> i.e. ProxyPass content is somehow ignored .. does it really work in ver 2.0.x
>> as it is written in the mod_cache doc page?
>
>What does the content look like - specifically the http response
>headers?  Is it marked uncachable?
>
>Joshua.
>
>-
>The official User-To-User support forum of the Apache HTTP Server Project.
>See http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>





__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] using cache in reverse proxy mode

2005-10-24 Thread Yavor Trapkov
I put

CacheIgnoreCacheControl on
CacheIgnoreNoLastModon
CacheIgnoreHeaders set-cookie

and now debug LogLevel showes the content is cached, but some things doesn't 
make much sense:

with disk cache: each time I send a request I get 


[Mon Oct 24 22:47:13 2005] [debug] mod_cache.c(114): incoming request is asking 
for a uncached version of /index.jsp, but we know better and are ignoring it
[Mon Oct 24 22:47:13 2005] [debug] mod_disk_cache.c(371): disk_cache: Recalled 
cached URL info header server.domain.com/index.jsp?
[Mon Oct 24 22:47:13 2005] [debug] mod_disk_cache.c(502): disk_cache: Recalled 
headers for URL server.domain.com/index.jsp?
[Mon Oct 24 22:47:13 2005] [debug] proxy_http.c(67): proxy: HTTP: 
canonicalising URL //server.domain.com:8080/index.jsp
[Mon Oct 24 22:47:13 2005] [debug] mod_proxy.c(418): Trying to run 
scheme_handler
[Mon Oct 24 22:47:13 2005] [debug] proxy_http.c(1059): proxy: HTTP: serving URL 
http://server.domain.com:8080/index.jsp
[Mon Oct 24 22:47:13 2005] [debug] proxy_http.c(186): proxy: HTTP connecting 
http://server.domain.com:8080/index.jsp to server.domain.com:8080
[Mon Oct 24 22:47:13 2005] [debug] proxy_util.c(1139): proxy: HTTP: fam 2 
socket created to connect to server.domain.com
[Mon Oct 24 22:47:13 2005] [debug] proxy_http.c(336): proxy: socket is connected
[Mon Oct 24 22:47:13 2005] [debug] proxy_http.c(370): proxy: connection 
complete to x.x.x.x:8080 (server.domain.com)
[Mon Oct 24 22:47:13 2005] [debug] proxy_http.c(893): proxy: start body send
[Mon Oct 24 22:47:13 2005] [debug] mod_cache.c(556): cache: Caching url: 
/index.jsp
[Mon Oct 24 22:47:13 2005] [debug] mod_disk_cache.c(645): disk_cache: Stored 
headers for URL server.domain.com/index.jsp?
[Mon Oct 24 22:47:13 2005] [debug] mod_disk_cache.c(747): disk_cache: Body for 
URL server.domain.com/index.jsp? cached.
[Mon Oct 24 22:47:13 2005] [debug] proxy_http.c(953): proxy: end body send

i.e. each time I request the document it's requested from the application 
server, and then cached again, it seems it's never server from the cache ?!?

If I use mem cache: it behaves in a similar way, the difference is that every 
4-5 hits I get

mod_cache.c(220): cache: running CACHE_OUT filter
mod_cache.c(229): cache: serving /index.jsp

but then again it targets the application server

Shouldn't it server the already cached document from the disk/mem cache and not 
sending requests to the application server, at least that's what I'm trying to 
achieve - to reduse the load of the application servers.

Another point, what will happen if the application server is not responding, 
then ideally the cached page should be shown.

Regards
Yavor

Axel-Stéphane  SMORGRAV <[EMAIL PROTECTED]> wrote:

>The first response is not cacheable. It contains no cache validator (Etag, 
>Last-Modified, Expires). The second is cacheable.
>
>You must disable cacheing of Set-Cookie using "CacheIgnoreHeaders set-cookies"
>
>With LogLevel debug you will get all the traces you need to understand why a 
>response does not get cached.
>
>I would not use memory cache with Apache 2.0.54. I used it without problems 
>with Apache 2.0.49, but I ran into core dumps in Apache 2.0.54. Probably does 
>not do you much good anyway.
>
>-ascs
>
>-Original Message-
>From: Yavor Trapkov [mailto:[EMAIL PROTECTED]
>Sent: Saturday, October 22, 2005 9:54 PM
>To: users@httpd.apache.org
>Subject: Re: [EMAIL PROTECTED] using cache in reverse proxy mode
>
>Good point!, but it doesn't seems to be marked uncachable, here are two 
>examples
>
>
>HTTP request sent, awaiting response...
>  HTTP/1.1 200 OK
>  Set-Cookie: JSESSIONID=8A211D396681857816C48E62C2E0D8A5; Path=/
>  Content-Type: text/html;charset=ISO-8859-1
>  Content-Length: 18
>  Date: Sat, 22 Oct 2005 19:47:57 GMT
>  Server: Apache-Coyote/1.1
>  Connection: Keep-Alive
>Length: 18 [text/html]
>
>21:47:49 (676.08 KB/s) - `index.jsp' saved [18/18]
>
>
>HTTP request sent, awaiting response...
>  HTTP/1.1 200 OK
>  ETag: W/"18-113000941"
>  Last-Modified: Sat, 22 Oct 2005 19:30:10 GMT
>  Content-Type: text/html
>  Content-Length: 18
>  Date: Sat, 22 Oct 2005 19:48:06 GMT
>  Server: Apache-Coyote/1.1
>  Connection: Keep-Alive
>Length: 18 [text/html]
>
>21:47:58 (258.50 KB/s) - `index.html' saved [18/18]
>
>
>
>-
>The official User-To-User support forum of the Apache HTTP Server Project.
>See http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Yavor Trapkov
visit me at 
http://trapkov.homelinux.org
icq: 2

[EMAIL PROTECTED] Loadbalancing/stickysession/Source_IP

2008-03-29 Thread Yavor Trapkov
Hello,

I'm using mod_proxy balancer, and I need to redirect all requests coming
from a user to the same backend server.
Our application does not setup cookies and in this sense does not rely on
sessions in order to work with requests sent from webclients that reject
cookies.
I set up my own session variable which I use for stickysession=SrvID, and
roite=srv1,2,.. it seems to work, but I still need to cover cases if/when
the webclient
does not use cookies.
My question is, how can I configure mod_proxy balancer to also use the
source IP address to stick to a particular backend server, without using
cookies.

Many thanks