the doc updated: https://github.com/apache/incubator-apisix/pull/1281/commits/ecec0e767086410796325b22ed5c5bdbe3b6f86c#diff-1a9273257fe88b08ad10cb0aa15006d5
add support weight and how the instance data of eureka to upstream nodes of APISIX > ---Original--- > From: "suo zhang"<[email protected]> > Date: 2020/3/26 17:18:17 > To: "dev"<[email protected]>; > Subject: Re: [DISCUSS] how about the design of APISIX eureka integration? > can add this to the document. maybe should simplify it > and where is service named "APISIX-EUREKA"? you start extra application > server and register on the eureka? > maybe we should use register API to initial the service on eureka. > ~Jarvis.Qiu <[email protected]> ??2020??3??26?????? ????4:31?????? > Eureka REST API: > > https://github.com/Netflix/eureka/wiki/Eureka-REST-operations > > we just need `GET /eureka/apps`, and its output: > > { > "applications": { > "versions__delta": "1", > "apps__hashcode": "UP_1_", > "application": [ > { > "name": "APISIX-EUREKA", > "instance": [ > { > "instanceId": "192.168.1.100:8761", > "hostName": "192.168.1.100", > "app": "APISIX-EUREKA", > "ipAddr": "192.168.1.100", > "status": "UP", > "overriddenStatus": "UNKNOWN", > "port": { > "$": 8761, > "@enabled": "true" > }, > "securePort": { > "$": 443, > "@enabled": "false" > }, > "countryId": 1, > "dataCenterInfo": { > "@class": > "com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo", > "name": "MyOwn" > }, > "leaseInfo": { > "renewalIntervalInSecs": 30, > "durationInSecs": 90, > "registrationTimestamp": 1585205921502, > "lastRenewalTimestamp": 1585206281274, > "evictionTimestamp": 0, > "serviceUpTimestamp": 1585205921502 > }, > "metadata": { > "management.port": "8761" > }, > "homePageUrl": "http://192.168.1.100:8761/", > "statusPageUrl": " > http://192.168.1.100:8761/actuator/info", > "healthCheckUrl": " > http://192.168.1.100:8761/actuator/health", > "vipAddress": "apisix-eureka", > "secureVipAddress": "apisix-eureka", > "isCoordinatingDiscoveryServer": "true", > "lastUpdatedTimestamp": "1585205921502", > "lastDirtyTimestamp": "1585205921295", > "actionType": "ADDED" > } > ] > } > ] > } > } > > tansform to the nodes of upstream: > > { > "192.168.1.100:8761" = 1, > } > > others data (type, retries, timeout Etc.) of upstream are from > configuration. > > > > From: "suo zhang"<[email protected]>; > > Date: Thu, Mar 26, 2020 12:54 PM > > To: "dev"<[email protected]>; > > Subject: Re: [DISCUSS] how about the design of APISIX eureka integration? > > > > hello. maybe you should give a example and descripte how fetch the data > > > from eureka and tansform to the data in the upstream. > > > maybe you should show the APIs of eureka and their??s output. > > > > Ming Wen <[email protected]> ??2020??3??26?????? ????12:10?????? > > > that will be great, and you can also post the design here instead of PR > > > > ~Jarvis.Qiu <[email protected]>??2020??3??26?? ????????11:57?????? > > > > > just Chinese version now. > > > > > > > > > I need to spend some time translating it?? > > > > > > ------------------ ???????? ------------------ > > > ??????: "Ming Wen"<[email protected]; > > > ????????: 2020??3??26??(??????) ????11:54 > > > ??????: "dev"<[email protected]; > > > > > > ????: Re: [DISCUSS] how about the design of APISIX eureka > integration? > > > > > > > > > > > > Do you have the English version? > > > > > > Thanks, > > > Ming Wen, Apache APISIX & Apache SkyWalking > > > Twitter: _WenMing > > > > > > > > > ~Jarvis.Qiu <[email protected] ??2020??3??26?????? ????11:53?????? > > > > > > the doc url is : > https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md > > > > > > https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md > > > > > > > > > > > > > > > > > > ------------------ ???????? ------------------ > > > ??????: "Ming Wen"<[email protected]; > > > ????????: 2020??3??26??(??????) ????11:49 > > > ??????: "dev"<[email protected]; > > > > > > ????: Re: [DISCUSS] how about the design of APISIX eureka > > > integration? > > > > > > > > > > > > bad link, return 404. > > > > > > Thanks, > > > Ming Wen, Apache APISIX & Apache SkyWalking > > > Twitter: _WenMing > > > > > > > > > ~Jarvis.Qiu <[email protected] ??2020??3??26?????? ????11:48?????? > > > > > > Hi: > > > here is a doc > > > :https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.mdfor > > > the design of APISIX eureka integration. > > > I hope you can give me some advice. > > > the PR: https://github.com/apache/incubator-apisix/pull/1281
