[ https://issues.apache.org/jira/browse/TS-4707?focusedWorklogId=28737&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-28737 ]
ASF GitHub Bot logged work on TS-4707: -------------------------------------- Author: ASF GitHub Bot Created on: 11/Sep/16 01:24 Start Date: 11/Sep/16 01:24 Worklog Time Spent: 10m Work Description: Github user jpeach commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/834#discussion_r78286520 --- Diff: doc/developer-guide/api/functions/TSHttpTxnCacheParentSelectionUrlGet.en.rst --- @@ -0,0 +1,63 @@ +.. Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +.. include:: ../../../common.defs + +.. default-domain:: c + +TSHttpTxnCacheParentSelectionUrlSet +*********************************** + +Traffic Server Parent Selection consistent hash URL manipulation API. + +Synopsis +======== + +`#include <ts/ts.h>` + +.. function:: TSReturnCode TSHttpTxnCacheParentSelectionUrlSet(TSHttpTxn txnp, TSMBuffer bufp, TSMLoc offset) +.. function:: TSReturnCode TSHttpTxnCacheParentSelectionUrlGet(TSHttpTxn txnp, TSMBuffer bufp, TSMLoc offset) --- End diff -- This seems like a totally separate feature. Can we split this from this PR? Issue Time Tracking ------------------- Worklog Id: (was: 28737) Time Spent: 8h 10m (was: 8h) > 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 10m > 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)