[rabbitmq-discuss] RabbitMQ HA

Anup Katariya anup.katariya at integral.com
Fri Jan 17 05:04:59 GMT 2014


Hi jrob,

Curious to know whether you pushed this setup in production and how has it 
been? Any surprises? We are also testing this in perf lab and plan to push 
to production in couple of weeks.

Anup

On Wednesday, January 18, 2012 9:16:22 AM UTC-8, jrob wrote:
>
> Yup, that was it exactly.  I just had the diff up, so here are the two 
> major changes I had to make:
>
> -    channel.queue( @queue, :durable => true ).subscribe(:ack=>true) do 
> |header,message|
> +    channel.queue( @queue, :durable => true, :arguments => {'x-ha-policy' 
> => 'all'} ).subscribe(:ack=>true) do |header,message|
>
>    def self.get_channel(host)
>      connection = AMQP.connect( :host=>host )
> +    connection.on_connection_interruption do |conn, settings|
> +      conn.reconnect(false,1)
> +    end
> +
>      channel    = AMQP::Channel.new( connection )
> +    channel.auto_recovery = true
> +
> +    channel
>    end
>
> As I said, this hasn't gone into production yet, but it seems to be doing 
> well in our staging environment.  I don't think our message rate is high 
> enough to really exercise this setup in staging, so I can't really comment 
> on performance yet.  (We're holding off moving this into production as we 
> are trying to provide high availability for our applications and services 
> across the board, which in some cases means we will be using one VM for 
> multiple services.  Since the other services aren't ready to go yet, we 
> haven't pushed this up.)
>
> - jrob
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140116/f6e5ef62/attachment-0001.html>


More information about the rabbitmq-discuss mailing list