You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/04/20 01:57:08 UTC
[GitHub] [servicecomb-java-chassis] xiaohanfeidao opened a new issue #2354: 脱离注册中心是否可以使用serviceComb作为服务应用?
xiaohanfeidao opened a new issue #2354:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2354
脱离注册中心是否可以使用serviceComb作为服务应用?
--
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:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] wujimin commented on issue #2354: 脱离注册中心是否可以使用serviceComb作为服务应用?
Posted by GitBox <gi...@apache.org>.
wujimin commented on issue #2354:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2354#issuecomment-822923870
试试zero-config
zero-config支持多种工作模式:
* local
单机模式,没有实例动态发现能力
所有的服务调用,都使用第三方服务机制处理
* multicast
使用UDP多播发送微服务注册信息
适用于所有微服务实例都在同一个子网内的场景
每个微服务实例都相当于是一个服务中心实例
```yaml
servicecomb:
service:
zero-config:
enable: true
mode: multicast
heartbeat:
interval: 30s
lost-times: 3
pull-interval: 3s
multicast:
address: 0.0.0.0:6666
group: 225.6.7.8
```
--
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:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] wujimin commented on issue #2354: 脱离注册中心是否可以使用serviceComb作为服务应用?
Posted by GitBox <gi...@apache.org>.
wujimin commented on issue #2354:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2354#issuecomment-822924340
需要引入依赖
```xml
<dependency>
<groupId>org.apache.servicecomb</groupId>
<artifactId>registry-zero-config</artifactId>
</dependency>
```
--
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:
users@infra.apache.org