<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA256 <br>
<br>
Ah,<br>
<br>
there is better solution exists. You can re-write Calamaris to get
source data from DB - it written on perl, simple. Just add DB
adapter from CPAN. :)<br>
<br>
P.S. I think, you will be surprised, how low is your _real_ byte hit
:)))))))))))<br>
<br>
30.06.2016 1:16, Yuri Voinov пишет:<br>
<span style="white-space: pre;">><br>
> Eh, if you have access.log in SQL database, you cah simple
write SQL<br>
> query - viola!<br>
><br>
> select (TCP_HIT/TCP_MISS)*100 from access_log; // Cache hit<br>
><br>
> select (field_with_bytes_from_access_log_table *<br>
> TCP_HIT_count/field_with_bytes_from_access_log_table *<br>
> TCP_MISS)*1024*1024 from access_log; // Byte hit<br>
><br>
><br>
> 30.06.2016 0:29, Eduardo Carneiro пишет:<br>
> > Hello everyone.<br>
><br>
> > I am using Squid 3.5.19 with dynamic and static caching
feature activated.<br>
> > It's working very well. All entries of the access.log
are in a postgres<br>
> > database. I am looking for the best way to calculate the
cache economy.<br>
><br>
> > Someone could tell me how to do this?<br>
><br>
> > Best regards.<br>
> > Eduardo<br>
><br>
><br>
><br>
> > --<br>
> > View this message in context:<br>
>
<a class="moz-txt-link-freetext" href="http://squid-web-proxy-cache.1019090.n4.nabble.com/Cache-economy-calculation-tp4678292.html">http://squid-web-proxy-cache.1019090.n4.nabble.com/Cache-economy-calculation-tp4678292.html</a><br>
> > Sent from the Squid - Users mailing list archive at
Nabble.com.<br>
> > _______________________________________________<br>
> > squid-users mailing list<br>
> > <a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
> > <a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a><br>
><br>
></span><br>
<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2
<br>
<br>
iQEcBAEBCAAGBQJXdB8bAAoJENNXIZxhPexG8o4H/2EUtBMEnLH+ewMhdJRhsoOW
<br>
jG7XCO9NqqSC+bxLX6Y1dHBj7MFS5RBvUs/a4piDGLnOZM7/La57/WK9UU9OmTmw
<br>
vWjxD/LU7M1yUt9pgCe6K4PRDPJaionnheKNHtY///Xih9G9IgIzOWJgzmVa39pZ
<br>
hrXdT0qKf/7lAdYIjZPW5Tlm/yxEab3LBWBj823AjJgiXBpPUuMD1G0VMaBz4KG0
<br>
5GbgYBLQE57N8pl5ufrOIQY0PFRaaWpr6Ct0Y65feXz3Hm0ax0P6VIlU3Suh3nQg
<br>
8YU6H8PQniGWy+Mj1MebrVqZwLID4YYbQ8w+b6F9+Un8Z5cExBIVQd6cm8pl+eo=
<br>
=m5mo
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</body>
</html>