nacos-sync
nacos-sync copied to clipboard
Service Sync component
There are a lot of user feedbacks. Because Nacos sync can only associate one service with a synchronization task, this addition operation will be very unfriendly when a large number...
zk->nacos同步时,如果是dubbo服务,在dubbo中同一个InterfaceName配置了多个version或者group,在zk上对应是一个/InterfaceName/provider下的多个path,目前对应到nacos中,也是一个serviceName下多个instance;但是按照nacos的serviceName规范,应该对应多个serviceName(如:com.test.hello1:: 和 com.test.hello1:1.0.1: ),此时应该对zk的serviceName做拆分。
**产生** 部署了多个nacos-sync实例,把注册的服务从eureka同步到nacos。然后,在nacos-sync后台对某个服务点击暂停同步。 **期望** 被同步到nacos的服务在nacos下线。 **实际** 没有下线,依然注册。 **原因** nacos-sync通过nacos-client把从eureka读到的服务注册到nacos,本地维护一个注册列表,nacos-sync要代理列表里的真实服务和nacos建立心跳(实际上是代替真实的服务节点和nacos建立的心跳)。 另外nacos-sync同时也从nacos订阅了这个服务,本地还有另一个订阅列表。暂停同步的逻辑是从订阅列表获取服务,再去注册列表里面解除心跳。 当用户从后台点击暂停同步,实际上nacos-sync是从订阅列表把服务实例取出来,在一个一个的取消注册,断开心跳。 nacos-sync-A注销了注册实例后,nacos把最新变动推送到nacos-sync-B,nacos-sync-B从本地订阅列表把原有的服务实例删除。然后B执行了和A一样的定时任务(暂停同步的任务),这时B本地取不到订阅列表了,也就无法断开和nacos的心跳。nacos收到心跳后又重新把服务给注册上了。即服务在nacos无法下线。
Dubbo注册到ZooKeeper的服务,在做ZooKeeper迁移的时候,为了保证服务迁移平滑,需要支持ZooKeeper到ZooKeeper的同步能力,并且支持Dubbo服务的批量选择同步。 
@paderlol 你好,请问当前版本的nacos sync是否只支持Dubbo服务的注册中心从Zookeeper或Consul迁移到Nacos啊?如果我们的微服务是基于Spring Could,想把注册中心从Zookeepr迁移到Nacos, nacos sync能支持吗?谢谢
 my java version 1.8 is default install manner see this through the log
Currently, the deletion of synchronization tasks can only be manually deleted one by one. In the case of a large number of synchronization tasks, the user experience is very bad,...
## nacosSync eureka sync to nacos, eureka can't sync to nacos with username and password, I hope to use username and password to sync ### nacosSync eureka同步到nacos,eureka使用用户名和密码不能同步到nacos,希望使用用户名和密码也可以同步
At present, the synchronization task sees the task status in the console smart, but there is no synchronization data status, and the user is more concerned about whether the data...