coolbeevip opened a new pull request #431: [SCB-1200] Omega support discovery service consul URL: https://github.com/apache/servicecomb-pack/pull/431 add dependencies ```xml <dependency> <groupId>org.apache.servicecomb.pack</groupId> <artifactId>omega-spring-cloud-consul-starter</artifactId> </dependency> ``` add consul paramters ```yaml alpha: cluster: address: localhost:8080 serviceId: servicecomb-alpha-server register: type: consul omega: instance: instanceId: ${spring.application.name}-${spring.cloud.client.hostname}-${server.port} spring: cloud: consul: host: 0.0.0.0 port: 8500 discovery: serviceName: {spring.application.name} healthCheckPath: /health healthCheckInterval: 10s instanceId: ${spring.application.name}-${server.host}-${server.port} ``` You can see the following log ```bash 801 INFO [booking-service,,,] 13797 [main] o.a.s.p.omega.spring.OmegaSpringConfig.alphaClusterConfig : Discovery alpha cluster address 0.0.0.0:8080 from CONSUL ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to 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
