You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/08/06 08:19:14 UTC

[GitHub] [trafficserver] stackexpress-jawed opened a new issue #8216: The Prefetch Plugin is not working

stackexpress-jawed opened a new issue #8216:
URL: https://github.com/apache/trafficserver/issues/8216


   I am using Prefetch Plugin as per this doc - https://docs.trafficserver.apache.org/en/9.0.x/admin-guide/plugins/prefetch.en.html
   
   But It’ not prefetching the objects.
   Prefetch Pattern  - `--fetch-path-pattern=/(.*-)(\d+)(.*)/$1{$2+1}$3/`
   
   Prefetch Plugin Logs (confirms that plugin is loaded successfully)
   ```
   [Aug 05 03:23:53.171] [ET_NET 12] DIAG: (prefetch) prefetch/plugin.cc:450:contHandleFetch() event: TS_EVENT_HTTP_TXN_CLOSE (60012)
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:86:init() processing --fetch-policy=simple
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:86:init() processing --fetch-path-pattern=/(.*-)(\d+)(.*)/$1{$2+1}$3/
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/pattern.cc:331:compile() compiling pattern:'(.*-)(\d+)(.*)', replacement:'$1{$2+1}$3'
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:86:init() processing --fetch-count=3
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:160:finalize() front-end: false
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:161:finalize() exact match: false
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:162:finalize() API header name: X-AppleCDN-Prefetch
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:163:finalize() next object header name: X-AppleCDN-Prefetch-Next
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:164:finalize() fetch policy parameters: simple
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:165:finalize() fetch count: 3
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:166:finalize() fetch concurrently max: 0
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:167:finalize() replace host name:
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:168:finalize() name space: default
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/configs.cc:169:finalize() log name:
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/fetch.cc:123:BgFetchState() initialized lock
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/fetch.cc:130:BgFetchState() initialized lock
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/fetch_policy.cc:40:getInstance() getting 'simple' policy instance, params: (null)
   [Aug 05 03:26:50.162] traffic_server DIAG: (prefetch) prefetch/fetch_policy_simple.cc:29:init() initialized simple fetch policy
   ```
   
   Logs when accessing contents - `http://prefetch.cache.<mydomain>.com/texts/demo-1.txt`
   
   The following objects should be prefetched  (but unable to fetch following objects)
   - `http://prefetch.cache.<mydomain>.com/texts/demo-2.txt`
   - `http://prefetch.cache.<mydomain>.com/texts/demo-3.txt`
   - `http://prefetch.cache.<mydomain>.com/texts/demo-4.txt`
   
   ```
   [Aug 05 03:29:33.192] [ET_NET 13] DIAG: (prefetch) prefetch/plugin.cc:450:contHandleFetch() event: TS_EVENT_HTTP_POST_REMAP (60017)
   [Aug 05 03:29:33.192] [ET_NET 13] DIAG: (prefetch) prefetch/plugin.cc:272:appendCacheKey() cache key: /origin1.cdn.opspi.com/80/texts/demo-1.txt
   [Aug 05 03:29:33.192] [ET_NET 13] DEBUG: <MIME.cc:2670 (mime_field_block_describe)> (http) V: "http://prefetch.cache.<mydomain>.com/texts/", V_LEN: 43,
   [Aug 05 03:29:33.193] [ET_NET 13] DIAG: (prefetch) prefetch/plugin.cc:450:contHandleFetch() event: TS_EVENT_HTTP_CACHE_LOOKUP_COMPLETE (60015)
   Referer: http://prefetch.cache.<mydomain>.com/texts/
   Referer: http://prefetch.cache.<mydomain>.com/texts/
   Referer: http://prefetch.cache.<mydomain>.com/texts/
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] stackexpress-jawed commented on issue #8216: The Prefetch Plugin is not working

Posted by GitBox <gi...@apache.org>.
stackexpress-jawed commented on issue #8216:
URL: https://github.com/apache/trafficserver/issues/8216#issuecomment-1026550024


   No, not solved.. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] dandinw commented on issue #8216: The Prefetch Plugin is not working

Posted by GitBox <gi...@apache.org>.
dandinw commented on issue #8216:
URL: https://github.com/apache/trafficserver/issues/8216#issuecomment-985241369


   I have the same problem


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] dandinw commented on issue #8216: The Prefetch Plugin is not working

Posted by GitBox <gi...@apache.org>.
dandinw commented on issue #8216:
URL: https://github.com/apache/trafficserver/issues/8216#issuecomment-985242512


   Have you solved the above problems?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] stackexpress-jawed edited a comment on issue #8216: The Prefetch Plugin is not working

Posted by GitBox <gi...@apache.org>.
stackexpress-jawed edited a comment on issue #8216:
URL: https://github.com/apache/trafficserver/issues/8216#issuecomment-1026550024


    No, not solved.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org