I am setting up federation on one rabbitmq broker (B) with another broker as the upstream broker (A).
I'm getting an error on trying to run the command to set up the upstream broker. The commands below were run on broker B.
localhost:$ sbin/rabbitmq-plugins enable rabbitmq_federation
The following plugins have been enabled:
rabbitmq_federation
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.
localhost:$ sbin/rabbitmq-plugins enable rabbitmq_federation_management
The following plugins have been enabled:
rabbitmq_federation_management
localhost:$ sbin/rabbitmqctl set_parameter federation-upstream my-upstream '{"uri":"amqp://localhost:5672","expires":3600000}'
Setting runtime parameter "my-upstream" for component "federation-upstream" to "{\"uri\":\"amqp://localhost:5672\",\"expires\":3600000}" ...
Error: Validation failed
component federation-upstream not found
I did restart the broker after enabling the federation plugins. Why am I getting the error "component federation-upstream not found" ?
I could set up the upstream broker and policy through the Management UI, but federation is still not working.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
localhost:$ sbin/rabbitmqctl eval 'rabbit_federation_status:status().'
[]
...done.
Federation Status page on the Management UI doesn't have any Running Links either. Is there anything else I need to do to get federation working? There have been no messages yet. Does that matter?
Thanks.
Hello.
Does the policy match any exchanges? RMQ will not create links to any upstream queuemanagers unless there is something to actually federate.
In your case, if there are no exchanges with names matching the regular expression "^subscription_exchange”, there is nothing to federate, and the connections to the upstreams queuemanager will not be created.
On a personal note, I am not comfortable with using "{\"federation-upstream-set\":\"all\"}". I usually do directed federations with a named set, or if I have a single upstream I use “federation-upstream”:”<upstream_name>” . In your case, that would be "{\"federation-upstream\":\" trial-upstream \"}", I think. But that is just me.
/Fredrik
To post to this group, send email to rabbit...@googlegroups.com.