Faysal Banna created TS-2730:
--------------------------------
Summary: proxy.config.cache.enable_read_while_writer
Key: TS-2730
URL: https://issues.apache.org/jira/browse/TS-2730
Project: Traffic Server
Issue Type: Bug
Components: Cache, Configuration
Reporter: Faysal Banna
Hi Guys
ATS version 4.2.0
I have enabled proxy.config.cache.enable_read_while_writer and made sure the
background fill threshold and timeout set to proper values and did some tests
that will show u here below :
two terminals opened:
On terminal 1 :
wget -S -c --delete-after 'http://www.golang-book.com/assets/pdf/gobook.pdf'
--2014-04-18 15:41:47-- http://www.golang-book.com/assets/pdf/gobook.pdf
Connecting to 212.98.152.163:8080... connected.
Proxy request sent, awaiting response...
HTTP/1.1 200 OK
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: application/pdf
Accept-Ranges: bytes
Date: Fri, 18 Apr 2014 12:37:46 GMT
Server: ATS/4.2.0
Alternate-Protocol: 80:quic,80:quic
Content-Length: 2893557
Age: 28758
Proxy-Connection: keep-alive
Via: http/1.1 UB1-UTU3-170413 (ApacheTrafficServer/4.2.0 [uScMsSfWpSeN:t cCMi
p sS])
Length: 2893557 (2.8M) [application/pdf]
Saving to: ‘gobook.pdf’
20% [=========================>
] 602,463 18.7KB/s eta
2m 5s
after waiting couple of seconds i opened terminal 2 and issued :
wget -S -c --delete-after 'http://www.golang-book.com/assets/pdf/gobook.pdf'
--2014-04-18 15:41:59-- http://www.golang-book.com/assets/pdf/gobook.pdf
Connecting to 212.98.152.163:8080... connected.
Proxy request sent, awaiting response...
HTTP/1.1 200 OK
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: application/pdf
Accept-Ranges: bytes
Date: Fri, 18 Apr 2014 12:37:46 GMT
Server: ATS/4.2.0
Alternate-Protocol: 80:quic,80:quic
Content-Length: 2893557
Age: 28772
Proxy-Connection: keep-alive
Via: http/1.1 UB1-UTU3-170413 (ApacheTrafficServer/4.2.0 [uScMsSf pSeN:t cCMi
p sS])
Length: 2893557 (2.8M) [application/pdf]
Saving to: ‘gobook.pdf’
11% [=============>
] 325,864 18.5KB/s eta
2m 53s
and thus as it shows the read_while_writer is not working as it is supposed the
least i should get the first already downloaded chunks in network speed and
that didn't happen.
second thing is that and i confirm that after aborting both terminals before
any of them would even complete and waited couple of moments i issued on a new
terminal the same request
wget -S -c --delete-after 'http://www.golang-book.com/assets/pdf/gobook.pdf'
--2014-04-18 15:52:08-- http://www.golang-book.com/assets/pdf/gobook.pdf
Connecting to 212.98.152.163:8080... connected.
Proxy request sent, awaiting response...
HTTP/1.1 206 Partial Content
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: application/pdf
Accept-Ranges: bytes
Date: Fri, 18 Apr 2014 12:37:46 GMT
Server: ATS/4.2.0
Alternate-Protocol: 80:quic,80:quic
Content-Length: 2566130
Age: 29379
Content-Range: bytes 327427-2893556/2893557
Proxy-Connection: keep-alive
Via: http/1.1 UB1-UTU3-170413 (ApacheTrafficServer/4.2.0 [uScHs f p eN:t cCHi
p s ])
Length: 2893557 (2.8M), 2566130 (2.4M) remaining [application/pdf]
Saving to: ‘gobook.pdf’
100%[++++++++++++++================================================================================================================>]
2,893,557 2.03MB/s in 1.2s
2014-04-18 15:52:09 (2.03 MB/s) - ‘gobook.pdf’ saved [2893557/2893557]
which means that the background fill works as intended but read while_writer
does not at all.
much regards
i am going to install 4.2.1 and see if the same behavior happens again.
--
This message was sent by Atlassian JIRA
(v6.2#6252)