[ 
https://issues.apache.org/jira/browse/TS-4707?focusedWorklogId=28738&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-28738
 ]

ASF GitHub Bot logged work on TS-4707:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Sep/16 01:31
            Start Date: 11/Sep/16 01:31
    Worklog Time Spent: 10m 
      Work Description: Github user zwoop commented on a diff in the pull 
request:

    https://github.com/apache/trafficserver/pull/834#discussion_r78286562
  
    --- Diff: proxy/api/ts/ts.h ---
    @@ -1481,6 +1481,9 @@ tsapi TSReturnCode TSHttpTxnParentProxyGet(TSHttpTxn 
txnp, const char **hostname
      */
     tsapi void TSHttpTxnParentProxySet(TSHttpTxn txnp, const char *hostname, 
int port);
     
    +tsapi TSReturnCode TSHttpTxnParentSelectionUrlGet(TSHttpTxn txnp, 
TSMBuffer bufp, TSMLoc obj);
    +tsapi TSReturnCode TSHttpTxnParentSelectionUrlSet(TSHttpTxn txnp, 
TSMBuffer bufp, TSMLoc obj);
    --- End diff --
    
    There's definitely a real use case where you want to do parent selection on 
a different (normalized) URL that e.g. the pristine URL or cache key URL. Doing 
parent selection on the cache key URL would be a benefit (think of e.g. URLs 
with signatures, where you don't want the parent selection to include that 
signature).


Issue Time Tracking
-------------------

    Worklog Id:     (was: 28738)
    Time Spent: 8h 20m  (was: 8h 10m)

> Parent Consistent Hash Selection - add fname and maxdirs options.
> -----------------------------------------------------------------
>
>                 Key: TS-4707
>                 URL: https://issues.apache.org/jira/browse/TS-4707
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Parent Proxy
>            Reporter: Peter Chou
>            Assignee: Peter Chou
>             Fix For: 7.0.0
>
>          Time Spent: 8h 20m
>  Remaining Estimate: 0h
>
> This enhancement adds two options, "fname" and "maxdirs", which can be used 
> to exclude the file-name and some of the directories in the path. The 
> remaining portions of the path are then used as part of the hash computation 
> for selecting among multiple parent caches.
> For our usage, it was desirable from an operational perspective to direct all 
> components of particular sub-tree to a single parent cache (to simplify 
> trouble-shooting, pre-loading, etc.). This can be achieved by excluding the 
> query-string, file-name, and right-most portions of the path from the hash 
> computation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to