Rabbit:尝试从两个虚拟主机联合到一个虚拟主机,上游集合不起作用

时间:2019-04-23 16:46:45

标签: rabbitmq rabbitmq-federation

我正在尝试设置上游集,以便将消息从2个虚拟主机交换定向到1个虚拟主机交换。这是我的命令:

rabbitmqctl set_parameter -p dev_fac federation-upstream-set dev_sourceadapters '[{"upstream":"dev_tptadapter-to-dev_fac"},{"upstream":"dev_cxladapter-to-dev_fac"}]'

以下是命令的内容:

"Setting runtime parameter "federation-upstream-set" for component "dev_sourcadapters" to "[{"upstream":"dev_tptadapter-to-dev_fac"},{"upstream":"dev_cxladapter-to-dev_fac"}]" in vhost "dev_fac"

但是,当我登录Rabbit GUI时,看不到dev_fac中正在运行的联合身份验证。我已经建立了一个与upstream-set = dev_sourceadapters一起运行的策略。

我尝试将消息发布到交易所,但没有成功。

我尝试了一些不同的命令,包括:

rabbitmqctl set_parameter federation-upstream-set dev_sourceadapters '[{"upstream":"dev_tptadapter-to-dev_fac"},{"upstream":"dev_cxladapter-to-dev_fac"}]'

这导致它在虚拟主机“ /”中创建参数。

rabbitmqctl set_global_parameter federation-upstream-set dev_sourceadapters '[{"upstream":"dev_tptadapter-to-dev_fac"},{"upstream":"dev_cxladapter-to-dev_fac"}]'

这会导致错误“参数太多”。

0 个答案:

没有答案