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

Omega get Alpha address from Spring Cloud Eureka

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • pack-0.4.0
    • Saga

    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

              zhanglei Lei Zhang
              zhanglei Lei Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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