Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于vgroup-mapping的问题 #5093

Closed
RedShameA opened this issue Nov 19, 2022 · 4 comments
Closed

关于vgroup-mapping的问题 #5093

RedShameA opened this issue Nov 19, 2022 · 4 comments

Comments

@RedShameA
Copy link

RedShameA commented Nov 19, 2022

经过自己测试的:vgroup-mapping 可以单配置在服务端、或者服务端客户端都配置,但不可以单配置在客户端
但当服务端客户端配置不一样的时候,会以哪个为准呢?为什么不只在服务端配置呢?
官网在 事务分组-事务分组与高可用 中这个图片,我理解的是以客户端配置来选择不同集群,但为什么不能只配置在客户端呢?

image

@funky-eyes
Copy link
Contributor

1.seata-server不会读取事务分组
2.seata-client只会读取配置中心里的事务分组,如果你的config.type是nacos那就是读nacos,是file就读本地

@RedShameA
Copy link
Author

RedShameA commented Nov 20, 2022

1.seata-server不会读取事务分组 2.seata-client只会读取配置中心里的事务分组,如果你的config.type是nacos那就是读nacos,是file就读本地

感谢回复!还有几个问题 希望您能解答一下!

1.seata-server不会读取事务分组,是不是指nacos里的那一个配置文件是同时被seata-server、seata-client来使用,但它们只会取自己用的到的配置项,比如事务分组配置其实只有seata-client会读取并用到?
2.当我在springboot客户端配置了config块为nacos、并且nacos里配置了事务分组,其中再配置的service.vgroup-mapping块是不是就无效了?(如下配置文件代码) 或者说配置了nacos之后,就只会在nacos里取事务分组,本地配置的就是没有用的?
3.客户端需要config、registry都配置吗?registry配置块是用来干啥的,是用来注册TM、RM的吗?

image

@funky-eyes
Copy link
Contributor

1,2 配置中心是什么就去哪读.
3.config 配置中心相关配置,registry注册中心相关配置做client和tc的服务注册和发现

@RedShameA
Copy link
Author

1,2 配置中心是什么就去哪读. 3.config 配置中心相关配置,registry注册中心相关配置做client和tc的服务注册和发现

谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants