You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Jin <ji...@tower-research.com> on 2018/11/12 17:18:21 UTC
Re: ATS cache miss if backend service DNS name rotates.
It worked with pristine host header enabled. However, I am facing an issue
when trying to tspush contents to cache.
The setup has a set of ATS servers cache{01..04} with a DNS roundrobin name
called ats-g1. The backend Ceph storage rados gateway servers are
ceph{01..10} with another DNS roundrobin name ceph-rgw.
A file was pushed into cache using:
tspush -f /path_to/data_file -u http://cache01:8080/path_to/data_file
The file was in place normally and reported by http://{cache} as
http://cache01:8080/path_to/data_file.
When trying to retrieve this file, ATS reported that data_file was not
cached and fetched it from backend Ceph http endpoint. After this attempt,
the following curl shows cache was hit.
curl -x http://cache01:8080 http://ceph-rgw/path_to/data_file
After this, http://{cache} reported two cached data files from two different
source hosts:
http://cache01:8080/path_to/data_file
http://ceph-rgw/path_to/data_file
Is it possible to push data file to the cache server but using another host
name?
Thanks.
Jin.
--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/
Re: ATS cache miss if backend service DNS name rotates.
Posted by Jin <ji...@tower-research.com>.
Here is an attempt and failed with below message. Tried to add a header
"Content-Type:application/octet-stream" and saw the first Content-Type
changed but result same error.
1542119404.068 1001 10.40.25.49 ERR_INVALID_REQ/400 539 PUSH
http://ceph-rgw/path_to/data_file - NONE/- text/html
$ curl -v -s -x cache01:8080 -X PUSH --data-binary @/path_to/data_file
http://ceph-rgw/path_to/data_file
> PUSH http://ceph-rgw/path_to/data_file HTTP/1.1
> User-Agent: curl/7.29.0
> Host: ceph-rgw
> Accept: */*
> Proxy-Connection: Keep-Alive
> Content-Length: 584651892
> Content-Type: application/x-www-form-urlencoded
> Expect: 100-continue
>
* Done waiting for 100-continue
< HTTP/1.1 400 Malformed Pushed Response Header
< Date: Tue, 13 Nov 2018 14:38:29 GMT
* HTTP/1.1 proxy connection set close!
< Proxy-Connection: close
< Via: http/1.1 cache01 (ApacheTrafficServer/8.0.0 [uEc s f p eH:t cC p s ])
< Server: ATS/8.0.0
< Cache-Control: no-store
< Content-Type: text/html
< Content-Language: en
< Content-Length: 207
<
<HTML>
<HEAD>
<TITLE>Error</TITLE>
</HEAD>
<BODY BGCOLOR="white" FGCOLOR="black">
Error
<HR>
Description: Could not process this request.
<HR>
</BODY>
* we are done reading and this is set to close, stop send
* Closing connection 0
Thank you.
Jin.
--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/
Re: ATS cache miss if backend service DNS name rotates.
Posted by Miles Libbey <ml...@apache.org>.
Could you try
curl -x cache01:8080 -s -o /dev/null -X PUSH --data-binary
@/path_to/data_file http://ceph-rgw/the/url/users/would/hit
On Tue, Nov 13, 2018 at 2:18 AM Jin <ji...@tower-research.com> wrote:
>
> It worked with pristine host header enabled. However, I am facing an issue
> when trying to tspush contents to cache.
>
> The setup has a set of ATS servers cache{01..04} with a DNS roundrobin name
> called ats-g1. The backend Ceph storage rados gateway servers are
> ceph{01..10} with another DNS roundrobin name ceph-rgw.
>
> A file was pushed into cache using:
> tspush -f /path_to/data_file -u http://cache01:8080/path_to/data_file
>
> The file was in place normally and reported by http://{cache} as
> http://cache01:8080/path_to/data_file.
>
> When trying to retrieve this file, ATS reported that data_file was not
> cached and fetched it from backend Ceph http endpoint. After this attempt,
> the following curl shows cache was hit.
> curl -x http://cache01:8080 http://ceph-rgw/path_to/data_file
>
> After this, http://{cache} reported two cached data files from two different
> source hosts:
> http://cache01:8080/path_to/data_file
> http://ceph-rgw/path_to/data_file
>
> Is it possible to push data file to the cache server but using another host
> name?
>
> Thanks.
>
> Jin.
>
>
>
>
> --
> Sent from: http://apache-traffic-server.24303.n7.nabble.com/