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

add federation configuration #734

Open
vchepkov opened this issue Oct 11, 2018 · 2 comments
Open

add federation configuration #734

vchepkov opened this issue Oct 11, 2018 · 2 comments
Labels

Comments

@vchepkov
Copy link

Please consider to add rabbitmq_federation plugin managing/configuration

@mUbsta
Copy link

mUbsta commented Oct 11, 2018

rabbitmq_plugin { 'rabbitmq_federation_management': }

will manage the plugin.

This snippet from README.md shows how to setup federation:-

  component_name => 'federation-upstream',
    value          => {
        'uri'     => 'amqp://myserver',
        'expires' => '360000',
    },
  }

@vchepkov
Copy link
Author

Unfortunately, I can't properly form uri string with multiple upstream servers

/sbin/rabbitmqctl set_parameter -p VHOST federation-upstream failover '{"uri":["amqp://user:pass@server1/VHOST","amqp://user:pass@server2"],"ack-mode":"on-publish","max-hops":1}

I tried different combinations, but it seems provider doesn't pass it properly

  $upstreams     = $nodes.map | $f | { "amqp://${admin_user}:${admin_pass}@${f}/${vhost}" }
  $upstream_list = $upstreams.join(',')
  $uri           = "[${upstream_list}]"

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

No branches or pull requests

3 participants