Jump to content
fajw

How to put Squid proxy cache on an SSD?

Recommended Posts

How does one go about putting the Squid proxy cache on an SSD or another separate drive?

 

Thanks.

Edited by fajw

Share this post


Link to post
Share on other sites

How does one go about putting the Squid proxy cache on an SSD or another separate drive?

Just specify the cache directory as required. I can't imagine putting a squid cache on SSD would have any measurable throughput advantages though. Squid isn't the speediest of caching proxies to begin with and unless you're targetting an extremely low-latency high-bandwidth workload, you're not going to see any change.

 

Anyway, edit squid.conf and change the cache_dir parameter.

Share this post


Link to post
Share on other sites

Thanks for the reply.

 

I changed cache_dir to /SSD which I created to mount wth the SSD but how do I check if Squid is actually using the right directory?

Share this post


Link to post
Share on other sites

Squid isn't starting :|

 

I wonder if I should create a link.

 

Not sure.

Share this post


Link to post
Share on other sites

Make sure you run squid -z to recreate your cache.

 

And since you changed the default location for your cache, make sure SELinux isn't interfering.

 

Check your /var/log/messages.

Share this post


Link to post
Share on other sites

Hi, I put /var/spool on a separate partition.

 

That covers squid. /var/spool/squid

 

I've used

 

squid -k reconfigure

 

to rebuild the cache, you need to wait for squid to finish that task before you start using the caching.

 

Not too sure how the ssd will survive the thrashing it will get.

 

I've heard of using ram and gpu-mem for caching. But haven't needed to try iy.

 

Cheers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×