[squid-users] Squid conf for live video stream
Hi all, i configured squid transparent for caching live video stream. I need to cache the live video objects from my particular domain. But mostly url's vary from request to request.Because VOD service. So i configured the rewrite program. video object size is 5 Mb to 100Mb... I need to tune the squid configuration for their video needs. This is my current squid conf. http_port 80 transparent icp_port 0 htcp_port 0 acl apache rep_header Server ^Apache broken_vary_encoding allow apache cache_mem 1024 MB minimum_object_size 0 KB maximum_object_size 1024 MB maximum_object_size_in_memory 512 MB cache_replacement_policy lru memory_replacement_policy lru cache_dir aufs /var/cache/squid 40960 16 256 logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %%mt access_log /var/log/squid/access.log squid cache_log /var/log/squid/cache.log cache_store_log /var/log/squid/store.log pid_filename /var/run/squid.pid request_header_max_size 256 KB collapsed_forwarding on quick_abort_min -1 KB range_offset_limit -1 MB url_rewrite_program /usr/local/bin/ralph-rewrite.pl url_rewrite_children 200 refresh_pattern . 0 20% 4320ignore-reload negative_ttl 2 seconds connect_timeout 15 seconds client_persistent_connections on persistent_request_timeout 15 seconds pconn_timeout 15 seconds read_timeout 15 seconds request_timeout 15 seconds acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 acl Safe_ports port 488 acl Safe_ports port 591 acl Safe_ports port 777 acl Safe_ports port 901 acl purge method PURGE acl CONNECT method CONNECT acl mirror url_regex /mirror/ url_rewrite_access allow all snmp_access allow snmppublic localhost http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost http_access allow mirror http_access deny all http_reply_access allow all always_direct allow all icp_access allow all visible_hostname localhost forwarded_for off header_access X-Cache-Lookup deny all header_access Age deny all snmp_port 3401 coredump_dir /var/cache/squid client_lifetime 4 hours store_avg_object_size 2 MB Thanks Vivek N. You are invited to Get a Free AOL Email ID. - http://webmail.aol.in
Re: [squid-users] Squid conf for live video stream
[EMAIL PROTECTED] wrote: Hi all, i configured squid transparent for caching live video stream. I need to cache the live video objects from my particular domain. But mostly url's vary from request to request.Because VOD service. So... you are running a service which has explicitly been designed in a way that makes it non-cacheable and you need to cache it? This sounds very familiar. You need to fix the VOD implementation to use cacheable URI. Or scream at the vendors who wrote it so they fix it. Amos So i configured the rewrite program. video object size is 5 Mb to 100Mb... I need to tune the squid configuration for their video needs. This is my current squid conf. http_port 80 transparent icp_port 0 htcp_port 0 acl apache rep_header Server ^Apache broken_vary_encoding allow apache cache_mem 1024 MB minimum_object_size 0 KB maximum_object_size 1024 MB maximum_object_size_in_memory 512 MB cache_replacement_policy lru memory_replacement_policy lru cache_dir aufs /var/cache/squid 40960 16 256 logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %a %Ss/%03Hs %http://webmail.aol.in -- Please use Squid 2.7.STABLE4 or 3.0.STABLE9
Re: [squid-users] Squid conf for live video stream
On mån, 2008-10-20 at 19:13 +1300, Amos Jeffries wrote: > You need to fix the VOD implementation to use cacheable URI. Or scream > at the vendors who wrote it so they fix it. And most won't fix it as they regard this cache unfriendlyness as one of the premium features of their system. Regards Henrik signature.asc Description: This is a digitally signed message part
Re: [squid-users] Squid conf for live video stream
Thanks Henrik, All the videos are cachable. Because the video's are maintained by us. But the origin server not near by us. So i try to cache and serve to customers quickly. And also the objects are cached by squid. But performance is very slow. so i need some tips to improve the performance. On mån, 2008-10-20 at 19:13 +1300, Amos Jeffries wrote: You need to fix the VOD implementation to use cacheable URI. Or scream at the vendors who wrote it so they fix it. And most won't fix it as they regard this cache unfriendlyness as one of the premium features of their system. Regards Henrik __ __ You are invited to Get a Free AOL Email ID. - http://webmail.aol.in
Re: [squid-users] Squid conf for live video stream
On mån, 2008-10-20 at 06:20 -0400, [EMAIL PROTECTED] wrote: > All the videos are cachable. Because the video's are maintained by us. > > But the origin server not near by us. So i try to cache and serve to > customers quickly. So fix the origin. Alternatively you can play games with a url rewriter to canonialize the requested URLs. The easiest way to acheive what you want is to NOT use a video streaming server for distributing the videos. Instead store the videos as plain files on an HTTP server. Sorry for being a bit dense in the response. If you want more precise answers then provide more information on what requests & responses look like, and why. Regards Henrik signature.asc Description: This is a digitally signed message part