Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1128

Omega get Alpha address from Spring Cloud Eureka

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: pack-0.4.0
    • Component/s: Saga
    • Labels:

      Description

      Omega 先通过 Spring Cloud Eureka 获取服务ID为 ${alpha.cluster.serviceId}的已经注册 Alpah 服务地址,使用此地址连接Alpha服务,如果获取失败则使用 ${alpha.cluster.address}连接

      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
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Zhangg Lei Zhang
                Reporter:
                Zhangg Lei Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h