I am reviewing a PR 1009 that adds a a new parent selection url that may be used to gnerate a has for use in consistent hashing selection of a parent.

Currently when using the consistent hash algorithm to select a parent, the path of the request url is used to generate a hash to select a parent. If qstring in parent record is configured to 'consider', then the path and query string are both used to generate the hash. Restricting parent selection to using only the request path and query string may not be ideal in all cases. There are enhancement requests such as TS-4025 and TS-4707 that describe how a plugin may be used to specify or override the url used to generate the hash parent selection uses to select a parent which may be more optimal in some cases.

PR 1009, https://github.com/apache/trafficserver/pull/1009/, would add the following API's:

TSReturnCode TSHttpTxnParentSelectionUrlGet(TSHttpTxn txnp, TSMBuffer bufp, TSMLoc obj)

    Will get the override url


TSReturnCode TSHttpTxnParentSelectionUrlSet(TSHttpTxn txnp, TSMBuffer bufp, TSMLoc obj)

    Will set the override url.


thanks

John Rushford


Reply via email to