rabbitMQ configuration file

Simple rabbitmq configuration does not require configuration files. Only when complex applications need to be customized, the configuration file

rabbitmq-env.conf configuration is required.
Common parameters:

quote
RABBITMQ_NODE_IP_ADDRESS= //IP address, empty string bind all addresses, specify the address bind specifies the network interface
RABBITMQ_NODE_PORT= //TCP port number, the default is 5672
RABBITMQ_NODENAME= //Node name. The default is rabbit
RABBITMQ_CONFIG_FILE= //Configuration file path, that is, rabbitmq.config file path
RABBITMQ_MNESIA_BASE= //The path where mnesia is located
RABBITMQ_LOG_BASE= //The path where the log is located
RABBITMQ_PLUGINS_DIR= //The path where the plugin is located


rabbitmq.config configuration

If installed with rpm package, copy the sample configuration file from the default docs directory:

quote
cp /usr/share/doc/rabbitmq-server-3.5.3/rabbitmq.config.example /etc/rabbitmq.config


Common configurations are as follows:

quote
tcp_listerners #Set the listening port of rabbitimq, the default is [5672].
disk_free_limit #Disk low watermark, if the disk capacity is lower than the specified value, stop receiving data, the default value is {mem_relative, 1.0}, which is 1:1 associated with memory, and can also be customized to how many bytes.
vm_memory_high_watermark #Set the memory low watermark If it is lower than the water level, the flow control mechanism is turned on. The default value is 0.4, which is 40% of the total memory.
hipe_compile #Compile part of the rabbitimq code with the High Performance Erlang compiler to improve performance. This parameter is experimental. If erlang vm segfaults appear, it should be turned off.
force_fine_statistics #This parameter belongs to rabbitimq_management. If it is true, it will perform fine statistics, but it will affect the performance.
frame_max #Packet size. If the packet is small, the delay will be low. If the packet is high, the throughput will be high. The default is 131072=128K.
heartbeat #The heartbeat interval between the client and the server, set to 0 to turn off the heartbeat, the default is 600 seconds.


More parameter reference:
http://www.rabbitmq.com/configure.html#configuration-file

reference: http://www.cnblogs.com/breezey/p/4679604.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326891091&siteId=291194637