I recently added few api calls allowing strategies to be accessed and set during a transaction. A new PR now also allows strategies to be accessed and assigned during the TSRemapNewInstance call to allow plugins to cache what strategies they might use and also to modify the remap.config behavior during plugin initialization.
Based on this PR (https://github.com/apache/trafficserver/pull/12593) these changes are: valid during TSRemapNewInstance: void const *TSRemapNextHopStrategyFind(const char *name); void const *TSRemapNextHopStrategyGet(); void TSRemapNextHopStrategySet(void const *strategy); valid during remap (the Find call is changed): void const *TSHttpTxnNextHopStrategyFind(TSHttpTxn txnp, const char *name); void const *TSHttpTxnNextHopStrategyGet(TSHttpTxn txnp); void TSHttpTxnNextHopStrategySet(TSHttpTxn txnp, void const *strategy); with utility function to get the strategy name: char const *TSNextHopStrategyNameGet(void const *strategy); Any feedback would be appreciated. Thanks! Brian Olsen
