[rabbitmq-discuss] simple federation question

Bobby Castleberry bobtkat at gmail.com
Thu Aug 16 00:07:05 BST 2012


Ok so I figured out that my config was wrong in that it had 
rabbitmq_federation as a subsection of rabbit which unfortunately causes it 
to fail silently.  I have corrected that and a few other things leading to 
a semi-working config of:

[{rabbit,[
    {tcp_listeners, [5672]}
]},
{rabbitmq_federation,
[
        { exchanges,[
                [
                      { exchange, "graphite-uplink" }, 
                      { virtual_host, "/" },
                      { type, "topic" }, 
                      { upstream_set, "gdisplay" }
                ]
        ]},
        { upstream_sets,
            [
                {"gdisplay",
                    [
                       [
                            { connection, "sansketch8display1" },
                            { exchange, "graphite" }
                        ] , 
                       [
                            { connection, "sansketch8display2" },
                            { exchange, "graphite" }
                        ]
                    ] 
                }
            ]
        },
        { connections,
            [ 
                {"sansketch8display1",
                    [
                        { prefetch_count, 1000 }, 
                        { ha_policy, "all" }, 
                        { expires, 3000 }, 
                        { port, 5672 }, 
                        { protocol, "amqp" }, 
                        { virtual_host, "/" }, 
                        { mechanism, default }, 
                        { host, "sansketch8display1" }, 
                        { reconnect_delay, 5 }, 
                        { message_ttl, 10000 }, 
                        { heartbeat, 1 },
                        {max_hops, 2}
                    ] 
                }, 
                {"sansketch8display2",
                    [
                      { prefetch_count, 1000 }, 
                      { ha_policy, "all" }, 
                      { expires, 3000 }, 
                      { port, 5672 }, 
                      { protocol, "amqp" }, 
                      { virtual_host, "/" }, 
                      { mechanism, default }, 
                      { host, "sansketch8display2" }, 
                      { reconnect_delay, 5 }, 
                      { message_ttl, 10000 }, 
                        {username, "guest"},
                        {password, "guest"},
                      { heartbeat, 1 },
                        {prefetch_count, 1000},
                        {max_hops, 2}
                    ] 
                }
            ]
        },
        {local_username, "guest"},
        {local_nodename, "sansketch8polling1"}
    ]
}].
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120815/993c4ae8/attachment.htm>


More information about the rabbitmq-discuss mailing list