[GitHub] [apisix] tzssangglass commented on issue #5706: request help: How to route according to the configuration of nacos metadata?

2021-12-07 Thread GitBox


tzssangglass commented on issue #5706:
URL: https://github.com/apache/apisix/issues/5706#issuecomment-987915215


   Maybe we can enhance nacos discovery to make it work. Would anyone like to 
give a detailed example? For example, from which interface of nacos do we get 
information? What information is being fetched?


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix] tzssangglass commented on issue #5706: request help: How to route according to the configuration of nacos metadata?

2021-12-06 Thread GitBox


tzssangglass commented on issue #5706:
URL: https://github.com/apache/apisix/issues/5706#issuecomment-987464045


   > 1. at what stage does the nacos metadata information get and where is it 
placed?
   
   You can see how the service registration information for nacos is obtained 
and how it is stored in nacos.lua. e.g. 
https://github.com/apache/apisix/blob/master/apisix/discovery/nacos/init.lua#L216-L230
   
   > 2. where to add require("apisix.balancer.your_balancer")?
   
   your_balancer is placed in the apisix/balancer folder
   
   > 3. what functions should I implement in my custom balancer?
   
   take a look at: 
https://github.com/apache/apisix/blob/master/apisix/balancer/roundrobin.lua
   
   BTW, I think this is a bit difficult, if you haven't had experience 
developing plugins before.


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [apisix] tzssangglass commented on issue #5706: request help: How to route according to the configuration of nacos metadata?

2021-12-05 Thread GitBox


tzssangglass commented on issue #5706:
URL: https://github.com/apache/apisix/issues/5706#issuecomment-986265060


   > I know that the traffic-split plugin can match routes at a certain level 
of granularity
   
   the ` traffic-split` plugin is not involved in route matching.
   
   Are you trying to select upstream based on the additional information 
obtained in nacos?


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org