- 论坛徽章:
- 0
|
有比squid更好的代理/缓存服务器软件吗?
刚才看了SQUID FAQ里面有一篇介绍如何用最少的停机时间来升级SQUID的文章,原文如下:
Can you tell me a good way to upgrade Squid with minimal downtime?
Here is a technique that was described by Radu Greab.
Start a second Squid server on an unused HTTP port (say 412. This instance of Squid probably doesn't need a large disk cache. When this second server has finished reloading the disk store, swap the http_port values in the two squid.conf files. Set the original Squid to use port 5128, and the second one to use 3128. Next, run ``squid -k reconfigure'' for both Squids. New requests will go to the second Squid, now on port 3128 and the first Squid will finish handling its current requests. After a few minutes, it should be safe to fully shut down the first Squid and upgrade it. Later you can simply repeat this process in reverse.
它用的办法就是起动两个squid,给每个设置不同的端口。看来用同时起动多个Squid来实现多CPU支持是可行的。但他们可不可以使用共同的磁盘缓存或内存缓存是个大问题。如果可以的话就非常理想了,写个脚本就可以实现多CPU支持了。我手头不太方便,谁有条件测试一下吗? |
|