On 30.07.2015 03:51, tony hughes wrote:
> Networks will be across both machines with each Network/NIC being within
> a separate VLAN as well for segregation. My main questions is how i
> perform the network segregation for Rabbit? i.e. how do i tell rabbit to
> only use the replication network for replication network etc.?
Hi!
For the AMQP listen address/port (F5 facing NIC I guess), you can use
the 'tcp_listeners' configuration parameters in rabbitmq.config [1]. IT
allows to specify a list of IP address(es) to listen on.
For the replication network, queue mirroring goes through Erlang
inter-node communication. You need to start epmd manually and use the
-address argument [2]. epmd must be started before RabbitMQ.
You also need to set the Erlang kernel inet_dist_listen_options
parameters [3][4]. You can put something like the following line in
/etc/rabbitmq/rabbitmq-env.conf (I assume you use Linux):
RABBITMQ_SERVER_START_ARGS='-kernel inet_dist_listen_options
[{ip,"192.168.238.10"}]'
You need to make sure the node's hostname used by Erlang resolves to a
Replication network IP address.
I suppose "Member network Pool for F5" is the interface used by the load
balancer to determine if a node is alive. You can add this interface to
'tcp_listeners' so RabbitMQ will listen to both the "F5 facing NIC" and
this one.
And again, I suppose "Internal facing network" can be listed in the
'tcp_listeners'.
[1]
http://www.rabbitmq.com/configure.html
[2]
http://www.erlang.org/doc/man/epmd.html
[3]
http://www.erlang.org/doc/man/kernel_app.html#id77484
[4]
http://www.erlang.org/doc/man/gen_tcp.html#listen-2
--
Jean-Sébastien Pédron
Pivotal / RabbitMQ