1 / 10

Setup / Tune Proxy Server Squid for RTC

Setup / Tune Proxy Server Squid for RTC. Wayne Chiang 04/24/2013. What is squid. Popular open source proxy server. Caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. Reduces bandwidth and improves response times by caching and reusing frequently-requested web pages.

lamont
Télécharger la présentation

Setup / Tune Proxy Server Squid for RTC

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Setup / Tune Proxy Server Squid for RTC Wayne Chiang 04/24/2013

  2. What is squid • Popular open source proxy server. • Caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. • Reduces bandwidth and improves response times by caching and reusing frequently-requested web pages.

  3. Download and Build • http://www.squid-cache.org/Versions/ • Latest release 3.3.3 (released 3/12/2013) • I have built it on miles-lab (Linux 6.4) /home/mlsinst/squid/squid-3.3.3 • Installed on /home/mlsinst/squid/install333 • Proxy of https://satchmo.ottawa.ibm.com:9443 to https://miles-lab.ottawa.ibm.com:9843

  4. squid.conf cache_replacement_policy heap GDSF memory_replacement_policy heap GDSF logformat squid %{%b %d %Y %H:%M:%S}tl.%03tu %{%Z}tl %6tr %>a->%lp %Ss/%03>Hs %<st %rm %ru %un %Sh/%<A %mt access_log /home/mlsinst/squid/install333/var/logs/access.log squid #cache_store_log none cache_store_log /home/mlsinst/squid/install333/var/logs/store.log cache_peer satchmo.ottawa.ibm.com parent 9443 0 no-query originserver name=satchmoAccel ssl login=PROXYPASS sslflags=DONT_VERIFY_PEER acl satchmoport myport 9843 cache_peer_access satchmoAccel allow satchmoport coredump_dir /home/mlsinst/squid/install333/var/cache http_access allow all cachemgr_passwd disable all ssl_bump allow all sslproxy_cert_error allow all https_port 9843 cert=/home/mlsinst/squid/install333/etc/server.pem accel key=/home/mlsinst/squid/install333/etc/privkey.pem vhost refresh_pattern . 0 20% 4320 cache_dir aufs /home/mlsinst/squid/install333/var/cache 4096 256 256 buffered_logs on

  5. Run squid • Cd /home/mlsinst/squid/install333/sbin • Run './squid -z' to create the directory structure for the first time. • Run './squid' to start the proxy on Linux. • To stop the proxy, you can run "./squid -k shutdown". 

  6. access.log • TCP_HIT • A valid copy of the requested object was in the cache. • TCP_MISS • The requested object was not in the cache. • TCP_MEM_HIT • A valid copy of the requested object was in the cache and it was in memory, thus avoiding disk accesses.

  7. Tuning Squid • Set the "cache_mem" directive in squid.conf as large as possible • Set the "cache_dir" directive in squid.conf to a large value will increase the disk-based cache size for squid. • Turn off access logging if you do not require it for day to day use

  8. Reference • Setting up the Squid Caching Proxy w/SSL for RTC 2.0 • Using content caching proxies for Jazz Source Control

  9. Q&A

More Related