[squid-users] Cache economy calculation

Yuri Voinov yvoinov at gmail.com
Wed Jun 29 19:18:51 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 
Ah,

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. :)

P.S. I think, you will be surprised, how low is your _real_ byte hit
:)))))))))))

30.06.2016 1:16, Yuri Voinov пишет:
>
> Eh, if you have access.log in SQL database, you cah simple write SQL
> query - viola!
>
> select (TCP_HIT/TCP_MISS)*100 from access_log; // Cache hit
>
> select (field_with_bytes_from_access_log_table *
> TCP_HIT_count/field_with_bytes_from_access_log_table *
> TCP_MISS)*1024*1024 from access_log; // Byte hit
>
>
> 30.06.2016 0:29, Eduardo Carneiro пишет:
> > Hello everyone.
>
> > I am using Squid 3.5.19 with dynamic and static caching feature
activated.
> > It's working very well. All entries of the access.log are in a postgres
> > database. I am looking for the best way to calculate the cache economy.
>
> > Someone could tell me how to do this?
>
> > Best regards.
> > Eduardo
>
>
>
> > --
> > View this message in context:
>
http://squid-web-proxy-cache.1019090.n4.nabble.com/Cache-economy-calculation-tp4678292.html
> > Sent from the Squid - Users mailing list archive at Nabble.com.
> > _______________________________________________
> > squid-users mailing list
> > squid-users at lists.squid-cache.org
> > http://lists.squid-cache.org/listinfo/squid-users
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJXdB8bAAoJENNXIZxhPexG8o4H/2EUtBMEnLH+ewMhdJRhsoOW
jG7XCO9NqqSC+bxLX6Y1dHBj7MFS5RBvUs/a4piDGLnOZM7/La57/WK9UU9OmTmw
vWjxD/LU7M1yUt9pgCe6K4PRDPJaionnheKNHtY///Xih9G9IgIzOWJgzmVa39pZ
hrXdT0qKf/7lAdYIjZPW5Tlm/yxEab3LBWBj823AjJgiXBpPUuMD1G0VMaBz4KG0
5GbgYBLQE57N8pl5ufrOIQY0PFRaaWpr6Ct0Y65feXz3Hm0ax0P6VIlU3Suh3nQg
8YU6H8PQniGWy+Mj1MebrVqZwLID4YYbQ8w+b6F9+Un8Z5cExBIVQd6cm8pl+eo=
=m5mo
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160630/98c158a6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x613DEC46.asc
Type: application/pgp-keys
Size: 2437 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160630/98c158a6/attachment-0001.key>


More information about the squid-users mailing list