Lost connections

Patricio A. Bruna pbruna at it-linux.cl
Mon Nov 10 19:35:53 CET 2008


Hi, 
Im running varnish with 3 load balance directors. The first again two windows IIS and the second against a couple of Apache servers, and the third against a couple of Glassfish Servers. The Apache and Glassfish are on the same machines. 

Yesterday Varnish staterd to behavie erractil, the sites stop responding and i had to restart varnish every 5 minutes for make it work again. 
I saw this in the log, i dont know exactly what it means: 

######################################################## 
147 TxRequest b GET 
147 TxURL b /fcgi-bin/mapserv?map=/var/www/mapcity_2_0/map/chile_tiled.map&LAYERS=Oceano%2Craster_sudamerica%2CBoundaries%2CPark%2Curban%2CElevation%2CLakes%2CHidrography%2CEscaleras%2CCalles%2CAvenidas%2CAutopistas%2CCaminos%2Camerica%2Cbound_limit%2CLocality&FORMAT 
147 TxProtocol b HTTP/1.1 
147 TxHeader b Accept: */* 
147 TxHeader b Referer: http://192.168.1.15:8080/cache/ 
147 TxHeader b Accept-Language: es-cl 
147 TxHeader b UA-CPU: x86 
147 TxHeader b Accept-Encoding: gzip, deflate 
147 TxHeader b User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2) 
147 TxHeader b Host: mapa4.mapcity.com 
147 TxHeader b X-Forwarded-For: 172.16.1.20 
147 TxHeader b X-Varnish: 1045402604 
147 TxHeader b X-Forwarded-For: 172.16.1.20 
173 SessionClose c dropped 
173 StatSess c (null) (null) 1226247930 0 0 0 0 0 0 0 
231 SessionClose c dropped 
231 StatSess c (null) (null) 1226247930 0 0 0 0 0 0 0 
234 SessionClose c dropped 
234 StatSess c (null) (null) 1226247930 0 0 0 0 0 0 0 
235 SessionClose c dropped 
235 StatSess c (null) (null) 1226247930 0 0 0 0 0 0 0 
236 SessionClose c dropped 
236 StatSess c (null) (null) 1226247930 0 0 0 0 0 0 0 
236 SessionClose c dropped 
236 StatSess c (null) (null) 1226247931 0 0 0 0 0 0 0 
237 SessionClose c dropped 
237 StatSess c (null) (null) 1226247931 0 0 0 0 0 0 0 
238 SessionClose c dropped 
238 StatSess c (null) (null) 1226247931 0 0 0 0 0 0 0 

################################################################## 

The lines with "SessionClose c dropper and null..." start repeating until i restarted Varnish. 
I know that some changes occurs on the Apache Web Servers, i dont know exactly what was changed. 


Also i got this in the log: 

################################################################## 
210 TxRequest b GET 
210 TxURL b /fcgi-bin/mapserv?map=/var/www/mapcity_2_0/map/chile_tiled.map&LAYERS=Oceano%2Craster_sudamerica%2CBoundaries%2CPark%2Curban%2CElevation%2CLakes%2CHidrography%2CEscaleras%2CCalles%2CAvenidas%2CAutopistas%2CCaminos%2Camerica%2Cbound_limit%2CLocality&FORMAT 
210 TxProtocol b HTTP/1.1 
210 TxHeader b Host: mapa1.mapcity.com 
210 TxHeader b User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; es-AR; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 
210 TxHeader b Accept: image/png,image/*;q=0.8,*/*;q=0.5 
210 TxHeader b Accept-Language: es-ar,es;q=0.8,en-us;q=0.5,en;q=0.3 
210 TxHeader b Accept-Encoding: gzip,deflate 
210 TxHeader b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 
210 TxHeader b Referer: http://192.168.1.15:8080/cache/ 
210 TxHeader b X-Forwarded-For: 172.16.1.20 
210 TxHeader b X-Varnish: 1045397913 
210 TxHeader b X-Forwarded-For: 172.16.1.20 
################################################################## 

I dont know if is ok the line: "Referer: http://192.168.1.15:8080/cache/", I also dont know where it came from. 



The configuration of Varnish is: 

################################################################### 
director webcl_director round-robin { 
{ .backend = { .host = "webcl1"; .port = "http"; } } 
{ .backend = { .host = "webcl2"; .port = "http"; } } 
} 

director gfish_director round-robin { 
{ .backend = { .host = "webcl1"; .port = "8080"; } } 
# { .backend = { .host = "webcl2"; .port = "8080"; } } 
} 

director winvc_director round-robin { 
{ .backend = { .host = "winvc1"; .port = "http"; }} 
{ .backend = { .host = "winvc2"; .port = "http"; }} 
} 


sub vcl_recv { 


if (req.http.host ~ "^(mapa.|encuestas.|encuestas.|desarrollo.|webservices.|belcorp.|webcl1.|accor.|webcl3.)?mapcity.(cl|com)$") { 
set req.backend = webcl_director; 
} 

if (req.http.host ~ "^(omd.|webservice2.|sodexho.)mapcity.(cl|com)$") { 
set req.backend = gfish_director; 
} 

if (req.http.host ~ "www.censodecomercio.cl") { 
set req.backend = gfish_director; 
} 


if (req.http.host ~ "^(beta.|clasico.|www.)?mapcity.(cl|com|pe)$") { 
set req.backend = winvc_director; 
} 

# Add a unique header containing the client address 
remove req.http.X-Forwarded-For; 
set req.http.X-Forwarded-For = client.ip; 
} 

############################################################################## 

Any idea why Varnish stop responding? 


------------------------------------ 
Patricio Bruna V. 
IT Linux Ltda. 
http://www.it-linux.cl 
Fono : (+56-2) 333 0578 - Chile 
Fono: (+54-11) 6632 2760 - Argentina 
Móvil : (+56-09) 8827 0342 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20081110/54b45d95/attachment-0001.html>


More information about the varnish-dev mailing list