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 <qiu...@foxmail.com> 于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"<coolsoul0...@gmail.com>;
> > Date: Thu, Mar 26, 2020 12:54 PM
> > To: "dev"<dev@apisix.apache.org>;
> > 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 <wenm...@apache.org> 于2020年3月26日周四 下午12:10写道:
>
> > that will be great, and you can also post the design here instead of PR
> >
> > ~Jarvis.Qiu <qiu...@foxmail.com>于2020年3月26日 周四上午11:57写道:
> >
> > > just&nbsp; Chinese version now.
> > >
> > >
> > > I need to spend some time translating it。
> > >
> > >
> > >
> > >
> > > ------------------&nbsp;原始邮件&nbsp;------------------
> > > 发件人:&nbsp;"Ming Wen"<wenm...@apache.org&gt;;
> > > 发送时间:&nbsp;2020年3月26日(星期四) 中午11:54
> > > 收件人:&nbsp;"dev"<dev@apisix.apache.org&gt;;
> > >
> > > 主题:&nbsp;Re: [DISCUSS] how about the design of APISIX eureka
> integration?
> > >
> > >
> > >
> > > Do you have the English version?
> > >
> > > Thanks,
> > > Ming Wen, Apache APISIX &amp; Apache SkyWalking
> > > Twitter: _WenMing
> > >
> > >
> > > ~Jarvis.Qiu <qiu...@foxmail.com&gt; 于2020年3月26日周四 上午11:53写道:
> > >
> > > &gt; the doc url is :&amp;nbsp;
> > > &gt;
> > > &gt;
> > > &gt;
> > > &gt;
> > >
> >
> https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md
> > > &gt
> > > <
> >
> https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md&gt
> > >
> > > ;
> > > &gt;
> > > &gt;
> > > &gt;
> > > &gt; ------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
> > > &gt; 发件人:&amp;nbsp;"Ming Wen"<wenm...@apache.org&amp;gt;;
> > > &gt; 发送时间:&amp;nbsp;2020年3月26日(星期四) 中午11:49
> > > &gt; 收件人:&amp;nbsp;"dev"<dev@apisix.apache.org&amp;gt;;
> > > &gt;
> > > &gt; 主题:&amp;nbsp;Re: [DISCUSS] how about the design of APISIX eureka
> > > integration?
> > > &gt;
> > > &gt;
> > > &gt;
> > > &gt; bad link, return 404.
> > > &gt;
> > > &gt; Thanks,
> > > &gt; Ming Wen, Apache APISIX &amp;amp; Apache SkyWalking
> > > &gt; Twitter: _WenMing
> > > &gt;
> > > &gt;
> > > &gt; ~Jarvis.Qiu <qiu...@foxmail.com&amp;gt; 于2020年3月26日周四 上午11:48写道:
> > > &gt;
> > > &gt; &amp;gt; Hi:
> > > &gt; &amp;gt;
> > > &gt; &amp;gt;
> > > &gt; &amp;gt; here is a doc :
> > > &gt; &amp;gt;
> > > &gt;
> > >
> >
> https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md&amp;amp;nbsp;for&amp;amp;nbsp;the
> > > &gt
> > > <
> >
> https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md&amp;amp;nbsp;for&amp;amp;nbsp;the&gt
> > >;
> > > &amp;gt
> > > &gt; <
> > >
> >
> https://github.com/apache/incubator-apisix/blob/170f4650f1faeb454c1ff69ea97fe1287710ec77/doc/discovery-cn.md&amp;amp;nbsp;for&amp;amp;nbsp;the&amp;gt&gt
> > > ;;
> > > &gt; design of APISIX eureka integration.&amp;amp;nbsp;
> > > &gt; &amp;gt;
> > > &gt; &amp;gt;
> > > &gt; &amp;gt; I hope you can give me some advice.
> > > &gt; &amp;gt;
> > > &gt; &amp;gt;
> > > &gt; &amp;gt; the PR:&amp;amp;nbsp;
> > > https://github.com/apache/incubator-apisix/pull/1281
> >
> > --
> > Thanks,
> > Ming Wen, Apache APISIX & Apache SkyWalking
> > Twitter: _WenMing
> >

Reply via email to