Difference: ConfigureCernVMSquid (2 vs. 3)

Revision 32013-01-25 - rptaylor

Line: 1 to 1
 
META TOPICPARENT name="ConfigureCernVM"

This is how to configure a CernVM image to run as a squid server. Refer also to ConfigureCernVM.

CernVM v2.6 Batch Node Configuration

Xen Image Configuration

Do the following:

Changed:
<
<

Squid Configuration

>
>

Squid Cache

mkdir /mnt/scratch/squid
chown 23.23 /mnt/scratch/squid

Squid Settings

  In /etc/squid/squid.conf set:

Changed:
<
<
http_access allow (?)
>
>
acl RESTRICT_DEST dstdom_regex ^|cvmfs-stratum-one\.cern\.ch|cernvmfs\.gridpp\.rl\.ac\.uk|cvmfs\.racf\.bnl\.gov|cvmfs\.fnal\.gov|cvmfs02\.grid\.sinica\.edu\.tw|$ http_access allow all http_access deny RESTRICT_DEST
 
Changed:
<
<
cache_mem (?) MB
>
>
cache_mem 8192 MB
  maximum_object_size_in_memory 128 KB
Changed:
<
<
cache_dir ufs /var/spool/squid (?) 16 256 # Or somewhere else?
>
>
cache_dir ufs /scratch/squid 49000 16 256
 maximum_object_size 1048576 KB

#### logformat awstats %>a %ui %un [%{%d/%b/%Y:%H:%M:%S +0000}tl] "%rm %ru HTTP/%rv" %Hs %h"

Deleted:
<
<
cache_log /var/log/squid/cache.log
 #### cache_store_log none

strip_query_terms off

negative_ttl 1 minute

collapsed_forwarding on refresh_stale_hit 5 seconds

Changed:
<
<
cache_mgr (someone@somewhere.com)
>
>
# cache_mgr email@example.com
  umask 022

### could configure snmp_access

Added:
>
>

Squid VM Settings

The VM should have about 12 GB of RAM and 50 GB of scratch space.

 -- RyanTaylor - 2013-01-23 \ No newline at end of file
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback