RabbitMQ

how to use multiple configuration files for RabbitMQ / Erlang

↘锁芯ラ 提交于 2020-01-01 06:24:51
问题 I am trying to setup a Spring based Java application which uses a locally installed RabbitMQ server for delivering messages between nodes. As some of you already know, the rabbitmq.config file can be used to configure various parameters and is loaded by the underlying Erlang node which the Rabbit server runs on. My problem is that I have a requirement that some of the configuration needs to be static and some needs to be dynamic , specifically, I need to be able to reconfigure the shovels

Celery node fail, on pidbox already using on restart

落爺英雄遲暮 提交于 2020-01-01 04:25:22
问题 i have celery running with rabbitmq broker. Today i have fail of celery node - it dont execute tasks and not respond on service celeryd stop command. After few repeats node stoped, but on start i get this message: [WARNING/MainProcess] celery@nodename ready. [WARNING/MainProcess] /home/ubuntu/virtualenv/project_1/local/lib/python2.7/site-packages/kombu/pidbox.py:73: UserWarning: A node named u'nodename' is already using this process mailbox! Maybe you forgot to shutdown the other node or did

rabbitmq安装记录

柔情痞子 提交于 2020-01-01 01:58:30
1 安装(注意erlang和rabbitmq版本问题) 环境: CentOS 6.5 其他环境安装方式略。 安装ErLang Erlang(['ə:læŋ])是一种通用的面向并发的编程语言,它由瑞典电信设备制造商爱立信所辖的CS-Lab开发,目的是创造一种可以应对大规模并发活动的编程语言和运行环境。 rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc vi /etc/yum.repos.d/xxx (xxx是目录中的任意一个已有的yum列表文件) 在文件中增加下述内容: [erlang-solutions] name=Centos $releasever - $basearch - Erlang Solutions baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch gpgcheck=1 gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc enabled=1 生成yum缓存信息 yum makecache 安装ErLang yum -y install erlang 检查安装结果

RabbitMq 六种工作模式

ぐ巨炮叔叔 提交于 2019-12-31 23:15:37
1.1 simple 简单模式 1. 消息生产者将消息放入队列中 2 消费者监听消息队列,如果队列中有消息,就消费掉,消息消费掉后,在队列中删除(弊端,消费者消费失败,消息删除) 1.2 work工作模式(竞争资源) 一个生产者被多个消费者竞争消费(高并发的情况下,回产生某个消息被重复消费,可设置一个开关) 1.3 publish/subscribe 发布订阅(共享资源) x代表交换机 生产者将消息发送到x交换机中,交换机将消息发布到所有的队列中,供给队列中的消费者使用 1.4 routing 路由模式 ·生产者将消息发送到交换机,交换机根据路由判断,路由是字符串,交换机根据路由的key,匹配路由key对应的消息队列,对应的消费者才能消费 1.5 topic主题模式 类似于一种模糊匹配 # 代表一个单词 #*代表多个单词 来源: CSDN 作者: zrz梦想起航 链接: https://blog.csdn.net/u010023147/article/details/103777693

Authentication failed (rejected by the remote node), please check the Erlang cookie

余生颓废 提交于 2019-12-31 12:59:06
问题 I installed erlang and rabbitmq in the way mentioned in the official documentation. But then, when I do this C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.0\sbin>rabbitmqctl add_user XXXXXX YYYYYYY it gives me the following error... Error: unable to perform an operation on node 'rabbit@C001741998'. Please see diagnostics information and suggestions below. Most common reasons for this are: Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)

Authentication failed (rejected by the remote node), please check the Erlang cookie

梦想的初衷 提交于 2019-12-31 12:58:25
问题 I installed erlang and rabbitmq in the way mentioned in the official documentation. But then, when I do this C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.0\sbin>rabbitmqctl add_user XXXXXX YYYYYYY it gives me the following error... Error: unable to perform an operation on node 'rabbit@C001741998'. Please see diagnostics information and suggestions below. Most common reasons for this are: Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)

How to do error handling with EasyNetQ / RabbitMQ

梦想与她 提交于 2019-12-31 12:43:08
问题 I'm using RabbitMQ in C# with the EasyNetQ library. I'm using a pub/sub pattern here. I still have a few issues that I hope anyone can help me with: When there's an error while consuming a message, it's automatically moved to an error queue. How can I implement retries (so that it's placed back on the originating queue, and when it fails to process X times, it's moved to a dead letter queue)? As far as I can see there's always 1 error queue that's used to dump messages from all other queues.

RabbitMQ C# connection trouble when using a username and password

时光怂恿深爱的人放手 提交于 2019-12-31 08:46:09
问题 I am at a loss here so I'm reaching out to the collective knowledge in hope of a miracle. I have installed RabbitMQ on a Linux box using the defaults. When I use this code (and the default RabbitMQ installation configuration) everything works nice. var connectionFactory = new ConnectionFactory(); connectionFactory.HostName = "192.168.0.12"; IConnection connection = connectionFactory.CreateConnection(); But when I add a user to RabbitMQ and try to use the following code (username and password

RabbitMQ C# connection trouble when using a username and password

左心房为你撑大大i 提交于 2019-12-31 08:45:05
问题 I am at a loss here so I'm reaching out to the collective knowledge in hope of a miracle. I have installed RabbitMQ on a Linux box using the defaults. When I use this code (and the default RabbitMQ installation configuration) everything works nice. var connectionFactory = new ConnectionFactory(); connectionFactory.HostName = "192.168.0.12"; IConnection connection = connectionFactory.CreateConnection(); But when I add a user to RabbitMQ and try to use the following code (username and password

Difference between stream processing and message processing

╄→尐↘猪︶ㄣ 提交于 2019-12-31 08:11:09
问题 What is the basic difference between stream processing and traditional message processing? As people say that kafka is good choice for stream processing but essentially kafka is a messaging framework similar to ActivMQ, RabbitMQ etc. Why do we generally not say that ActiveMQ is good for stream processing as well. Is it the speed at which messages are consumed by the consumer determines if it is a stream? 回答1: In traditional message processing, you apply simple computations on the messages --