clearing squid cache not working
hi guys,
my squid cache is 50% used and i tried clearing it with this commamds but all to no avail. This are the steps i took 1. squid -k shutdown 2. echo "" > /cache1/swap.state echo "" > /cache2/swap.state echo "" > /cache3/swap.state 3. squid -z 4. service squid start but to my greatest surprise after doing all these and i checked the cache partition it was still the same 50% used. pls i need help here. what am i doing wrong |
why do you need to? it's there as a cache, it's *meant* to be as full as possible...
service squid stop squid -z service squid start |
hi friend,
Thanks for ur response,from my personnel experience when the cache partition get fulled to 100% my machanies on the lan stop browsing until the cache is cleared. |
well you're clearly running your caches incorrectly. that sort of behaviour implies they are configured totally wrongly.. why are you even running them if you're happy to nuke your cache constantly??
|
Actually we provide internet services to corporate bodies and home users that is main reason for using the squid {cache} and a caching name server basically to reduce the lookup overhead and subsequent queries and also reduce bandwidth usage.Usually i have been using webmin to clear the cache and this has been working fine for me until recently when i decided to do it from the CLI.
|
you get paid to run caches set up like that?? wow... seriosuly if this is your trade, you need to get to the root cause not live in a world of workarounds and crude hacks.
|
emmm. amasing, i guess u must have known me from somewere that is why seem to be cracking me down, all i need is assistance and if you cant render that then let it be ok. After all we all start from somewere.
if you feel you are so good in using squid then put me through the proper way if you think i am using it wrongly. Thanks in Advance. |
i'm not crakcing down, i'm simply saying that if this is a commercial venture you are undertaking then you need to take the responsibiltiy and initiative to learn to do things properly. if a full cache is causing you problems then you need to actually investigate it. check the squid access and error logs, check free disk space etc... if your customers are paying for this as a working solution, i wouoldn't expect them to hang around paying you money for long. and also surely this is a hassle? this makes your life harder having to work around this stuff right?
|
i seem to be more confused at what you are saying, are you saying that squid cache should not be clear. pls make this clear to me.
secondly what should i watch out for in the access and error log let i forget to tell you i am not been paid for this i am only doing this cos i love Linux and i want to be more granded in it services and networking applications. Thanks for your Assistance. |
the squid cache should *never* be cleared otherwise it's pointless running it in the first place. it should have a content managment policy whereby if the alloted amount of diskspace is used up, the oldest unused cached items woudl be pushed out to make space for newer data.
|
if i may ask are you using squid, and if you are where is ur cache dir.
send me the config file of ur sqiud Thanks |
you need to actually read up on squid. someone elses config file is going to be fairly useless.
|
All times are GMT -5. The time now is 10:14 AM. |