问题
For legacy reasons, I need to disable retained messages on an MQTT node running RabbitMQ.
After researching the issue, it appears that the Rabbit MQ team has indeed added such a feature in a file called rabbit_mqtt_retained_msg_store_noop.erl.
I am otherwise unfamiliar with the codebase and could not find mention of the noop retainer anywhere in the documentation.
How do I enable rabbit_mqtt_retained_msg_store_noop
?
回答1:
rabbit_mqtt_retained_msg_store_noop
is enabled by adding thefollowing to configuration:
[
{
rabbitmq_mqtt, [
{retained_message_store, rabbit_mqtt_retained_msg_store_noop}
]
}
].
来源:https://stackoverflow.com/questions/46849924/disable-retained-mqtt-messages-in-rabbit-mq