Advertisement
Guest User

bino_shovel_01

a guest
May 18th, 2012
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 1.21 KB | None | 0 0
  1. [
  2.     {mnesia, [{dump_log_write_threshold, 100}
  3.              ]},
  4.     {rabbit, [{vm_memory_high_watermark, 0.4}
  5.              ]},
  6.     {rabbitmq_shovel,
  7.        [{shovels,
  8.          [{myshovel,
  9.            [{sources, [
  10.                 {broker, "amqp://guest:guest@localhost"},
  11.                 {declarations, [
  12.                     {'exchange.declare', [{exchange, <<"source_exchange">>}, {type, <<"direct">>}, durable]},
  13.                     {'queue.declare', [{queue, <<"task_queue">>}, durable]},
  14.                     {'queue.bind', [{exchange, <<"source_exchange">>}, {queue, <<"task_queue">>}]}
  15.                 ]}
  16.             ]},
  17.             {destinations, [
  18.                 {broker, "amqp://bino:[email protected]/bino01"},
  19.                 {declarations, [
  20.                     {'exchange.declare', [{exchange, <<"destination_exchange">>}, {type, <<"direct">>}, durable]},
  21.                     {'queue.declare', [{queue, <<"destination_q1">>}, durable]},
  22.                     {'queue.bind', [{exchange, <<"destination_exchange">>}, {queue, <<"destination_q1">>}]}
  23.                 ]}
  24.             ]},
  25.             {queue, <<"task_queue">>},
  26.             {reconnect_delay, 5}
  27.            ]}
  28.           ]
  29.         }]
  30.      }
  31. ].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement