[rabbitmq-discuss] Federation with multiple uri's?

Alvaro Videla videlalvaro at gmail.com
Wed Feb 5 19:22:10 GMT 2014


Hi,

The documentation mentions[1] about the uri field: "Note that this
field can either be a string, or a list of strings."

So I assume you should specify the URI like this:
'{"uri":["amqp://server-one", "amqp://server-two",
"amqp://server-three"],"expires":3600000}'

Regards,

Alvaro

1 - http://www.rabbitmq.com/federation-reference.html

On Wed, Feb 5, 2014 at 8:14 PM, k.madnani84 <k.madnani84 at gmail.com> wrote:
> Hi,
>
> I am trying to set parameter for federation upstream with multiple uri's but
> cant get what would be the right syntax.The web document says uri's need to
> be seperated with space but i tried and got following error:
>
> Command://opt/app/rabbitmq/sbin/rabbitmqctl set_parameter
> federation-upstream -p / HA-upstream-CLUSTER4-adminvhost
> '{"uri":"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5694
> amqp://feduser:myFedPassword@zldv0435.XXX.XXX.com:5672
> amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5672","max-hops":1}'
>
> Error: Validation failed
> "amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5694
> amqp://feduser:myFedPassword@zldv0435.XXX.XXX.com:5672
> amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5672" not a valid URI:
> {{unable_to_parse_uri,
>
>
> Command:
> bash-3.2$ //opt/app/rabbitmq/sbin/rabbitmqctl set_parameter
> federation-upstream -p / HA-upstream-CLUSTER4-adminvhost
> '{"uri":"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5694"
> "amqp://feduser:myFedPassword@zldv0435.XXX.XXX.com:5672"
> "amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5672","max-hops":1}'
> Setting runtime parameter "HA-upstream-CLUSTER4-adminvhost" for component
> "federation-upstream" to
> "{\"uri\":\"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5694\"
> \"amqp://feduser:myFedPassword@zldv0435.XXX.XXX.com:5672\"
> \"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5672\",\"max-hops\":1}"
> ...
> Error: JSON decoding error
>
> What is the correct syntax?
>
>
>
>
>
> --
> View this message in context: http://rabbitmq.1065348.n5.nabble.com/Federation-with-multiple-uri-s-tp33129.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list