with reference to the post: 
http://apache-traffic-server.24303.n7.nabble.com/TrafficServer-6-keep-alive-connection-retries-and-502-Server-Hangups-td1818.html

So I tried disabling and then re-enabling the below now the website is 
restored. will update if this happened again.

proxy.config.http.keep_alive_enabled_out
proxy.config.http.keep_alive_post_out


--
Thanks
F.
irc: zoot

From: Muhammad Faisal 
Sent: Saturday, February 13, 2016 12:20 AM
To: [email protected] 
Subject: Re: Question on ATS Performance

logs are showing this:

1455304579.344 0 113.203.232.25 TCP_MEM_HIT/520 6296 GET 
http://propakistani.pk/ - NONE/- text/html
1455304579.559 0 113.203.232.25 TCP_IMS_HIT/304 234 GET 
http://propakistani.pk/cdn-cgi/styles/cf.errors.css - NONE/- -
1455304579.583 0 113.203.232.25 TCP_IMS_HIT/304 236 GET 
http://propakistani.pk/cdn-cgi/scripts/cf.common.js - NONE/- -
1455304579.583 0 113.203.232.25 TCP_IMS_HIT/304 236 GET 
http://propakistani.pk/cdn-cgi/scripts/zepto.min.js - NONE/- -
1455304579.993 0 113.203.232.25 TCP_IMS_HIT/304 234 GET 
http://propakistani.pk/cdn-cgi/styles/fonts/opensans-300.woff - NONE/- -
1455304580.008 0 113.203.232.25 TCP_IMS_HIT/304 232 GET 
http://propakistani.pk/cdn-cgi/images/error_icons.png - NONE/- -
1455304580.018 0 113.203.232.25 TCP_IMS_HIT/304 234 GET 
http://propakistani.pk/cdn-cgi/styles/fonts/opensans-400.woff - NONE/- -
1455304580.028 0 113.203.232.25 TCP_IMS_HIT/304 234 GET 
http://propakistani.pk/cdn-cgi/styles/fonts/opensans-600.woff - NONE/- -
1455304580.138 0 113.203.232.25 TCP_MEM_HIT/520 6296 GET 
http://propakistani.pk/ - NONE/- text/ht

--
Thanks
F.
irc: zoot

From: Faisal 
Sent: Friday, February 12, 2016 11:53 PM
To: [email protected] 
Subject: Re: Question on ATS Performance

Hi James,
This is the actual error:



--
Thanks
F.
irc: zoot

From: Muhammad Faisal 
Sent: Friday, February 12, 2016 10:34 PM
To: [email protected] 
Subject: Re: Question on ATS Performance

Hello,
Everything was working perfectly fine on ATS I did some changes (modified DNS 
address, Cache.config and background_fetch.config) and restarted ATS server, 
after that i start getting cloud flare page showing host is down on a specific 
website and trying to access behind ATS server. I have verified the website is 
accessible normally when accessing directly.

I have added the following in the cache.config and background_fetch.config 
today:

Cache.config Modifications:
url_regex=(.*)\.(gif|jpe?g|png|css|js|txt|htc|ico|flv|mp4|m4v|wmv|mov|mpg|m3u8|ogv|webm|mp3|MP2T|wav|ogg|oga|swf|doc|docx|xls|xlsx|ppt|pptx|pdf|eot|ttf|otf|woff|mp(e?g|a|e|1|2|3|4)|ts|mp2t|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rar|rm|r(a|p)m|snd|vob|rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|3gp|7z|ace|asx|avi|bin|cab|dat|deb|divx|dvr-s)$
 scheme=http ttl-in-cache=60d
url_regex=(.*)\.(gif|jpe?g|png|css|js|txt|htc|ico|flv|mp4|m4v|wmv|mov|mpg|m3u8|ogv|webm|mp3|MP2T|wav|ogg|oga|swf|doc|docx|xls|xlsx|ppt|pptx|pdf|eot|ttf|otf|woff|mp(e?g|a|e|1|2|3|4)|ts|mp2t|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rar|rm|r(a|p)m|snd|vob|rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|3gp|7z|ace|asx|avi|bin|cab|dat|deb|divx|dvr-ms)$
 scheme=http revalidate=1d
url_regex=(.*)\.(gif|jpe?g|png|css|js|txt|htc|ico|flv|mp4|m4v|wmv|mov|mpg|m3u8|ogv|webm|mp3|MP2T|wav|ogg|oga|swf|doc|docx|xls|xlsx|ppt|pptx|pdf|eot|ttf|otf|woff|mp(e?g|a|e|1|2|3|4)|ts|mp2t|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rar|rm|r(a|p)m|snd|vob|rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|3gp|7z|ace|asx|avi|bin|cab|dat|deb|divx|dvr-ms)$
 scheme=http action=ignore-no-cache

Background_fetch.config Modification:
include Content-Type video/mp2t
include Content-Type application/x-mpegURL

Origin Headers Behind ATS:
HTTP/1.1 200 OK
Age: 13698
Cache-Control: public, max-age=7200
CF-RAY: 2738b7e103c428f0-DXB
Content-Encoding: gzip
Content-Length: 14649
Content-Type: application/font-woff
Date: Fri, 12 Feb 2016 17:29:32 GMT
ETag: W/"56bb9085-3dfc"
Expires: Fri, 12 Feb 2016 15:42:42 GMT
Last-Modified: Wed, 10 Feb 2016 19:33:25 GMT
Server: ATS/6.1.1
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN

and this one:

HTTP/1.1 520 Origin Error
Age: 13734
CF-RAY: 2738b76b50be28ea-DXB
Connection: keep-alive
Content-Length: 6036
Content-Type: text/html; charset=UTF-8
Date: Fri, 12 Feb 2016 13:42:34 GMT
Pragma: no-cache
Server: ATS/6.1.1
X-Frame-Options: SAMEORIGIN



On 2/10/2016 6:52 PM, Muhammad Faisal wrote:

  While searching trafficserver mail archives i came accross a thread by "Luís 
Antonio Pereira " in which he has mentioned regexp for caching objects. To give 
it a try i have lowered the validity period to 60d and used the same in my 
deployment. What I'm trying is to make quick page load at user end. Let see how 
it performs now.

  
url_regex=(.*)\.(js|gif|jpg|jpeg|png|css|ico|bmp|mp3|mp4|avi|mov|swf|flv|pdf|ts)$
 scheme=http ttl-in-cache=60d
  
url_regex=(.*)\.(js|gif|jpg|jpeg|png|css|ico|bmp|mp3|mp4|avi|mov|swf|flv|pdf|ts)$
 scheme=http revalidate=2d
  
url_regex=(.*)\.(js|gif|jpg|jpeg|png|css|ico|bmp|mp3|mp4|avi|mov|swf|flv|pdf|ts)$
 scheme=http action=ignore-no-cache
  
url_regex=^http://%28/[a-z][0-9]\.){0,1}(profile|sphotos|photos-[a-z])\.ak\.fbcdn\.net/hp(rofile|hotos)-ak-
 scheme=http ttl-in-cache=360d
  
url_regex=^http://%28/[a-z][0-9]\.){0,1}(profile|sphotos|photos-[a-z])\.ak\.fbcdn\.net/hp(rofile|hotos)-ak-
 scheme=http revalidate=8h
  
url_regex=^http://%28/[a-z][0-9]\.){0,1}(profile|sphotos|photos-[a-z])\.ak\.fbcdn\.net/hp(rofile|hotos)-ak-
 scheme=http action=ignore-no-cache
  
url_regex=^http://[^/]*\.(youtube|googlevideo).com/(get_video|videoplayback|videodownload)\?
 scheme=http ttl-in-cache=360d
  
url_regex=^http://[^/]*\.(youtube|googlevideo).com/(get_video|videoplayback|videodownload)\?
 scheme=http revalidate=8h
  
url_regex=^http://[^/]*\.(youtube|googlevideo).com/(get_video|videoplayback|videodownload)\?
 scheme=http action=ignore-no-cache
  url_regex=^http://[a-z]{1,}\.dl\.sourceforge\.net\/project/ scheme=http 
ttl-in-cache=60d
  url_regex=^http://[a-z]{1,}\.dl\.sourceforge\.net\/project/ scheme=http 
revalidate=8h
  url_regex=^http://[a-z]{1,}\.dl\.sourceforge\.net\/project/ scheme=http 
action=ignore-no-cache
  url_regex=^http://(.*)\.windowsupdate.com/.*\.(cab|exe|dll|ms) scheme=http 
ttl-in-cache=60d
  url_regex=^http://(.*)\.windowsupdate.com/.*\.(cab|exe|dll|ms) scheme=http 
revalidate=8h
  url_regex=^http://(.*)\.windowsupdate.com/.*\.(cab|exe|dll|ms) scheme=http 
action=ignore-no-cache
  url_regex=^http://(.*)\.microsoft.com/.*\.(cab|exe|dll|ms) scheme=http 
ttl-in-cache=60d
  url_regex=^http://(.*)\.microsoft.com/.*\.(cab|exe|dll|ms) scheme=http 
revalidate=8h
  url_regex=^http://(.*)\.microsoft.com/.*\.(cab|exe|dll|ms) scheme=http 
action=ignore-no-cache
  url_regex=^http://[^/]*\.apersonal.avira-update.com/.*\.(cab|exe|dll|msi|gz) 
scheme=http ttl-in-cache=60d
  url_regex=^http://[^/]*\.apersonal.avira-update.com/.*\.(cab|exe|dll|msi|gz) 
scheme=http revalidate=8h
  url_regex=^http://[^/]*\.apersonal.avira-update.com/.*\.(cab|exe|dll|msi|gz) 
scheme=http action=ignore-no-cache
  
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
 scheme=http ttl-in-cache=60d
  
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
 scheme=http revalidate=8h
  
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
 scheme=http action=ignore-no-cache
  
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
 scheme=http ttl-in-cache=60d
  
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
 scheme=http revalidate=8h
  
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
 scheme=http action=ignore-no-cache
  url_regex=^http://[^/]*\.avast.com/.*\.(vpu|cab|stamp|exe) scheme=http 
ttl-in-cache=360d
  url_regex=^http://[^/]*\.avast.com/.*\.(vpu|cab|stamp|exe) scheme=http 
revalidate=8h
  url_regex=^http://[^/]*\.avast.com/.*\.(vpu|cab|stamp|exe) scheme=http 
action=ignore-no-cache
  url_regex=^http://[^/]*\.avg.com/.*\.(bin|gz) scheme=http ttl-in-cache=60d
  url_regex=^http://[^/]*\.avg.com/.*\.(bin|gz) scheme=http revalidate=8h
  url_regex=^http://[^/]*\.avg.com/.*\.(bin|gz) scheme=http 
action=ignore-no-cache
  url_regex=^http://[^/]*\.avgate.net/.*\.(bin|gz) scheme=http ttl-in-cache=60d
  url_regex=^http://[^/]*\.avgate.net/.*\.(bin|gz) scheme=http revalidate=8h
  url_regex=^http://[^/]*\.avgate.net/.*\.(bin|gz) scheme=http 
action=ignore-no-cache
  
url_regex=^http://[^/]*\.kaspersky\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
 scheme=http ttl-in-cache=60d
  
url_regex=^http://[^/]*\.kaspersky\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
 scheme=http revalidate=8h
  
url_regex=^http://[^/]*\.kaspersky\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
 scheme=http action=ignore-no-cache
  
url_regex=^http://[^/]*\.kaspersky-labs\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
 scheme=http ttl-in-cache=60d
  
url_regex=^http://[^/]*\.kaspersky-labs\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
 scheme=http revalidate=8h
  
url_regex=^http://[^/]*\.kaspersky-labs\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
 scheme=http action=ignore-no-cache

  Thanks
  F.
  IRC: zoot



  On 2/10/2016 3:03 PM, Muhammad Faisal wrote:

    Agreed. Will start from focusing on static content first. 

    On 2/10/2016 3:01 PM, Brian Geffon wrote: 

      I would just start by ensuring the static content you care about is 
actually cached, optimize from there. 






Reply via email to