[admin@MikroTik] /ip proxy> print
enabled: yes
src-address: 0.0.0.0
port: 8080
parent-proxy: 0.0.0.0
parent-proxy-port: 0
cache-administrator: me
max-cache-size: 25000KiB
cache-on-disk: yes
max-client-connections: 600
max-server-connections: 600
max-fresh-time: 3d
serialize-connections: no
always-from-cache: no
cache-hit-dscp: 4
cache-drive: system
Is there something I should change? Only 45 mb of 3.5gb has been sent from the proxy. Feel like it should be better?
I’m on a rb450g. No extra drive (might buy a micro sd just to add some storage for the proxy)
Why should it be better, though? That seems about right.
Caching proxies achieve huge cache rates when they’re used in front of web servers, where there are 10,000 resources to request and 8,000 of them are static and can be served from cache.
For an ISP there just isn’t much to cache, realistically, particularly if you only give it 25MB to store on the disk. It keeps caching images and javascript resources and css files only to throw them back out FIFO style as it serves more content. So you get to satisfy a couple of hits while two customers happen to hit the same site, and then everything gets thrown into the bit bucket. If you want to see better hit rates you need to give the proxy WAY more storage than 25MB. Something to the tune of a couple of GB worth. And you still won’t see huge hit rates because your customers have the entire web to choose from, whereas a proxy in front of a server cluster has a very limited scope of work. Whenever you read huge proxy hit rates it’s for those server clusters, not general web traffic.
To get maximum cache hit, I suggest you to use some external proxy, like SQUID proxy server, If you well configure SQUID , you can get upto 30-40% Cache Hit Ratio. Mikrotik have a very basic proxy server. There is not much that you can modify in it. Using squid, you can very well customize it as per your requirements.