Tags:
tag this topic
create new tag
view all tags
%TOC% 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: * [[ConfigureCernVM#Network_tuning]] * [[ConfigureCernVM#SSH_keys]] * [[ConfigureCernVM#Filesystem]] ---+++ Squid Cache <verbatim> mkdir /mnt/scratch/squid chown 23.23 /mnt/scratch/squid </verbatim> ---+++ Squid Settings In =/etc/squid/squid.conf= set: <verbatim> 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 cache_mem 8192 MB maximum_object_size_in_memory 128 KB 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 %<st %Ss:%Sh %tr "%{X-Frontier-Id}>h" #### cache_store_log none strip_query_terms off negative_ttl 1 minute collapsed_forwarding on refresh_stale_hit 5 seconds # cache_mgr email@example.com umask 022 ### could configure snmp_access </verbatim> ---+ Squid VM Settings The VM should have about 12 GB of RAM and 50 GB of scratch space. -- Main.RyanTaylor - 2013-01-23
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
Topic revision: r3 - 2013-01-25
-
rptaylor
Home
Site map
Altair web
Belle2 web
HEPrc web
Main web
Sandbox web
TWiki web
HEPrc Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback