chengzhycn opened a new issue, #12664:
URL: https://github.com/apache/apisix/issues/12664

   ### Description
   
   Hi, all. I encountered a case where two nodes with the same ip:port were 
added to a upstream, and I need to load balance them. However, when I reviewed 
balancer.lua, I noticed that the balancer uses the ip:port as the key to 
construct the up_nodes. Consequently, the latter node overrides the previous 
node even though these nodes have different domain names. Is this a bug or a 
considered design?What is the consideration behind this?
   
   https://github.com/apache/apisix/blob/master/apisix/balancer.lua#L111
   
   https://github.com/apache/apisix/blob/master/apisix/balancer.lua#L59
   
   Thanks!
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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]

Reply via email to