You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Sascha Klose <Sa...@cewecolor.de> on 2010/12/03 22:07:42 UTC

lazy http-answers from ATS?

Hi,

I used ATS as a reversy proxy only.

I've performance problems with ATS 2.1.3 und 2.1.4. HTTP-Connect from
client to ATS established immideatly, but if the client send the
GET-Request, ATS waits a few seconds to answer the request with the file
to download. I observe this in our rush hour time. I see it at 1000
active TCP-Connections (netstat -tn) or above with a throughput with
300-400 MBit/s or more. CPU-usage is something like 4 percent. disk i/o
something like 6 MB/s. With more TCP-Connections and more throughput,
ATS answer the HTTP GET-Request later and later. After the pause of a
few seconds the transfer speed of the downloaded file is normal.

Any ideas?

I've make some TCP-captures if you want it.

I've compiled ATS on a debian 5.x-system with this configure:

./configure \
        --prefix=/PRODUCTION/trafficserver-2.1.4-unstable \
        --exec-prefix=/PRODUCTION/trafficserver-2.1.4-unstable \
        --with-user=nobody \
        --with-group=nogroup \
        --disable-eventfd

My settings with ATS 2.1.4 changed from default:

/etc/sysctl.conf:
vm.swappiness = 0
vm.max_map_count = 4000000

records.conf:
CONFIG proxy.config.cache.ram_cache.size INT 17179869184
CONFIG proxy.config.cache.ram_cache_cutoff INT 1000000000
CONFIG proxy.config.log2.custom_logs_enabled INT 1
CONFIG proxy.config.log2.xml_logs_config INT 0
CONFIG proxy.config.log2.squid_log_enabled INT 0
CONFIG proxy.config.log2.extended2_log_enabled INT 1
CONFIG proxy.config.log2.extended2_log_is_ascii INT 1
CONFIG proxy.config.http.transaction_active_timeout_in INT 28800
cache.config:
url_regex=/download/health_check.html   action=never-cache
dest_domain=xx.xx.xx.xx              scheme=http     revalidate=1h

remap.config:
something like that:
map             http://something.com             http://xx.xx.xx.xx

storage.config:
/trafficserver-cache/2.1.4-unstable 250000000000

logs.config:
format:enabled:1:apache:% - - [%] "% % %" % % "%<{Referer}cqh>"
"%<{user-agent}cqh>" %:apache:ASCII:none


Bye,
Sascha



__________________________________________________________________________________________________
Mein persönliches Geschenk: das CEWE FOTOBUCH  

-Prämierte Qualität 
-Einfachste Gestaltung 
-Riesenauswahl  

Weihnachten steht vor der Tür. Suchen auch Sie nach einer ganz
persönlichen Geschenkidee? 
Wie wäre es mit einem individuellen CEWE FOTOBUCH für Ihre Lieben? 
Es verewigt die schönsten Erlebnisse auf ganz besondere Weise.
Garantiert das Richtige finden Sie hier: http://www.cewe-fotobuch.de

Erhältlich ab 7,95 €*.  

*Unverbindliche Preisempfehlung für ein CEWE FOTOBUCH Klein mit 26
Seiten gemäß Preisliste inkl. MwSt zzgl. Bearbeitungspauschale und evtl.
anfallender Versandkosten.  

JETZT NEU:
CEWE FOTOBUCH mit Hochglanz-Veredelung: Die glänzendste
Weihnachtsüberraschung des Jahres! 
Eine spezielle hochglänzende Beschichtung der Innenseiten lässt die
Fotos in Ihrem CEWE FOTOBUCH jetzt besonders erstrahlen. 
Erhältlich mit bis zu 154 Seiten für die Formate Groß, Groß Panorama und
XL. Mehr Informationen finden Sie auf www.cewe-fotobuch.de

Ganz schön persönlich! 

Fotokalender: 

- Viele Formate bis DIN A2 
- Attraktive Designs 
- Einfachste Gestaltung und Bestellung  

Weihnachtskarten: 

- Viele unterschiedliche Karten-Formate 
- Wunderschöne neue Designs 
- Einfachste Gestaltung und Bestellung  

Mehr Informationen finden Sie auf www.cewe.de.   




___________________________________________________________________ 
OHG mit Sitz in Oldenburg; Registergericht Oldenburg HR A 1548;
persönlich haftende geschäftsführende Gesellschafterin: 
Neumüller CeWe Color Stiftung, Oldenburg Vorstand: Dr. Rolf Hollander,
Vorsitzender; Harald H. Pirwitz, Felix Thalmann, Frank Zweigle, Dr.
Michael Fries; 
Geschäftsführer: Dr. Reiner Fageth, Thomas Grunau, Andreas F.L.
Heydemann, Dr. Olaf Holzkämper  

Persönlich haftende Gesellschafterin: CeWe Color Holding AG, Oldenburg,
Registergericht Oldenburg HRDr. Rolf Hollander, Vorsitzender; Andreas F.L. Heydemann, Dr. Reiner
Fageth, Dr. Olaf Holzkämper Aufsichtsrat: Hubert Rothärmel, Vorsitzender

Re: lazy http-answers from ATS?

Posted by Eric Balsa <er...@apache.org>.
Sascha,
  Do you have a sense of whether these objects are in cache (and are
cacheable) or are you connecting to origin for most of the requests?
How big are the objects you are serving? What is your cache hit-rate?
This might be something related to --disable-eventfd. Any chance you
could test that theory?

Are your origin's set to keep-alive?
https://issues.apache.org/jira/browse/TS-505 and
https://issues.apache.org/jira/browse/TS-506

You might want to try turning this on too:
CONFIG proxy.config.cache.enable_read_while_writer INT 1

and see if that improves things at all.

--Eric

2010/12/3 Sascha Klose <Sa...@cewecolor.de>
>
> Hi,
>
> I used ATS as a reversy proxy only.
>
> I've performance problems with ATS 2.1.3 und 2.1.4. HTTP-Connect from client to ATS established immideatly, but if the client send the GET-Request, ATS waits a few seconds to answer the request with the file to download. I observe this in our rush hour time. I see it at 1000 active TCP-Connections (netstat -tn) or above with a throughput with 300-400 MBit/s or more. CPU-usage is something like 4 percent. disk i/o something like 6 MB/s. With more TCP-Connections and more throughput, ATS answer the HTTP GET-Request later and later. After the pause of a few seconds the transfer speed of the downloaded file is normal.
>
> Any ideas?
>
> I've make some TCP-captures if you want it.
>
> I've compiled ATS on a debian 5.x-system with this configure:
>
> ./configure \
>         --prefix=/PRODUCTION/trafficserver-2.1.4-unstable \
>
>         --exec-prefix=/PRODUCTION/trafficserver-2.1.4-unstable \
>         --with-user=nobody \
>         --with-group=nogroup \
>         --disable-eventfd
>
> My settings with ATS 2.1.4 changed from default:
>
> /etc/sysctl.conf:
> vm.swappiness = 0
> vm.max_map_count = 4000000
>
> records.conf:
> CONFIG proxy.config.cache.ram_cache.size INT 17179869184
> CONFIG proxy.config.cache.ram_cache_cutoff INT 1000000000
>
> CONFIG proxy.config.log2.custom_logs_enabled INT 1
> CONFIG proxy.config.log2.xml_logs_config INT 0
> CONFIG proxy.config.log2.squid_log_enabled INT 0
>
> CONFIG proxy.config.log2.extended2_log_enabled INT 1
> CONFIG proxy.config.log2.extended2_log_is_ascii INT 1
> CONFIG proxy.config.http.transaction_active_timeout_in INT 28800
>
> cache.config:
>
> url_regex=/download/health_check.html   action=never-cache
>
> dest_domain=xx.xx.xx.xx              scheme=http     revalidate=1h
>
> remap.config:
> something like that:
> map             http://something.com             http://xx.xx.xx.xx
>
>
> storage.config:
> /trafficserver-cache/2.1.4-unstable 250000000000
>
> logs.config:
> format:enabled:1:apache:%<chi> - - [%<cqtn>] "%<cqhm> %<cquuc> %<cqhv>" %<pssc> %<pscl> "%<{Referer}cqh>" "%<{user-agent}cqh>" %<ttms>:apache:ASCII:none
>
>
>
> Bye,
> Sascha
>
>
> ______________________________________________________________________________________________________
> Mein persönliches Geschenk: das CEWE FOTOBUCH
>
> -Prämierte Qualität
> -Einfachste Gestaltung
> -Riesenauswahl
>
> Weihnachten steht vor der Tür. Suchen auch Sie nach einer ganz persönlichen Geschenkidee?
> Wie wäre es mit einem individuellen CEWE FOTOBUCH für Ihre Lieben?
> Es verewigt die schönsten Erlebnisse auf ganz besondere Weise. Garantiert das Richtige finden Sie hier: http://www.cewe-fotobuch.de
>
> Erhältlich ab 7,95€
>
> *Unverbindliche Preisempfehlung für ein CEWE FOTOBUCH Klein mit 26 Seiten gemäß Preisliste inkl. MwSt zzgl. Bearbeitungspauschalte und evtl. anfallender Versandkosten.
>
> JETZT NEU:
> CEWE FOTOBUCH mit Hochglanz-Veredelung: Die glänzendste Weihnachtsüberraschung des Jahres!
> Eine spezielle hochglänzende Beschichtung der Innenseiten lässt die Fotos in Ihrem CEWE FOTOBUCH jetzt besonders erstrahlen.
> Erhältlich mit bis zu 154 Seiten für die Formate Groß, Groß Panorama und XL. Mehr Informationen finden Sie auf www.cewe-fotobuch.de
>
> Ganz schön persönlich!
>
> Fotokalender:
>
> - Viele Formate bis DIN A2
> - Attraktive Designs
> - Einfachste Gestaltung und Bestellung
>
> Weihnachtskarten:
>
> - Viele unterschiedliche Karten-Formate
> - Wunderschöne neue Designs
> - Einfachste Gestaltung und Bestellung
>
> Mehr Informationen finden Sie auf www.cewe.de
>
>
>
>
>
> ______________________________________________________________________________________________
> OHG mit SItz in Oldenburg; Registergericht Oldenburg HR A 1548; persönlich haftende geschäftsführende Gesellschafterin: Neumüller CeWe Color Stiftung, Oldenburg Vorstand: Dr. Rolf Hollander, Vorsitzender; Harald H. Pirwitz, Felix Thalmann, Frank Zweigle, Dr. Michael Fries;
> Geschäftsführer: Dr. Reiner Fageth, Thomas Grunau, Andreas F.L. Heydemann, Dr. Olaf Holzkämper
>
>
> Persönlich haftende Gesellschafterin: CeWe Color Holding AG, Oldenburg, Registergericht Oldenburg HR B 2956 Vorstand:
> Dr. Rolf Hollander, Vorsitzender; Andreas F.L. Heydemann, Dr. Reiner Fageth, Dr. Olaf Holzkämper Aufsichtsrat: Hubert Rothärmel, Vorsitzender