<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ligatures:standard;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>First, I want to thanks everyone who is contributing to this great piece of software! Indeed, it’s working very well and it’s very efficient.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I just encounter a small problem : I use varnish/squeeze v2.1.3-8 on a Debian Linux 6.0 web server with the kernel v2.6.32-5-amd64.<o:p></o:p></p><p class=MsoNormal>I use Virtualmin to manage this webserver and I set up Varnish on top of apache2/squeeze v2.2.16-6+squeeze10.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>During the logrotate process, Varnish gives 503 errors. I traced the problem to the multiple apache2 graceful restart that are done during this process.<o:p></o:p></p><p class=MsoNormal>Indeed, I host plenty of websites (more than 100) on my web server and, for each one, I have a block like this in my ‘/etc/logrotate.conf’ file:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>/var/log/virtualmin/mywebsite.fr_access_log /var/log/virtualmin/mywebsite.fr_error_log {<o:p></o:p></p><p class=MsoNormal> rotate 5<o:p></o:p></p><p class=MsoNormal> weekly<o:p></o:p></p><p class=MsoNormal> compress<o:p></o:p></p><p class=MsoNormal> postrotate<o:p></o:p></p><p class=MsoNormal> /usr/sbin/apache2ctl graceful ; sleep 5<o:p></o:p></p><p class=MsoNormal> endscript<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So, during the logrotate process (which lasts for 20 minutes), there is 100+ graceful restart of apache. ‘graceful restart’ are not supposed to terminate existing connections so I don’t understand why Varnish fails to work: probably a mistake on my side!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In my VCL file, I just have “backend apache { .host = "88.190.19.00"; .port = "8080"; }” block along with the usual ones (acl purge, vcl_fetch, …). I use the default Varnish configuration file, except that I raised the memory to 4G and use ram to store the cache.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any clue on how I can solve this small problem?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Tristan CHARBONNIER<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>