You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/07/23 08:25:44 UTC
[GitHub] [shardingsphere] chenjia123 opened a new issue #11470: Why is the NACOS config center implemented but no registry?
chenjia123 opened a new issue #11470:
URL: https://github.com/apache/shardingsphere/issues/11470
## Env: Sharding-proxy 4.1.1
## Aim: Try using nacos instead of ZK
I use the following configuration file:
```yaml
# server.yaml
orchestration:
orchestration_ds:
orchestrationType: registry_center,config_center,distributed_lock_manager
instanceType: nacos
serverLists: http://localhost:8848
namespace: orchestration
```
However, it does not take effect and has an exception:
```
Exception in thread "main" java.lang.RuntimeException: Invalid `org.apache.shardingsphere.orchestration.center.RegistryCenterRepository` SPI type `nacos`.
at org.apache.shardingsphere.spi.TypeBasedSPIServiceLoader.newService(TypeBasedSPIServiceLoader.java:46)
at org.apache.shardingsphere.orchestration.core.registrycenter.RegistryCenterRepositoryServiceLoader.load(RegistryCenterRepositoryServiceLoader.java:49)
at org.apache.shardingsphere.orchestration.core.facade.ShardingOrchestrationFacade.<init>(ShardingOrchestrationFacade.java:69)
at org.apache.shardingsphere.shardingproxy.Bootstrap.startWithRegistryCenter(Bootstrap.java:131)
at org.apache.shardingsphere.shardingproxy.Bootstrap.main(Bootstrap.java:87)
```
And then I found this:

So,
- Why is this project(sharding-orchestration-center-nacos) incomplete? The RegistryCenterRepository interface is not implemented.
- Isn't NACOS suitable for the registry?
- Why do we need a registry in a sharding-proxy? In some instances,I think just need the config center.
Thanks!
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] terrymanu commented on issue #11470: Why is the NACOS config center implemented but no registry?
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #11470:
URL: https://github.com/apache/shardingsphere/issues/11470#issuecomment-886158249
Reg center need to ephemeral or TTL, only ZooKeeper and etcd can support the feature.
So NACOS has been removed from version 5.x.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] terrymanu closed issue #11470: Why is the NACOS config center implemented but no registry?
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #11470:
URL: https://github.com/apache/shardingsphere/issues/11470
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org