You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Lei Zhang (JIRA)" <ji...@apache.org> on 2019/01/28 03:49:00 UTC

[jira] [Resolved] (SCB-1128) Omega get Alpha address from Spring Cloud Eureka

     [ https://issues.apache.org/jira/browse/SCB-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lei Zhang resolved SCB-1128.
----------------------------
    Resolution: Fixed

> Omega get Alpha address from Spring Cloud Eureka
> ------------------------------------------------
>
>                 Key: SCB-1128
>                 URL: https://issues.apache.org/jira/browse/SCB-1128
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Saga
>    Affects Versions: pack-0.4.0
>            Reporter: Lei Zhang
>            Assignee: Lei Zhang
>            Priority: Minor
>              Labels: spring-cloud
>             Fix For: saga-0.4.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Omega 先通过 Spring Cloud Eureka 获取服务ID为 ${alpha.cluster.serviceId}的已经注册 Alpah 服务地址,使用此地址连接Alpha服务,如果获取失败则使用 ${alpha.cluster.address}连接
> {code:java}
> alpha:
>   cluster:
>     address: localhost:8080
>     serviceId: servicecomb-alpha-server
>     register:
>       type: spring-cloud-eureka
> eureka:
>   client:
>     service-url:
>       defaultZone:http://127.0.0.1:8761/eureka
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)