coolbeevip opened a new pull request #394: [SCB 1128] Omega discovers alpha 
service from eureka
URL: https://github.com/apache/servicecomb-pack/pull/394
 
 
   Get the access address of Alpah Server from Eureka Server
   Turn this feautre on by set alpha.cluster.register.type=spring-cloud-eureka
   First omega gets the Alpha address from Eureka with 
${alpha.cluster.serviceId}
   If omega can't get it in Eureka then use ${alpha.cluster.address}
   
   ### Add Dependencie
   ```xml
    <dependency>
         <groupId>org.apache.servicecomb.pack</groupId>
         <artifactId>omega-transport-resttemplate</artifactId>
         <version>0.4.0-SNAPSHOT</version>
    </dependency>
   ```
   ### Spring Boot application using the @EnableOmegaSpringCloud annotation
   ```
   @EnableOmegaSpringCloud
   ```
   
   ### Add Alpha configuration to the application.yml
   ```yaml
   alpha:
     cluster:
       address: localhost:8080
       serviceId: servicecomb-alpha-server
       register:
         type: spring-cloud-eureka
   omega:
     instance:
       instanceId: 
${spring.application.name}-${spring.cloud.client.hostname}-${server.port}
   ```
   
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
    - [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
    - [ ] Each commit in the pull request should have a meaningful subject line 
and body.
    - [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
    - [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
    - [ ] Run `mvn clean install` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
    - [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to