<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:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
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;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1208105506;
mso-list-type:hybrid;
mso-list-template-ids:-708023368 295203634 536870937 536870939 536870927 536870937 536870939 536870927 536870937 536870939;}
@list l0:level1
{mso-level-text:%1-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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="fr-MG" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="FR">Hi everyone !<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">I’m trying to use a helper to make custom « store-id » for some requests.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">The idea is to increase HIT on theses request types.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">Here is some example of my helper input/output :
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR"><a href="http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?succinct=true&streamId=207698&nvltToken=27348686-4a4e-4d1e-b3b4-62a7243f5207&publicCache=1296000&cmisselector=content&objectId=146662">http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?succinct=true&streamId=207698&nvltToken=27348686-4a4e-4d1e-b3b4-62a7243f5207&publicCache=1296000&cmisselector=content&objectId=146662</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">OK store-id=http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?cmisselector=content&objectId=146662&streamId=207698&succinct=true<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR"><a href="http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?succinct=true&streamId=207698&publicCache=1296000&cmisselector=content&objectId=146662">http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?succinct=true&streamId=207698&publicCache=1296000&cmisselector=content&objectId=146662</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">OK store-id=http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?cmisselector=content&objectId=146662&streamId=207698&succinct=true<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">I update the squid.conf like this : <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">store_id_program /usr/local/bin/urlSort2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">store_id_children 25 startup=15 idle=5 concurrency=0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">And restart the service. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">I see urlSort2 in ram using ps so i guess it’s called by squid and returning modified store-id :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">[root@xxx ~]# ps -eaf | grep urlSort2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">squid 15788 15749 0 08:58 ? 00:00:00 (urlSort2)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="fr-MG"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">When i look into access.log and store.log, i see this :
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">Access.log :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">1607599918.911 1245 10.101.20.53 TCP_MISS/200 128832 GET
<a href="http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?succinct=true&streamId=207698&nvltToken=27348686-4a4e-4d1e-b3b4-62a7243f5207&publicCache=1296000&cmisselector=content&objectId=146662">
http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?succinct=true&streamId=207698&nvltToken=27348686-4a4e-4d1e-b3b4-62a7243f5207&publicCache=1296000&cmisselector=content&objectId=146662</a> user HIER_DIRECT/xxx.xxx.xxx.xxx image/jpeg<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">Store.log :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">1607666419.148 SWAPOUT 00 00000543 791B7B07B8004584E9432DA2444EED74 200 1607666417 -1 1608962417 image/jpeg 97165/97165 GET
<a href="http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?succinct=true&streamId=194324&nvltToken=72f33f50-f267-4025-a373-7b1a00cfe500&publicCache=1296000&cmisselector=content&objectId=129520">
http://myproject-prod.myhost.com:8080/current/cmis/browser/myproject_prod/root?succinct=true&streamId=194324&nvltToken=72f33f50-f267-4025-a373-7b1a00cfe500&publicCache=1296000&cmisselector=content&objectId=129520</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="fr-MG"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">When i call the first request of my example of output help, then the second, i get a MISS.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">I suppose that there’s not using the same store-id.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="fr-MG"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">So i have two questions : <o:p></o:p></span></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="FR">Is the log system of squid display (or can display) store-id, or only url request ? I didn’t found information about this on the documentation.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="FR">Why i get only MISS, and how be sure that the helper is correctly use ?<o:p></o:p></span></li></ol>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR">BR,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="fr-MG"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#595959;mso-fareast-language:FR">Thomas PALFRAY<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="fr-MG"><o:p> </o:p></span></p>
</div>
</body>
</html>