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
   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-spring-cloud-starter</artifactId>
         <version>0.4.0-SNAPSHOT</version>
    </dependency>
   ```
   ### About AutoConfiguration
   Deprecated @EnableOmega
   Use configuration omega.enabled, default is true
   
   ### Add Alpha configuration to the application.yml
   
   * Alpha Server ${spring.application.name} registered in Eureka
   alpha.cluster.serviceId=servicecomb-alpha-server
   
   * Define how to get the Alpha Cluster Address
   alpha.cluster.register.type=spring-cloud
   When the value is spring-cloud, it is get from Eureka. otherwise use 
${alpha.cluster.address}
   
   
   ```yaml
   alpha:
     cluster:
       address: localhost:8080
       serviceId: servicecomb-alpha-server
       register:
         type: spring-cloud
   omega:
     instance:
       instanceId: 
${spring.application.name}-${spring.cloud.client.hostname}-${server.port}
   ```
   ### Add Eureka Client configuration to the application.yml
   ```yaml
   eureka:
     client:
       service-url:
         defaultZone: http://127.0.0.1:8761/eureka
   ```
   
   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