spacewander commented on issue #7042: URL: https://github.com/apache/apisix/issues/7042#issuecomment-1126930010
> Why in version 2.X, the lrucache key uses the upstream address? It is because we add upstream discovery so the same upstream id may have different upstream addresses. Some solutions to this problem (sorted by my favorite): 1. dividing the weight by a GCD before using it. Hoping the weights are not prime. 2. use a different chash algorithm, like Nginx's / Maglev / AnchorHash 3. don't use LRU for the upstream objects. This requires refactor at high risk. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
