You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/05/10 01:47:59 UTC

[GitHub] [apisix] water1st opened a new issue #4207: request help: implement consul support

water1st opened a new issue #4207:
URL: https://github.com/apache/apisix/issues/4207


   ### Issue description
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):2.5
   * OS (cmd: `uname -a`):Linux 7c30c8872c4e 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):3.5.
   * apisix-dashboard docker image version: apache/apisix-dashboard:latest
   * apisix docker image version: apache/apisix:latest
   
   I hope apisix can load the upstream service nodes directly from consul not just key value,maybe i can write a script to implement this function, but i don't know the how to start , and i don't know the script how to work, i need help


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

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



[GitHub] [apisix] water1st commented on issue #4207: request help: implement consul support

Posted by GitBox <gi...@apache.org>.
water1st commented on issue #4207:
URL: https://github.com/apache/apisix/issues/4207#issuecomment-836221802


   consul has two functions, namely, service discovery and configuration(key value stroage). Service discovery is service instance to register the endpoint in consul,consul will check the health and kick out the abnormal endpoint offline. Another function is configuration(key value storage). At present, the consul support in apisix document is key value storage. If key value storage is used to realize service discovery, it will lead to problems such as service exception and no way to automatically offline


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

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



[GitHub] [apisix] water1st commented on issue #4207: request help: implement consul support

Posted by GitBox <gi...@apache.org>.
water1st commented on issue #4207:
URL: https://github.com/apache/apisix/issues/4207#issuecomment-836361716


   yes, i hope apisix consul support use this way, not just key value way, how can i implement that , maybe i need write some openrest script for implement,but i don't know how the openrest  work and i dont konw how the script work, can you offer some help?like offer some other discovery implement exmple.


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

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



[GitHub] [apisix] spacewander commented on issue #4207: request help: implement consul support

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4207:
URL: https://github.com/apache/apisix/issues/4207#issuecomment-837576358


   You can talk a look at https://github.com/apache/apisix/blob/master/apisix/discovery/consul_kv.lua


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

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



[GitHub] [apisix] spacewander commented on issue #4207: request help: implement consul support

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4207:
URL: https://github.com/apache/apisix/issues/4207#issuecomment-836336454


   Maybe you can take a look at Consul's API: https://www.consul.io/api-docs/catalog#list-nodes-for-service


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

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



[GitHub] [apisix] spacewander commented on issue #4207: request help: implement consul support

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4207:
URL: https://github.com/apache/apisix/issues/4207#issuecomment-836135998


   > load the upstream service nodes directly from consul not just key value
   
   What does this mean? Could you give an example?


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

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